diff --git a/express-api/src/typeorm/Migrations/1724686432998-UpdateTaskStatus.ts b/express-api/src/typeorm/Migrations/1724686432998-UpdateTaskStatus.ts index 97a10ed30..bddbf3ae5 100644 --- a/express-api/src/typeorm/Migrations/1724686432998-UpdateTaskStatus.ts +++ b/express-api/src/typeorm/Migrations/1724686432998-UpdateTaskStatus.ts @@ -3,31 +3,37 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; export class UpdateTaskStatus1724686432998 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(` - UPDATE task SET status_id = 14 WHERE id = 3; - `); + UPDATE task SET status_id = 14 WHERE id = 3; + `); await queryRunner.query(` - UPDATE task SET status_id = 15 WHERE id = 4; - `); + UPDATE task SET status_id = 15 WHERE id = 4; + `); await queryRunner.query(` - UPDATE timestamp_type SET status_id = 21, is_optional = false WHERE id = 11; - `); + UPDATE task SET is_optional = true WHERE id = 24; + `); await queryRunner.query(` - UPDATE task SET name = 'Preparation and Due Diligence complete', is_optional = false WHERE id IN (9, 19); - `); + UPDATE timestamp_type SET status_id = 21, is_optional = false WHERE id = 11; + `); + await queryRunner.query(` + UPDATE task SET name = 'Preparation and Due Diligence complete', is_optional = false WHERE id IN (9, 19); + `); } public async down(queryRunner: QueryRunner): Promise { await queryRunner.query(` - UPDATE task SET status_id = 7 WHERE id = 3; - `); + UPDATE task SET status_id = 7 WHERE id = 3; + `); + await queryRunner.query(` + UPDATE task SET status_id = 8 WHERE id = 4; + `); await queryRunner.query(` - UPDATE task SET status_id = 8 WHERE id = 4; - `); + UPDATE task SET is_optional = false WHERE id = 24; + `); await queryRunner.query(` - UPDATE timestamp_type SET status_id = 14, is_optional = true WHERE id = 11; - `); + UPDATE timestamp_type SET status_id = 14, is_optional = true WHERE id = 11; + `); await queryRunner.query(` - UPDATE task SET name = 'Preparation and due diligence', is_optional = true WHERE id IN (9, 19); - `); + UPDATE task SET name = 'Preparation and due diligence', is_optional = true WHERE id IN (9, 19); + `); } }