uptime-kuma/db/knex_migrations/2023-10-11-1915-push-token-to-32.js
Andreas Brett 42bf27fe5a
push monitor: increase token security (#912)
* increased pushToken security

* Merge manually

---------

Co-authored-by: Andreas Brett <[email protected]>
Co-authored-by: Louis Lam <[email protected]>
2023-10-11 19:28:06 +08:00

15 lines
391 B
JavaScript

exports.up = function (knex) {
// update monitor.push_token to 32 length
return knex.schema
.alterTable("monitor", function (table) {
table.string("push_token", 32).alter();
});
};
exports.down = function (knex) {
return knex.schema
.alterTable("monitor", function (table) {
table.string("push_token", 20).alter();
});
};