diff --git a/api/db/migrations/20241204091429_alter-profile-rewards-columns.js b/api/db/migrations/20241204091429_alter-profile-rewards-columns.js new file mode 100644 index 00000000000..6fc9cc535df --- /dev/null +++ b/api/db/migrations/20241204091429_alter-profile-rewards-columns.js @@ -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 };