@reachu/database 1.0.166 → 1.0.170
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/ChannelUserSettings.d.ts +1 -0
- package/dist/entity/ChannelUserSettings.js +4 -0
- package/dist/entity/ChannelUserSettings.js.map +1 -1
- package/dist/entity/Currency.d.ts +1 -0
- package/dist/entity/Currency.js +4 -0
- package/dist/entity/Currency.js.map +1 -1
- package/dist/entity/modules/shopcart/Checkout.js +1 -1
- package/dist/entity/modules/shopcart/Checkout.js.map +1 -1
- package/dist/migrations/1712152339832-checkout-decimal.d.ts +6 -0
- package/dist/migrations/1712152339832-checkout-decimal.js +29 -0
- package/dist/migrations/1712152339832-checkout-decimal.js.map +1 -0
- package/dist/migrations/1712581513735-currency-symbol.d.ts +6 -0
- package/dist/migrations/1712581513735-currency-symbol.js +29 -0
- package/dist/migrations/1712581513735-currency-symbol.js.map +1 -0
- package/dist/migrations/1713542026036-channelusersettings-purchaseconditions.d.ts +6 -0
- package/dist/migrations/1713542026036-channelusersettings-purchaseconditions.js +29 -0
- package/dist/migrations/1713542026036-channelusersettings-purchaseconditions.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +41 -5
- package/package.json +3 -3
- package/src/entity/ChannelUserSettings.ts +3 -0
- package/src/entity/Currency.ts +3 -0
- package/src/entity/modules/shopcart/Checkout.ts +1 -1
- package/src/migrations/1712152339832-checkout-decimal.ts +17 -0
- package/src/migrations/1712581513735-currency-symbol.ts +14 -0
- package/src/migrations/1713542026036-channelusersettings-purchaseconditions.ts +14 -0
|
@@ -40,6 +40,10 @@ __decorate([
|
|
|
40
40
|
typeorm_1.Column('varchar', { length: '21844' }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], ChannelUserSettings.prototype, "markets", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
typeorm_1.Column('boolean', { default: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], ChannelUserSettings.prototype, "purchaseConditions", void 0);
|
|
43
47
|
ChannelUserSettings = __decorate([
|
|
44
48
|
typeorm_1.Entity()
|
|
45
49
|
], ChannelUserSettings);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUserSettings.js","sourceRoot":"","sources":["../../src/entity/ChannelUserSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,mBAAmB,GAAxC,MAAqB,mBAAoB,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"ChannelUserSettings.js","sourceRoot":"","sources":["../../src/entity/ChannelUserSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,mBAAmB,GAAxC,MAAqB,mBAAoB,SAAQ,sBAAY;CAsB5D,CAAA;AApBC;IADC,0BAAgB,EAAE;8BACR,IAAI;sDAAC;AAGhB;IADC,gCAAsB,EAAE;;+CACd;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACX;AAG3B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gEACT;AAG7B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;mDACtB;AAIhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;oDACvB;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;+DACT;AArBT,mBAAmB;IADvC,gBAAM,EAAE;GACY,mBAAmB,CAsBvC;kBAtBoB,mBAAmB"}
|
package/dist/entity/Currency.js
CHANGED
|
@@ -32,6 +32,10 @@ __decorate([
|
|
|
32
32
|
typeorm_1.Column('boolean', { default: false }),
|
|
33
33
|
__metadata("design:type", Boolean)
|
|
34
34
|
], Currency.prototype, "enabled", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
typeorm_1.Column('varchar'),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Currency.prototype, "symbol", void 0);
|
|
35
39
|
Currency = __decorate([
|
|
36
40
|
typeorm_1.Entity()
|
|
37
41
|
], Currency);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/entity/Currency.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/entity/Currency.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CAejD,CAAA;AAbC;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gCAAsB,EAAE;;oCACd;AAGX;IADC,gBAAM,CAAC,SAAS,CAAC;;sCACL;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACrB;AAGjB;IADC,gBAAM,CAAC,SAAS,CAAC;;wCACH;AAdI,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CAe5B;kBAfoB,QAAQ"}
|
|
@@ -93,7 +93,7 @@ __decorate([
|
|
|
93
93
|
__metadata("design:type", Number)
|
|
94
94
|
], Checkout.prototype, "total_tax", void 0);
|
|
95
95
|
__decorate([
|
|
96
|
-
typeorm_1.Column('
|
|
96
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, default: 0 }),
|
|
97
97
|
__metadata("design:type", Number)
|
|
98
98
|
], Checkout.prototype, "total_line_items_price", void 0);
|
|
99
99
|
Checkout = __decorate([
|
|
@@ -1 +1 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AE,MAAM,EAAE,OAAO,EAAE,CAAC;;qDAC1B;AAI7B;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAChG,oBAAU,EAAE;8BACP,cAAI;sCAAC;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACtC;AAGrB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2CACxC;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wDAC3B;AA1Db,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CA2D5B;kBA3DoB,QAAQ"}
|
|
@@ -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.checkoutDecimal1712152339832 = void 0;
|
|
13
|
+
class checkoutDecimal1712152339832 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'checkoutDecimal1712152339832';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` MODIFY COLUMN \`total_line_items_price\` decimal(10,2) NOT NULL DEFAULT '0.00'`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`checkout\` MODIFY COLUMN \`total_line_items_price\` int NOT NULL DEFAULT '0'`);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.checkoutDecimal1712152339832 = checkoutDecimal1712152339832;
|
|
29
|
+
//# sourceMappingURL=1712152339832-checkout-decimal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1712152339832-checkout-decimal.js","sourceRoot":"","sources":["../../src/migrations/1712152339832-checkout-decimal.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,4BAA4B;IAAzC;QACE,SAAI,GAAG,8BAA8B,CAAC;IAaxC,CAAC;IAXc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,yGAAyG,CAC1G,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,4FAA4F,CAC7F,CAAC;QACJ,CAAC;KAAA;CACF;AAdD,oEAcC"}
|
|
@@ -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.currencySymbol1712581513735 = void 0;
|
|
13
|
+
class currencySymbol1712581513735 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'currencySymbol1712581513735';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`currency\` ADD \`symbol\` varchar(255) NOT NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`currency\` DROP COLUMN \`symbol\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.currencySymbol1712581513735 = currencySymbol1712581513735;
|
|
29
|
+
//# sourceMappingURL=1712581513735-currency-symbol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1712581513735-currency-symbol.js","sourceRoot":"","sources":["../../src/migrations/1712581513735-currency-symbol.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,2BAA2B;IAAxC;QACI,SAAI,GAAG,6BAA6B,CAAA;IAUxC,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;QAC7F,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;QAC/E,CAAC;KAAA;CAEJ;AAXD,kEAWC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
2
|
+
export declare class channelusersettingsPurchaseconditions1713542026036 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.channelusersettingsPurchaseconditions1713542026036 = void 0;
|
|
13
|
+
class channelusersettingsPurchaseconditions1713542026036 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'channelusersettingsPurchaseconditions1713542026036';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_settings\` ADD \`purchase_conditions\` tinyint NOT NULL DEFAULT 1`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_settings\` DROP COLUMN \`purchase_conditions\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.channelusersettingsPurchaseconditions1713542026036 = channelusersettingsPurchaseconditions1713542026036;
|
|
29
|
+
//# sourceMappingURL=1713542026036-channelusersettings-purchaseconditions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1713542026036-channelusersettings-purchaseconditions.js","sourceRoot":"","sources":["../../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,kDAAkD;IAA/D;QACI,SAAI,GAAG,oDAAoD,CAAA;IAU/D,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,8FAA8F,CAAC,CAAC;QAC5H,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAC;QACzG,CAAC;KAAA;CAEJ;AAXD,gHAWC"}
|
|
@@ -2382,8 +2382,8 @@
|
|
|
2382
2382
|
"affectsGlobalScope": false
|
|
2383
2383
|
},
|
|
2384
2384
|
"../src/entity/currency.ts": {
|
|
2385
|
-
"version": "
|
|
2386
|
-
"signature": "
|
|
2385
|
+
"version": "0f4f500055ed5cd7fb75502e9010b72c0ecaed2801e46e1174e6e5a42e03a289",
|
|
2386
|
+
"signature": "fdfbc05bce163d8e4aee0c494da1a9b90bab8b0f634bca68e68e5a6e41dc9462",
|
|
2387
2387
|
"affectsGlobalScope": false
|
|
2388
2388
|
},
|
|
2389
2389
|
"../src/entity/envtype.ts": {
|
|
@@ -2497,8 +2497,8 @@
|
|
|
2497
2497
|
"affectsGlobalScope": false
|
|
2498
2498
|
},
|
|
2499
2499
|
"../src/entity/channelusersettings.ts": {
|
|
2500
|
-
"version": "
|
|
2501
|
-
"signature": "
|
|
2500
|
+
"version": "53934f41cff7a591a218b0e9ce7dafe72d9e429c5504fbbc2e0a9a344ac5187b",
|
|
2501
|
+
"signature": "3bac16436261ac5712c045a8cc54ab5b4d8b19329e04cef250dc367c8ee48243",
|
|
2502
2502
|
"affectsGlobalScope": false
|
|
2503
2503
|
},
|
|
2504
2504
|
"../src/entity/channeluser.ts": {
|
|
@@ -2562,7 +2562,7 @@
|
|
|
2562
2562
|
"affectsGlobalScope": false
|
|
2563
2563
|
},
|
|
2564
2564
|
"../src/entity/modules/shopcart/checkout.ts": {
|
|
2565
|
-
"version": "
|
|
2565
|
+
"version": "4f5b57c5b62e601b9fc23de43b57a2c446417ffea0952e960c5c9eb339a362eb",
|
|
2566
2566
|
"signature": "a9961ffc9ff83ef589fa12959732e6ce745076fc496e11980b69ed7595cdd267",
|
|
2567
2567
|
"affectsGlobalScope": false
|
|
2568
2568
|
},
|
|
@@ -3736,6 +3736,21 @@
|
|
|
3736
3736
|
"signature": "a425f51ebe38ae70a413ff58cff0e43efa21ca0485060f63c634255eb175fea6",
|
|
3737
3737
|
"affectsGlobalScope": false
|
|
3738
3738
|
},
|
|
3739
|
+
"../src/migrations/1712152339832-checkout-decimal.ts": {
|
|
3740
|
+
"version": "ca10f80445095afeae35c323000b34f110bf4c23c5fcadcaca7f1ec9ca56d2ce",
|
|
3741
|
+
"signature": "c3afe52c69b952dbcc2b4f36c431626edb7d5f7849090717e89167eac52b396f",
|
|
3742
|
+
"affectsGlobalScope": false
|
|
3743
|
+
},
|
|
3744
|
+
"../src/migrations/1712581513735-currency-symbol.ts": {
|
|
3745
|
+
"version": "8c8a0a151597f46253da402195fed0449c4469c860e4336378ffc4b1c59c006d",
|
|
3746
|
+
"signature": "5212e41f95951efd7d0e7afd34932147dd88ef57daf9e85c03a7ef7da77f1d88",
|
|
3747
|
+
"affectsGlobalScope": false
|
|
3748
|
+
},
|
|
3749
|
+
"../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts": {
|
|
3750
|
+
"version": "fdc0ecc35eb1be654373a680594aecb77767e57e3efd1666059f2922defbfedb",
|
|
3751
|
+
"signature": "92d587aec0241377cecd8befdaa5c21ac5400bbdd067afc4830b33a2de1579a9",
|
|
3752
|
+
"affectsGlobalScope": false
|
|
3753
|
+
},
|
|
3739
3754
|
"../src/migrations/execute/index.ts": {
|
|
3740
3755
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3741
3756
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6894,6 +6909,15 @@
|
|
|
6894
6909
|
"../src/migrations/1711640105019-product-brand.ts": [
|
|
6895
6910
|
"../node_modules/typeorm/index.d.ts"
|
|
6896
6911
|
],
|
|
6912
|
+
"../src/migrations/1712152339832-checkout-decimal.ts": [
|
|
6913
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6914
|
+
],
|
|
6915
|
+
"../src/migrations/1712581513735-currency-symbol.ts": [
|
|
6916
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6917
|
+
],
|
|
6918
|
+
"../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts": [
|
|
6919
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6920
|
+
],
|
|
6897
6921
|
"../src/migrations/execute/index.ts": [
|
|
6898
6922
|
"../src/config/connect.ts"
|
|
6899
6923
|
],
|
|
@@ -9906,6 +9930,15 @@
|
|
|
9906
9930
|
"../src/migrations/1711640105019-product-brand.ts": [
|
|
9907
9931
|
"../node_modules/typeorm/index.d.ts"
|
|
9908
9932
|
],
|
|
9933
|
+
"../src/migrations/1712152339832-checkout-decimal.ts": [
|
|
9934
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9935
|
+
],
|
|
9936
|
+
"../src/migrations/1712581513735-currency-symbol.ts": [
|
|
9937
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9938
|
+
],
|
|
9939
|
+
"../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts": [
|
|
9940
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9941
|
+
],
|
|
9909
9942
|
"../src/migrations/index.ts": [
|
|
9910
9943
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9911
9944
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10814,6 +10847,9 @@
|
|
|
10814
10847
|
"../src/migrations/1708039535580-order-channel-user.ts",
|
|
10815
10848
|
"../src/migrations/1711562145337-user-channel-settings.ts",
|
|
10816
10849
|
"../src/migrations/1711640105019-product-brand.ts",
|
|
10850
|
+
"../src/migrations/1712152339832-checkout-decimal.ts",
|
|
10851
|
+
"../src/migrations/1712581513735-currency-symbol.ts",
|
|
10852
|
+
"../src/migrations/1713542026036-channelusersettings-purchaseconditions.ts",
|
|
10817
10853
|
"../src/migrations/execute/index.ts",
|
|
10818
10854
|
"../src/migrations/index.ts",
|
|
10819
10855
|
"../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.170",
|
|
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.170",
|
|
25
|
+
"@reachu/utils": "1.0.170",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
package/src/entity/Currency.ts
CHANGED
|
@@ -71,6 +71,6 @@ export default class Checkout extends AuditedModel {
|
|
|
71
71
|
@Column('decimal', { precision: 10, scale: 2, default: 0 })
|
|
72
72
|
total_tax?: number;
|
|
73
73
|
|
|
74
|
-
@Column('
|
|
74
|
+
@Column('decimal', { precision: 10, scale: 2, default: 0 })
|
|
75
75
|
total_line_items_price?: number;
|
|
76
76
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class checkoutDecimal1712152339832 implements MigrationInterface {
|
|
4
|
+
name = 'checkoutDecimal1712152339832';
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(
|
|
8
|
+
`ALTER TABLE \`checkout\` MODIFY COLUMN \`total_line_items_price\` decimal(10,2) NOT NULL DEFAULT '0.00'`,
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(
|
|
14
|
+
`ALTER TABLE \`checkout\` MODIFY COLUMN \`total_line_items_price\` int NOT NULL DEFAULT '0'`,
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class currencySymbol1712581513735 implements MigrationInterface {
|
|
4
|
+
name = 'currencySymbol1712581513735'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`currency\` ADD \`symbol\` varchar(255) NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`currency\` DROP COLUMN \`symbol\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class channelusersettingsPurchaseconditions1713542026036 implements MigrationInterface {
|
|
4
|
+
name = 'channelusersettingsPurchaseconditions1713542026036'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`channel_user_settings\` ADD \`purchase_conditions\` tinyint NOT NULL DEFAULT 1`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`channel_user_settings\` DROP COLUMN \`purchase_conditions\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|