diff --git a/migrations/20181119144327_create_initial_tables.js b/migrations/20181119144327_create_initial_tables.js index 219a77d..9431e14 100644 --- a/migrations/20181119144327_create_initial_tables.js +++ b/migrations/20181119144327_create_initial_tables.js @@ -3,7 +3,8 @@ exports.up = function (knex, Promise) { knex.schema.createTable('user', t => { t.increments('id').primary() t.string('email').notNullable() - t.timestamps(true, true) + t.bigInteger('created_at') + t.bigInteger('updated_at') }), knex.schema.createTable('passport', t => { t.increments('id').primary() @@ -14,13 +15,15 @@ exports.up = function (knex, Promise) { t.string('identifier') t.json('tokens') t.integer('user').notNullable().references('user.id').onDelete('CASCADE').onUpdate('CASCADE') - t.timestamps(true, true) + t.bigInteger('created_at') + t.bigInteger('updated_at') }), knex.schema.createTable('targeturl', t => { t.increments('id').primary() t.integer('user').notNullable().references('user.id').onDelete('CASCADE').onUpdate('CASCADE') t.string('url') - t.timestamps(true, true) + t.bigInteger('created_at') + t.bigInteger('updated_at') }), knex.schema.createTable('book', t => { t.increments('id').primary() @@ -30,7 +33,8 @@ exports.up = function (knex, Promise) { t.string('author') t.string('version') t.string('isbn') - t.timestamps(true, true) + t.bigInteger('created_at') + t.bigInteger('updated_at') }) ]) } diff --git a/migrations/20190224022422_add_admin_users.js b/migrations/20190224022422_add_admin_users.js index 60d1238..18abc8d 100644 --- a/migrations/20190224022422_add_admin_users.js +++ b/migrations/20190224022422_add_admin_users.js @@ -13,7 +13,8 @@ exports.up = function (knex, Promise) { t.string('verification_key') t.boolean('whitelisted').defaultTo(false) t.boolean('verified').defaultTo(false) - t.timestamps(true, true) + t.bigInteger('created_at') + t.bigInteger('updated_at') }) ]) }