mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 14:08:11 +00:00
21 lines
644 B
TypeScript
21 lines
644 B
TypeScript
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<void> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE freight.invoices
|
|
ADD COLUMN IF NOT EXISTS eims_signed_qr text
|
|
`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE freight.invoices
|
|
DROP COLUMN IF EXISTS eims_signed_qr
|
|
`);
|
|
}
|
|
}
|