import { MigrationInterface , QueryRunner } from 'typeorm' ; export class FileContentTypeAndOwership1600845087197 implements MigrationInterface { name = 'FileContentTypeAndOwership1600845087197' ; public async up ( queryRunner ) { await queryRunner . query ( `ALTER TABLE "file" ADD "contentType" character varying NOT NULL` ) ; await queryRunner . query ( `ALTER TABLE "file" ADD "userId" character varying NOT NULL` ) ; await queryRunner . query ( `ALTER TABLE "file" ADD "organizationId" character varying` ) ; } public async down ( queryRunner ) { await queryRunner . query ( `ALTER TABLE "file" DROP COLUMN "organizationId"` ) ; await queryRunner . query ( `ALTER TABLE "file" DROP COLUMN "userId"` ) ; await queryRunner . query ( `ALTER TABLE "file" DROP COLUMN "contentType"` ) ; } }