import { MigrationInterface, QueryRunner } from 'typeorm';

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

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

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