21 lines
462 B
JavaScript
21 lines
462 B
JavaScript
/**
|
|
* @param { import("knex").Knex } knex
|
|
* @returns { Promise<void> }
|
|
*/
|
|
exports.up = function(knex) {
|
|
return knex.schema.alterTable('users', (table) => {
|
|
table.tinyint('ignore').defaultTo(0);
|
|
table.datetime('last_login').nullable();
|
|
});
|
|
};
|
|
|
|
/**
|
|
* @param { import("knex").Knex } knex
|
|
* @returns { Promise<void> }
|
|
*/
|
|
exports.down = function(knex) {
|
|
return knex.schema.alterTable('users', (table) => {
|
|
table.dropColumn('ignore');
|
|
});
|
|
};
|