import { MigrationInterface, QueryRunner } from 'typeorm';

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

  public async up(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.query(`ALTER TABLE \`driving_offense_bills\`
            CHANGE \`city\` \`city\` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
            CHANGE \`deliveryType\` \`deliveryType\` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
            CHANGE \`location\` \`location\` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
            CHANGE \`type\` \`type\` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
            CHANGE \`imageId\` \`imageId\` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;`);
  }

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