@reachu/database 1.0.119 → 1.0.120
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/entity/ProductDigital.d.ts +1 -0
- package/dist/entity/ProductDigital.js +4 -0
- package/dist/entity/ProductDigital.js.map +1 -1
- package/dist/migrations/1696268533737-digital_update_02.d.ts +6 -0
- package/dist/migrations/1696268533737-digital_update_02.js +31 -0
- package/dist/migrations/1696268533737-digital_update_02.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +14 -2
- package/package.json +3 -3
- package/src/entity/ProductDigital.ts +3 -0
- package/src/migrations/1696268533737-digital_update_02.ts +16 -0
|
@@ -56,6 +56,10 @@ __decorate([
|
|
|
56
56
|
typeorm_1.Column('integer', { nullable: true }),
|
|
57
57
|
__metadata("design:type", Number)
|
|
58
58
|
], ProductDigital.prototype, "type", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], ProductDigital.prototype, "position", void 0);
|
|
59
63
|
__decorate([
|
|
60
64
|
typeorm_1.OneToOne(() => ProductDigital_1, (productDigital) => productDigital.id, {
|
|
61
65
|
eager: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductDigital.js","sourceRoot":"","sources":["../../src/entity/ProductDigital.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,qDAA2C;AAC3C,iDAAuC;AAEvC,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,iDAAgB,CAAA;IAChB,qCAAU,CAAA;IACV,iCAAQ,CAAA;AACV,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,yCAAO,CAAA;IACP,uCAAM,CAAA;IACN,qDAAa,CAAA;AACf,CAAC,EAJW,UAAU,GAAV,kBA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,KAAK;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACG,cAAc;sDAAC;AAG/B;IADC,gBAAM,CAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;8BACnC,oBAAK;6CAAC;AAGb;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;AA7CM,cAAc;IADlC,gBAAM,EAAE;GACY,cAAc,CA8ClC;kBA9CoB,cAAc"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.digitalUpdate021696268533737 = void 0;
|
|
13
|
+
class digitalUpdate021696268533737 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'digitalUpdate021696268533737';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`DROP INDEX \`IDX_c6bbcf34d07fb60f39b9852f2a\` ON \`product_digital\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`position\` int NULL`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`position\``);
|
|
26
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`IDX_c6bbcf34d07fb60f39b9852f2a\` ON \`product_digital\` (\`product_digital_id\`)`);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.digitalUpdate021696268533737 = digitalUpdate021696268533737;
|
|
31
|
+
//# sourceMappingURL=1696268533737-digital_update_02.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1696268533737-digital_update_02.js","sourceRoot":"","sources":["../../src/migrations/1696268533737-digital_update_02.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,4BAA4B;IAAzC;QACI,SAAI,GAAG,8BAA8B,CAAA;IAYzC,CAAC;IAVgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;YAChG,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;QACzF,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;YACpF,MAAM,WAAW,CAAC,KAAK,CAAC,wGAAwG,CAAC,CAAC;QACtI,CAAC;KAAA;CAEJ;AAbD,oEAaC"}
|
|
@@ -2652,8 +2652,8 @@
|
|
|
2652
2652
|
"affectsGlobalScope": false
|
|
2653
2653
|
},
|
|
2654
2654
|
"../src/entity/productdigital.ts": {
|
|
2655
|
-
"version": "
|
|
2656
|
-
"signature": "
|
|
2655
|
+
"version": "a94b04ba80eaf4b01e00f2680d7debc86087e653f1d7629692ab0dabec165279",
|
|
2656
|
+
"signature": "458b3ad0e3b76f8c3c38d40f6109d2302b60912138f9b5e2dccadf9a236c8a72",
|
|
2657
2657
|
"affectsGlobalScope": false
|
|
2658
2658
|
},
|
|
2659
2659
|
"../src/entity/modules/templates/endpointtemplateecommerce.ts": {
|
|
@@ -3546,6 +3546,11 @@
|
|
|
3546
3546
|
"signature": "660f9871aa3be94831d2cd273000d246afd1819aa2832359a1daa1be6e03ce15",
|
|
3547
3547
|
"affectsGlobalScope": false
|
|
3548
3548
|
},
|
|
3549
|
+
"../src/migrations/1696268533737-digital_update_02.ts": {
|
|
3550
|
+
"version": "1d5e303c9a7957c6fb006e1f529dfe565e234e12bea667b8b2d1d10a2dec6bcb",
|
|
3551
|
+
"signature": "c6f82cb47d34f7da93d240fbe9d790acf46fe51ae6c48ea64cc7672b45ad3c13",
|
|
3552
|
+
"affectsGlobalScope": false
|
|
3553
|
+
},
|
|
3549
3554
|
"../src/migrations/execute/index.ts": {
|
|
3550
3555
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3551
3556
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6575,6 +6580,9 @@
|
|
|
6575
6580
|
"../src/migrations/1696266360829-digital_update_01.ts": [
|
|
6576
6581
|
"../node_modules/typeorm/index.d.ts"
|
|
6577
6582
|
],
|
|
6583
|
+
"../src/migrations/1696268533737-digital_update_02.ts": [
|
|
6584
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6585
|
+
],
|
|
6578
6586
|
"../src/migrations/execute/index.ts": [
|
|
6579
6587
|
"../src/config/connect.ts"
|
|
6580
6588
|
],
|
|
@@ -9459,6 +9467,9 @@
|
|
|
9459
9467
|
"../src/migrations/1696266360829-digital_update_01.ts": [
|
|
9460
9468
|
"../node_modules/typeorm/index.d.ts"
|
|
9461
9469
|
],
|
|
9470
|
+
"../src/migrations/1696268533737-digital_update_02.ts": [
|
|
9471
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9472
|
+
],
|
|
9462
9473
|
"../src/migrations/index.ts": [
|
|
9463
9474
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9464
9475
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10326,6 +10337,7 @@
|
|
|
10326
10337
|
"../src/migrations/1695907880854-digital-product-v-2.ts",
|
|
10327
10338
|
"../src/migrations/1696260773644-digital_update.ts",
|
|
10328
10339
|
"../src/migrations/1696266360829-digital_update_01.ts",
|
|
10340
|
+
"../src/migrations/1696268533737-digital_update_02.ts",
|
|
10329
10341
|
"../src/migrations/execute/index.ts",
|
|
10330
10342
|
"../src/migrations/index.ts",
|
|
10331
10343
|
"../src/repositories/discount/index.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.120",
|
|
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.
|
|
25
|
-
"@reachu/utils": "1.0.
|
|
24
|
+
"@reachu/logger": "1.0.120",
|
|
25
|
+
"@reachu/utils": "1.0.120",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -43,6 +43,9 @@ export default class ProductDigital extends AuditedModel {
|
|
|
43
43
|
@Column('integer', { nullable: true })
|
|
44
44
|
type: _type | null;
|
|
45
45
|
|
|
46
|
+
@Column('integer', { nullable: true })
|
|
47
|
+
position: number;
|
|
48
|
+
|
|
46
49
|
@OneToOne(() => ProductDigital, (productDigital: ProductDigital) => productDigital.id, {
|
|
47
50
|
eager: false,
|
|
48
51
|
nullable: true,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class digitalUpdate021696268533737 implements MigrationInterface {
|
|
4
|
+
name = 'digitalUpdate021696268533737'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`DROP INDEX \`IDX_c6bbcf34d07fb60f39b9852f2a\` ON \`product_digital\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` ADD \`position\` int NULL`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`product_digital\` DROP COLUMN \`position\``);
|
|
13
|
+
await queryRunner.query(`CREATE UNIQUE INDEX \`IDX_c6bbcf34d07fb60f39b9852f2a\` ON \`product_digital\` (\`product_digital_id\`)`);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|