Skip to content

Commit

Permalink
tech(api): add migration to delete user has-seen-level-seven-info column
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeyffrey committed Oct 9, 2024
1 parent bde8295 commit ea75414
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const TABLE_NAME = 'users';
const COLUMN_NAME = 'hasSeenLevelSevenInfo';

const up = async function (knex) {
await knex.schema.table(TABLE_NAME, function (table) {
table.dropColumn(COLUMN_NAME);
});
};

const down = async function (knex) {
await knex.schema.table(TABLE_NAME, function (table) {
table.boolean(COLUMN_NAME).defaultTo(false);
});
};
export { down, up };

0 comments on commit ea75414

Please sign in to comment.