import { MigrationInterface , QueryRunner } from "typeorm" ; export class organizationAdmin1614798430630 implements MigrationInterface { name = 'organizationAdmin1614798430630' ; public async up ( queryRunner ) { await queryRunner . query ( `ALTER TABLE "organization" ADD "user_id" uuid` , undefined ) ; await queryRunner . query ( `ALTER TABLE "organization" ADD CONSTRAINT "FK_b93269ca4d9016837d22ab6e1e0" FOREIGN KEY ("user_id") REFERENCES "user"("id") ON DELETE NO ACTION ON UPDATE NO ACTION` , undefined ) ; } public async down ( queryRunner ) { await queryRunner . query ( `ALTER TABLE "organization" DROP CONSTRAINT "FK_b93269ca4d9016837d22ab6e1e0"` , undefined ) ; await queryRunner . query ( `ALTER TABLE "organization" DROP COLUMN "user_id"` , undefined ) ; } }