Skip to content

Commit

Permalink
add notification migration
Browse files Browse the repository at this point in the history
  • Loading branch information
samelamin committed Oct 13, 2023
1 parent 0561ec8 commit 2915124
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Knex } from 'knex';

export async function up(knex: Knex): Promise<void> {
await knex.schema.alterTable('users', (table) => {
table.text('last_notification_id');
});
}

export async function down(knex: Knex): Promise<void> {
await knex.raw(
'ALTER TABLE users DROP COLUMN IF EXISTS last_notification_id'
);
}

0 comments on commit 2915124

Please sign in to comment.