Conditions | 1 |
Total Lines | 7 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { MigrationInterface, QueryRunner } from "typeorm"; |
||
5 | |||
6 | public async up(queryRunner: QueryRunner): Promise<void> { |
||
7 | await queryRunner.query(`ALTER TABLE "customer" DROP CONSTRAINT "FK_7697a356e1f4b79ab3819839e95"`); |
||
8 | await queryRunner.query(`ALTER TABLE "cooperative" DROP CONSTRAINT "FK_76076f95b4afaa794ca4a974661"`); |
||
9 | await queryRunner.query(`ALTER TABLE "customer" DROP COLUMN "addressId"`); |
||
10 | await queryRunner.query(`ALTER TABLE "cooperative" DROP COLUMN "addressId"`); |
||
11 | await queryRunner.query(`DROP TABLE "address"`); |
||
12 | } |
||
22 |