Skip to content

Commit

Permalink
feat(api): alter profile rewards type and id types
Browse files Browse the repository at this point in the history
  • Loading branch information
Libouk committed Dec 4, 2024
1 parent 77deef3 commit 9292ce4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions api/db/migrations/20241204091429_alter-profile-rewards-columns.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const TABLE_NAME = 'profile-rewards';

const up = async function (knex) {
await knex.schema.alterTable(TABLE_NAME, function (table) {
table.bigInteger('rewardId').notNullable().alter();
});
};

const down = async function (knex) {
await knex.schema.alterTable(TABLE_NAME, function (table) {
table.string('rewardId').notNullable().alter();
});
};

export { down, up };

0 comments on commit 9292ce4

Please sign in to comment.