diff options
Diffstat (limited to 'db/knex_migrations/2023-10-11-1915-push-token-to-32.js')
-rw-r--r-- | db/knex_migrations/2023-10-11-1915-push-token-to-32.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/knex_migrations/2023-10-11-1915-push-token-to-32.js b/db/knex_migrations/2023-10-11-1915-push-token-to-32.js new file mode 100644 index 0000000..47e5ac0 --- /dev/null +++ b/db/knex_migrations/2023-10-11-1915-push-token-to-32.js @@ -0,0 +1,14 @@ +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(); + }); +}; |