From de7bc487ed91d0b1cc5e9183d441a69dcbac9574 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 21 Sep 2023 20:41:16 +0800 Subject: [PATCH] Sync the column order --- db/knex_init_db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/knex_init_db.js b/db/knex_init_db.js index 84da0dc8..c35995e9 100644 --- a/db/knex_init_db.js +++ b/db/knex_init_db.js @@ -272,10 +272,10 @@ async function createTables() { await knex.schema.createTable("notification", (table) => { table.increments("id"); table.string("name", 255); - table.text("config"); table.boolean("active").notNullable().defaultTo(true); table.integer("user_id").unsigned(); table.boolean("is_default").notNullable().defaultTo(false); + table.text("config"); }); // monitor_notification