You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/migration/1760354446019-UserLocationId.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,13 @@ export class UserLocationId1760354446019 implements MigrationInterface {
8
8
awaitqueryRunner.query(
9
9
`ALTER TABLE "user" ADD CONSTRAINT "FK_user_locationId" FOREIGN KEY ("locationId") REFERENCES "dataset_location"("id") ON DELETE SET NULL ON UPDATE NO ACTION`,
10
10
);
11
+
awaitqueryRunner.query(
12
+
`CREATE INDEX "IDX_user_locationId" ON "user" ("locationId")`,
0 commit comments