@reachu/database 1.0.116 → 1.0.117

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.
@@ -8,4 +8,5 @@ export default class ProductDigital extends AuditedModel {
8
8
  donwload_limit: number;
9
9
  expiration_date: Date;
10
10
  product: Product;
11
+ name: string;
11
12
  }
@@ -48,6 +48,10 @@ __decorate([
48
48
  typeorm_1.JoinColumn(),
49
49
  __metadata("design:type", Product_entity_1.Product)
50
50
  ], ProductDigital.prototype, "product", void 0);
51
+ __decorate([
52
+ typeorm_1.Column('text', { nullable: false }),
53
+ __metadata("design:type", String)
54
+ ], ProductDigital.prototype, "name", void 0);
51
55
  ProductDigital = __decorate([
52
56
  typeorm_1.Entity()
53
57
  ], ProductDigital);
@@ -1 +1 @@
1
- {"version":3,"file":"ProductDigital.js","sourceRoot":"","sources":["../../src/entity/ProductDigital.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,kEAA0C;AAC1C,qDAA2C;AAG3C,IAAqB,cAAc,GAAnC,MAAqB,cAAe,SAAQ,sBAAY;CAwBvD,CAAA;AAtBC;IADC,gCAAsB,EAAE;;0CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;iDAAC;AAGhB;IADC,gBAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACnB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACf;AAGvB;IADC,gBAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;uDAAC;AAMtB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE;QAC1D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;+CAAC;AAvBE,cAAc;IADlC,gBAAM,EAAE;GACY,cAAc,CAwBlC;kBAxBoB,cAAc"}
1
+ {"version":3,"file":"ProductDigital.js","sourceRoot":"","sources":["../../src/entity/ProductDigital.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,kEAA0C;AAC1C,qDAA2C;AAG3C,IAAqB,cAAc,GAAnC,MAAqB,cAAe,SAAQ,sBAAY;CA2BvD,CAAA;AAzBC;IADC,gCAAsB,EAAE;;0CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;iDAAC;AAGhB;IADC,gBAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACnB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACf;AAGvB;IADC,gBAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;uDAAC;AAMtB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE;QAC1D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;+CAAC;AAGjB;IADC,gBAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4CACvB;AA1BM,cAAc;IADlC,gBAAM,EAAE;GACY,cAAc,CA2BlC;kBA3BoB,cAAc"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class digitalProductV21695907880854 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.digitalProductV21695907880854 = void 0;
13
+ class digitalProductV21695907880854 {
14
+ constructor() {
15
+ this.name = 'digitalProductV21695907880854';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`name\` text NOT NULL`);
20
+ });
21
+ }
22
+ down(queryRunner) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ yield queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`name\``);
25
+ });
26
+ }
27
+ }
28
+ exports.digitalProductV21695907880854 = digitalProductV21695907880854;
29
+ //# sourceMappingURL=1695907880854-digital-product-v-2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1695907880854-digital-product-v-2.js","sourceRoot":"","sources":["../../src/migrations/1695907880854-digital-product-v-2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,6BAA6B;IAA1C;QACI,SAAI,GAAG,+BAA+B,CAAA;IAU1C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QAC1F,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;QACpF,CAAC;KAAA;CAEJ;AAXD,sEAWC"}
@@ -2652,8 +2652,8 @@
2652
2652
  "affectsGlobalScope": false
2653
2653
  },
2654
2654
  "../src/entity/productdigital.ts": {
2655
- "version": "1a8d6b2e87063af60aa677c93941c9dd4ccf8269e6e2305a1a5649fa832629f3",
2656
- "signature": "e78c087f1f5dd26086ad14cdea5baa5c91fdbb99215315d1e3b2443b214b1027",
2655
+ "version": "979148edce9886aef3487d70735d03f835c2d3977ca3cbde5ee8cb7e6506e30a",
2656
+ "signature": "e82c4ae324740ff4e3caeec86c7a74d21840f860e3d21a3b30c2b7d30b9c3632",
2657
2657
  "affectsGlobalScope": false
2658
2658
  },
2659
2659
  "../src/entity/modules/templates/endpointtemplateecommerce.ts": {
@@ -3531,6 +3531,11 @@
3531
3531
  "signature": "e659d5a979a00a9e06f84e8a49e3e1ee0209081584e3fc61e661be0010c55514",
3532
3532
  "affectsGlobalScope": false
3533
3533
  },
3534
+ "../src/migrations/1695907880854-digital-product-v-2.ts": {
3535
+ "version": "a6d812720d8d08a2fa6806d7c7f70eeaf118983bd6962844ef8b3c1999518a54",
3536
+ "signature": "a44b995de12ecde750895d72b61706ba5c063712ea3d2f505597b008f04b92dc",
3537
+ "affectsGlobalScope": false
3538
+ },
3534
3539
  "../src/migrations/execute/index.ts": {
3535
3540
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3536
3541
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -6550,6 +6555,9 @@
6550
6555
  "../src/migrations/1695658039275-digital-product-v-1.ts": [
6551
6556
  "../node_modules/typeorm/index.d.ts"
6552
6557
  ],
6558
+ "../src/migrations/1695907880854-digital-product-v-2.ts": [
6559
+ "../node_modules/typeorm/index.d.ts"
6560
+ ],
6553
6561
  "../src/migrations/execute/index.ts": [
6554
6562
  "../src/config/connect.ts"
6555
6563
  ],
@@ -9424,6 +9432,9 @@
9424
9432
  "../src/migrations/1695658039275-digital-product-v-1.ts": [
9425
9433
  "../node_modules/typeorm/index.d.ts"
9426
9434
  ],
9435
+ "../src/migrations/1695907880854-digital-product-v-2.ts": [
9436
+ "../node_modules/typeorm/index.d.ts"
9437
+ ],
9427
9438
  "../src/migrations/index.ts": [
9428
9439
  "../src/migrations/1628474597284-initialschema.ts",
9429
9440
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -10288,6 +10299,7 @@
10288
10299
  "../src/migrations/1695122269023-imported_magento.ts",
10289
10300
  "../src/migrations/1695123846329-imported_magento_1.ts",
10290
10301
  "../src/migrations/1695658039275-digital-product-v-1.ts",
10302
+ "../src/migrations/1695907880854-digital-product-v-2.ts",
10291
10303
  "../src/migrations/execute/index.ts",
10292
10304
  "../src/migrations/index.ts",
10293
10305
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.116",
3
+ "version": "1.0.117",
4
4
  "description": "reachu-database",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "author": "reachu",
22
22
  "license": "ISC",
23
23
  "dependencies": {
24
- "@reachu/logger": "1.0.116",
25
- "@reachu/utils": "1.0.116",
24
+ "@reachu/logger": "1.0.117",
25
+ "@reachu/utils": "1.0.117",
26
26
  "dotenv": "8.0.0",
27
27
  "express": "4.17.1",
28
28
  "mysql2": "1.5.2",
@@ -34,4 +34,7 @@ export default class ProductDigital extends AuditedModel {
34
34
  })
35
35
  @JoinColumn()
36
36
  product: Product;
37
+
38
+ @Column('text', { nullable: false })
39
+ name: string;
37
40
  }
@@ -0,0 +1,14 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class digitalProductV21695907880854 implements MigrationInterface {
4
+ name = 'digitalProductV21695907880854'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`name\` text NOT NULL`);
8
+ }
9
+
10
+ public async down(queryRunner: QueryRunner): Promise<void> {
11
+ await queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`name\``);
12
+ }
13
+
14
+ }