Skip to content

Commit

Permalink
fix(api): return to previous migration state to fix problems on integ…
Browse files Browse the repository at this point in the history
…ration and recette env
  • Loading branch information
Libouk committed Dec 4, 2024
1 parent d28d77d commit 77deef3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/db/migrations/20240820101213_add-profile-rewards-table.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { REWARD_TYPES } from '../../src/quest/domain/constants.js';
export const PROFILE_REWARDS_TABLE_NAME = 'profile-rewards';

const up = async function (knex) {
await knex.schema.createTable(PROFILE_REWARDS_TABLE_NAME, function (table) {
table.increments('id').primary();
table.dateTime('createdAt').notNullable().defaultTo(knex.fn.now());
table.bigInteger('userId').index().references('users.id');
table.enum('rewardType', [REWARD_TYPES.ATTESTATION]).defaultTo(REWARD_TYPES.ATTESTATION);
table.bigInteger('rewardId').notNullable();
table.string('rewardType').notNullable();
table.string('rewardId').notNullable();
});
};

Expand Down

0 comments on commit 77deef3

Please sign in to comment.