Refactor MigrationName1720532068612 to delete all records from CopilotAction and drop a foreign key constraint

This commit is contained in:
Simon Larsen 2024-07-10 11:09:44 +01:00
parent ec704cbe34
commit d5c8e7836f
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA

View File

@ -4,6 +4,9 @@ export class MigrationName1720532068612 implements MigrationInterface {
public name = "MigrationName1720532068612";
public async up(queryRunner: QueryRunner): Promise<void> {
// delete all records from CopilotAction
await queryRunner.query(`DELETE FROM "CopilotAction"`);
await queryRunner.query(
`ALTER TABLE "CopilotAction" DROP CONSTRAINT "FK_d1f62129e09784b750ef9143bfe"`,
);