diff options
Diffstat (limited to 'db/knex_migrations/2024-08-24-0000-conditions.js')
-rw-r--r-- | db/knex_migrations/2024-08-24-0000-conditions.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/knex_migrations/2024-08-24-0000-conditions.js b/db/knex_migrations/2024-08-24-0000-conditions.js new file mode 100644 index 0000000..96352fd --- /dev/null +++ b/db/knex_migrations/2024-08-24-0000-conditions.js @@ -0,0 +1,12 @@ +exports.up = function (knex) { + return knex.schema + .alterTable("monitor", function (table) { + table.text("conditions").notNullable().defaultTo("[]"); + }); +}; + +exports.down = function (knex) { + return knex.schema.alterTable("monitor", function (table) { + table.dropColumn("conditions"); + }); +}; |