import { MigrationInterface, QueryRunner } from 'typeorm';

export class removePathField1699612779709 implements MigrationInterface {
  public async up(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.query(`
            alter table files
            drop column path;        
        `);
  }

  public async down(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.query(`
            alter table files
            add path varchar default '' not null;
        `);
  }
}
