Skip to content

Commit cf1054e

Browse files
committed
fix(migrations): update column case
1 parent 1088382 commit cf1054e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/migrations/1621724651623-AddBenchmarks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import {MigrationInterface, QueryRunner} from "typeorm";
1+
import { MigrationInterface, QueryRunner } from "typeorm";
22

33
export class AddBenchmarks1621724651623 implements MigrationInterface {
44
name = 'AddBenchmarks1621724651623'
55

66
public async up(queryRunner: QueryRunner): Promise<void> {
7-
await queryRunner.query(`CREATE TABLE "benchmarks" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "title" character varying NOT NULL, "subject" character varying NOT NULL, "giturl" character varying NOT NULL, "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "difficulty" character varying NOT NULL, "creatorId" uuid, CONSTRAINT "PK_7e1ca1c910680770da116e0b95c" PRIMARY KEY ("id"))`);
7+
await queryRunner.query(`CREATE TABLE "benchmarks" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "title" character varying NOT NULL, "subject" character varying NOT NULL, "gitUrl" character varying NOT NULL, "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "difficulty" character varying NOT NULL, "creatorId" uuid, CONSTRAINT "PK_7e1ca1c910680770da116e0b95c" PRIMARY KEY ("id"))`);
88
await queryRunner.query(`ALTER TABLE "benchmarks" ADD CONSTRAINT "FK_f7dfba1f69546feced443cd097c" FOREIGN KEY ("creatorId") REFERENCES "users"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
99
}
1010

0 commit comments

Comments
 (0)