Skip to content

Commit 51218ff

Browse files
committed
fix: use original index name in security_event drop migration down()
Match the index name IDX_security_event_user_id_timestamp from the AddPerformanceIndexes migration to avoid schema drift on rollback.
1 parent 1a728fe commit 51218ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/database/migrations/1773700000000-DropSecurityEventTable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class DropSecurityEventTable1773700000000 implements MigrationInterface {
1818
)
1919
`);
2020
await queryRunner.query(
21-
`CREATE INDEX "IDX_security_event_user_timestamp" ON "security_event" ("user_id", "timestamp")`,
21+
`CREATE INDEX "IDX_security_event_user_id_timestamp" ON "security_event" ("user_id", "timestamp")`,
2222
);
2323
}
2424
}

0 commit comments

Comments
 (0)