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 4, 2024
1 parent 1fefb1f commit 860f5cd
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 860f5cd

Please sign in to comment.