import { MigrationInterface, QueryRunner } from 'typeorm';

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

  public async up(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.query(
      `ALTER TABLE \`driving_offenses\` ADD \`paymentKey\` VARCHAR(128) NULL AFTER \`totalPayId\``,
    );
  }

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