mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
16 lines
702 B
TypeScript
16 lines
702 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AddCbeBillPaymentMethod3050000000000 implements MigrationInterface {
|
|
name = "AddCbeBillPaymentMethod3050000000000";
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
// CBE Unified Bill Payment (docs/cbe/CBE_IMPLEMENTATION_PLAN.md §4.3) — lowercase-hyphen
|
|
// per the local convention (see 2460000000000-AddCacBankPaymentMethod).
|
|
await queryRunner.query(`ALTER TYPE freight.payments_method_enum ADD VALUE IF NOT EXISTS 'cbe-bill';`);
|
|
}
|
|
|
|
public async down(_queryRunner: QueryRunner): Promise<void> {
|
|
// PostgreSQL does not support removing enum values directly.
|
|
}
|
|
}
|