summaryrefslogtreecommitdiffstats
path: root/db/knex_migrations/2023-10-11-1915-push-token-to-32.js
blob: 47e5ac0bfcbbe1ef049651e3426124eba604bbbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();
        });
};