ref: Little refactoring
parent
07867fc0b2
commit
039eee0aac
@ -1,11 +1,11 @@
|
|||||||
module.exports.up = async (knex) =>
|
module.exports.up = (knex) =>
|
||||||
knex.schema.table('user_account', (table) => {
|
knex.schema.table('user_account', (table) => {
|
||||||
/* Columns */
|
/* Columns */
|
||||||
|
|
||||||
table.text('language');
|
table.text('language');
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports.down = async (knex) =>
|
module.exports.down = (knex) =>
|
||||||
knex.schema.table('user_account', (table) => {
|
knex.schema.table('user_account', (table) => {
|
||||||
table.dropColumn('language');
|
table.dropColumn('language');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
module.exports.up = async (knex) =>
|
module.exports.up = (knex) =>
|
||||||
knex.schema.table('user_account', (table) => {
|
knex.schema.table('user_account', (table) => {
|
||||||
/* Columns */
|
/* Columns */
|
||||||
|
|
||||||
table.timestamp('password_changed_at', true);
|
table.timestamp('password_changed_at', true);
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports.down = async (knex) =>
|
module.exports.down = (knex) =>
|
||||||
knex.schema.table('user_account', (table) => {
|
knex.schema.table('user_account', (table) => {
|
||||||
table.dropColumn('password_changed_at');
|
table.dropColumn('password_changed_at');
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue