mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 06:35:42 +00:00
fix
This commit is contained in:
@@ -15,6 +15,7 @@ export class CreateInvoices1821000000002 implements MigrationInterface {
|
|||||||
name = "CreateInvoices1821000000002";
|
name = "CreateInvoices1821000000002";
|
||||||
|
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
<<<<<<< HEAD
|
||||||
const typeExists = await queryRunner.query(
|
const typeExists = await queryRunner.query(
|
||||||
`SELECT 1 FROM pg_type WHERE typname = 'invoices_status_enum' AND typnamespace = 'freight'::regnamespace;`,
|
`SELECT 1 FROM pg_type WHERE typname = 'invoices_status_enum' AND typnamespace = 'freight'::regnamespace;`,
|
||||||
);
|
);
|
||||||
@@ -31,6 +32,18 @@ export class CreateInvoices1821000000002 implements MigrationInterface {
|
|||||||
);
|
);
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
=======
|
||||||
|
await queryRunner.query(`
|
||||||
|
CREATE TYPE IF NOT EXISTS freight.invoices_status_enum AS ENUM (
|
||||||
|
'DRAFT',
|
||||||
|
'PENDING',
|
||||||
|
'PAID',
|
||||||
|
'OVERDUE',
|
||||||
|
'CANCELLED',
|
||||||
|
'REFUNDED'
|
||||||
|
);
|
||||||
|
`);
|
||||||
|
>>>>>>> 3ceacbe9a9087498cf007111b7b09ad3d35bce35
|
||||||
|
|
||||||
await queryRunner.query(`
|
await queryRunner.query(`
|
||||||
CREATE TABLE freight.invoices (
|
CREATE TABLE freight.invoices (
|
||||||
|
|||||||
Reference in New Issue
Block a user