import { MigrationInterface, QueryRunner } from "typeorm"; /** `DocumentDetails`/register-response field `signedQR`, persisted alongside `eims_irn`. */ export class AddEimsSignedQr3460000000000 implements MigrationInterface { name = "AddEimsSignedQr3460000000000"; public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(` ALTER TABLE freight.invoices ADD COLUMN IF NOT EXISTS eims_signed_qr text `); } public async down(queryRunner: QueryRunner): Promise { await queryRunner.query(` ALTER TABLE freight.invoices DROP COLUMN IF EXISTS eims_signed_qr `); } }