3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix wrong data type for action_type in migrations

This commit is contained in:
Dragory 2018-07-01 04:35:50 +03:00
parent e70f1baa27
commit 09d948a0df

View file

@ -8,7 +8,7 @@ exports.up = async function(knex, Promise) {
table.string('user_name', 128).notNullable(); table.string('user_name', 128).notNullable();
table.bigInteger('mod_id').index().unsigned().nullable().defaultTo(null); table.bigInteger('mod_id').index().unsigned().nullable().defaultTo(null);
table.string('mod_name', 128).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.bigInteger('audit_log_id').unique().nullable().defaultTo(null);
table.dateTime('created_at').index().defaultTo(knex.raw('NOW()')).notNullable(); table.dateTime('created_at').index().defaultTo(knex.raw('NOW()')).notNullable();