From 09d948a0df506588f0ff807bc6d2fbc3f4b876f3 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 1 Jul 2018 04:35:50 +0300 Subject: [PATCH] Fix wrong data type for action_type in migrations --- migrations/20171221220235_create_mod_action_tables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/20171221220235_create_mod_action_tables.js b/migrations/20171221220235_create_mod_action_tables.js index f4ca8b27..475968ec 100644 --- a/migrations/20171221220235_create_mod_action_tables.js +++ b/migrations/20171221220235_create_mod_action_tables.js @@ -8,7 +8,7 @@ exports.up = async function(knex, Promise) { table.string('user_name', 128).notNullable(); table.bigInteger('mod_id').index().unsigned().nullable().defaultTo(null); table.string('mod_name', 128).nullable().defaultTo(null); - table.string('action_type', 16).notNullable(); + table.integer('action_type').unsigned().notNullable(); table.bigInteger('audit_log_id').unique().nullable().defaultTo(null); table.dateTime('created_at').index().defaultTo(knex.raw('NOW()')).notNullable();