Conditions | 1 |
Total Lines | 6 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { MigrationInterface, QueryRunner } from "typeorm"; |
||
12 | |||
13 | public async down(queryRunner: QueryRunner): Promise<void> { |
||
14 | await queryRunner.query(`CREATE TYPE "public"."event_type_enum_old" AS ENUM('mission', 'support', 'dojo', 'formationConference', 'other')`); |
||
15 | await queryRunner.query(`ALTER TABLE "event" ALTER COLUMN "type" TYPE "public"."event_type_enum_old" USING "type"::"text"::"public"."event_type_enum_old"`); |
||
16 | await queryRunner.query(`DROP TYPE "public"."event_type_enum"`); |
||
17 | await queryRunner.query(`ALTER TYPE "public"."event_type_enum_old" RENAME TO "event_type_enum"`); |
||
18 | } |
||
21 |