Skip to content

Commit

Permalink
fix: migraton
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kopeček committed Feb 11, 2024
1 parent 0f19d0d commit bf1cf3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/migrations/1707585178877-expenses-receipt-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export class ExpensesReceiptId1707585178877 implements MigrationInterface {
name = "ExpensesReceiptId1707585178877";

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "events_expenses" ADD "receipt_number" character varying NOT NULL`);
await queryRunner.query(`ALTER TABLE "events_expenses" ADD "receipt_number" character varying NOT NULL DEFAULT ''`);
await queryRunner.query(`ALTER TABLE "events_expenses" ALTER COLUMN "receipt_number" DROP DEFAULT`);
await queryRunner.query(`CREATE INDEX "IDX_a6aeb17233427f9165e9661448" ON "events_groups" ("event_id") `);
await queryRunner.query(`CREATE INDEX "IDX_0593cf7f0f7560db1b5ad7a6f3" ON "events_groups" ("group_id") `);
}
Expand Down

0 comments on commit bf1cf3b

Please sign in to comment.