Skip to content

Commit

Permalink
chore: empty stop-trigger data
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Jan 24, 2025
1 parent 22986d7 commit 9e43b18
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions services/API-service/migration/1737374068839-RemoveStopTrigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ export class RemoveStopTrigger1737374068839 implements MigrationInterface {
await queryRunner.query(
`ALTER TABLE "IBF-app"."country-disaster-settings" DROP COLUMN "enableStopTrigger"`,
);

// Empty stop-trigger columns, as we are removing the functionality, just keeping the columns to repurpose them later
await queryRunner.query(
`UPDATE "IBF-app"."event-place-code" SET "stopped" = false`,
);
await queryRunner.query(
`UPDATE "IBF-app"."event-place-code" SET "manualStoppedDate" = null`,
);
await queryRunner.query(
`UPDATE "IBF-app"."event-place-code" SET "userUserId" = null`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
Expand Down

0 comments on commit 9e43b18

Please sign in to comment.