import { MigrationInterface, QueryRunner } from 'typeorm';

export class addOnlyOrderInServiceField1672332375413
  implements MigrationInterface
{
  name = 'addOnlyOrderInServiceField1672332375413';

  public async up(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.query(
      `ALTER TABLE \`products\` ADD \`onlyOrderInService\` TINYINT(1) NOT NULL DEFAULT '0' AFTER \`deleted\``,
    );
  }

  public async down(queryRunner: QueryRunner): Promise<void> {
    //
  }
}
