mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Refactor MigrationName1720532068612 to delete all records from CopilotAction and drop a foreign key constraint
This commit is contained in:
parent
ec704cbe34
commit
d5c8e7836f
@ -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"`,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user