diff options
Diffstat (limited to 'db/knex_migrations/2024-08-24-000-add-cache-bust.js')
-rw-r--r-- | db/knex_migrations/2024-08-24-000-add-cache-bust.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/knex_migrations/2024-08-24-000-add-cache-bust.js b/db/knex_migrations/2024-08-24-000-add-cache-bust.js new file mode 100644 index 0000000..3644377 --- /dev/null +++ b/db/knex_migrations/2024-08-24-000-add-cache-bust.js @@ -0,0 +1,13 @@ +exports.up = function (knex) { + return knex.schema + .alterTable("monitor", function (table) { + table.boolean("cache_bust").notNullable().defaultTo(false); + }); +}; + +exports.down = function (knex) { + return knex.schema + .alterTable("monitor", function (table) { + table.dropColumn("cache_bust"); + }); +}; |