diff options
Diffstat (limited to 'db/knex_migrations/2023-12-20-0000-alter-status-page.js')
-rw-r--r-- | db/knex_migrations/2023-12-20-0000-alter-status-page.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/knex_migrations/2023-12-20-0000-alter-status-page.js b/db/knex_migrations/2023-12-20-0000-alter-status-page.js new file mode 100644 index 0000000..61ef5d6 --- /dev/null +++ b/db/knex_migrations/2023-12-20-0000-alter-status-page.js @@ -0,0 +1,12 @@ +exports.up = function (knex) { + return knex.schema + .alterTable("status_page", function (table) { + table.integer("auto_refresh_interval").defaultTo(300).unsigned(); + }); +}; + +exports.down = function (knex) { + return knex.schema.alterTable("status_page", function (table) { + table.dropColumn("auto_refresh_interval"); + }); +}; |