Skip to content

Commit c07f786

Browse files
committed
chore: fix migration
1 parent e2d8440 commit c07f786

File tree

3 files changed

+17
-93
lines changed

3 files changed

+17
-93
lines changed

platforms/evoting-api/src/database/migrations/1755495092872-migration.ts

Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { MigrationInterface, QueryRunner } from "typeorm";
2+
3+
export class Migration1755504930280 implements MigrationInterface {
4+
name = "Migration1755504930280";
5+
6+
public async up(queryRunner: QueryRunner): Promise<void> {
7+
await queryRunner.query(
8+
`ALTER TABLE "polls" ADD "deadlineMessageSent" boolean NOT NULL DEFAULT false`,
9+
);
10+
}
11+
12+
public async down(queryRunner: QueryRunner): Promise<void> {
13+
await queryRunner.query(
14+
`ALTER TABLE "polls" DROP COLUMN "deadlineMessageSent"`,
15+
);
16+
}
17+
}

platforms/evoting-api/src/database/migrations/AddDeadlineMessageSentToPolls.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)