Skip to content

Commit

Permalink
feat(orga): updated migration after review
Browse files Browse the repository at this point in the history
  • Loading branch information
alicegoarnisson committed Dec 18, 2024
1 parent 39be451 commit e0d8849
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const TABLE_NAME = 'knowledge-element-snapshots';
const COLUMN_NAME = 'campaignParticipationId';

const up = async function (knex) {
await knex.schema.alterTable(TABLE_NAME, function (table) {
table
.integer(COLUMN_NAME)
.unsigned()
.nullable()
.references('campaign-participations.id')
.index()
.comment('Added this column as part of the anonymization process');
});
};

const down = async function (knex) {
await knex.schema.alterTable(TABLE_NAME, function (table) {
table.dropColumn(COLUMN_NAME);
});
};

export { down, up };

0 comments on commit e0d8849

Please sign in to comment.