@infuro/cms-core 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin.cjs +232 -4
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.js +232 -4
- package/dist/admin.js.map +1 -1
- package/dist/api.cjs +390 -58
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +390 -58
- package/dist/api.js.map +1 -1
- package/dist/{index-Be8NLxu-.d.cts → index-BQnqJ7EO.d.cts} +2 -0
- package/dist/{index-CjBf9dAb.d.ts → index-BiagwMjV.d.ts} +2 -0
- package/dist/index.cjs +498 -198
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +498 -198
- package/dist/index.js.map +1 -1
- package/dist/migrations/1775000000000-ProductUomTypeOrderItemSnapshots.ts +29 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class ProductUomTypeOrderItemSnapshots1775000000000 implements MigrationInterface {
|
|
4
|
+
name = 'ProductUomTypeOrderItemSnapshots1775000000000';
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "products" ADD COLUMN IF NOT EXISTS "uom" character varying`);
|
|
8
|
+
await queryRunner.query(
|
|
9
|
+
`ALTER TABLE "products" ADD COLUMN IF NOT EXISTS "type" character varying NOT NULL DEFAULT 'product'`
|
|
10
|
+
);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "order_items" ADD COLUMN IF NOT EXISTS "hsn" character varying`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "order_items" ADD COLUMN IF NOT EXISTS "uom" character varying`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "order_items" ADD COLUMN IF NOT EXISTS "productType" character varying`);
|
|
14
|
+
await queryRunner.query(
|
|
15
|
+
`ALTER TABLE "order_items" ADD COLUMN IF NOT EXISTS "taxRate" numeric(5,2)`
|
|
16
|
+
);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "order_items" ADD COLUMN IF NOT EXISTS "taxCode" character varying`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
21
|
+
await queryRunner.query(`ALTER TABLE "order_items" DROP COLUMN IF EXISTS "taxCode"`);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE "order_items" DROP COLUMN IF EXISTS "taxRate"`);
|
|
23
|
+
await queryRunner.query(`ALTER TABLE "order_items" DROP COLUMN IF EXISTS "productType"`);
|
|
24
|
+
await queryRunner.query(`ALTER TABLE "order_items" DROP COLUMN IF EXISTS "uom"`);
|
|
25
|
+
await queryRunner.query(`ALTER TABLE "order_items" DROP COLUMN IF EXISTS "hsn"`);
|
|
26
|
+
await queryRunner.query(`ALTER TABLE "products" DROP COLUMN IF EXISTS "type"`);
|
|
27
|
+
await queryRunner.query(`ALTER TABLE "products" DROP COLUMN IF EXISTS "uom"`);
|
|
28
|
+
}
|
|
29
|
+
}
|