@reachu/database 1.0.112 → 1.0.114
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/ImportedProduct.d.ts +2 -0
- package/dist/entity/ImportedProduct.js +8 -0
- package/dist/entity/ImportedProduct.js.map +1 -1
- package/dist/migrations/1695122269023-imported_magento.d.ts +6 -0
- package/dist/migrations/1695122269023-imported_magento.js +31 -0
- package/dist/migrations/1695122269023-imported_magento.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +14 -2
- package/package.json +3 -3
- package/src/entity/ImportedProduct.ts +6 -0
- package/src/migrations/1695122269023-imported_magento.ts +16 -0
|
@@ -40,6 +40,14 @@ __decorate([
|
|
|
40
40
|
typeorm_1.Column('bigint', { nullable: true }),
|
|
41
41
|
__metadata("design:type", Number)
|
|
42
42
|
], ImportedProduct.prototype, "shopifyId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
typeorm_1.Column('bigint', { nullable: true }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], ImportedProduct.prototype, "magentoId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ImportedProduct.prototype, "magentoSku", void 0);
|
|
43
51
|
__decorate([
|
|
44
52
|
typeorm_1.Column('bigint', { nullable: true }),
|
|
45
53
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,qDAA2C;AAC3C,kDAA0B;AAC1B,gEAAwC;AAGxC,IAAqB,eAAe,GAApC,MAAqB,eAAe;
|
|
1
|
+
{"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;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E,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChD,oBAAU,EAAE;8BACA,qBAAW;oDAAC;AAzCN,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CA0CnC;kBA1CoB,eAAe"}
|
|
@@ -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.importedMagento1695122269023 = void 0;
|
|
13
|
+
class importedMagento1695122269023 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'importedMagento1695122269023';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_id\` bigint NULL`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_sku\` varchar(255) NULL`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_sku\``);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_id\``);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.importedMagento1695122269023 = importedMagento1695122269023;
|
|
31
|
+
//# sourceMappingURL=1695122269023-imported_magento.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1695122269023-imported_magento.js","sourceRoot":"","sources":["../../src/migrations/1695122269023-imported_magento.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,4BAA4B;IAAzC;QACI,SAAI,GAAG,8BAA8B,CAAA;IAYzC,CAAC;IAVgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,wEAAwE,CAAC,CAAC;QACtG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QAC3F,CAAC;KAAA;CAEJ;AAbD,oEAaC"}
|
|
@@ -2417,8 +2417,8 @@
|
|
|
2417
2417
|
"affectsGlobalScope": false
|
|
2418
2418
|
},
|
|
2419
2419
|
"../src/entity/importedproduct.ts": {
|
|
2420
|
-
"version": "
|
|
2421
|
-
"signature": "
|
|
2420
|
+
"version": "73618f97ce48119878fa477366ad1a1ce6e7c9a259b91ab8b517583b3a3f89c2",
|
|
2421
|
+
"signature": "618e0c3a9e4bec4f5f0ece560eeb89a02bed8d6df8fe2ab9899929bcb5b4fd05",
|
|
2422
2422
|
"affectsGlobalScope": false
|
|
2423
2423
|
},
|
|
2424
2424
|
"../src/staticdata/currency.ts": {
|
|
@@ -3511,6 +3511,11 @@
|
|
|
3511
3511
|
"signature": "a12b3714050bd58a48986a39d5b50cd09fa0e2c5ebe714e7913c75a95d31248d",
|
|
3512
3512
|
"affectsGlobalScope": false
|
|
3513
3513
|
},
|
|
3514
|
+
"../src/migrations/1695122269023-imported_magento.ts": {
|
|
3515
|
+
"version": "e3cf9b86b566fd61b4a3cd714e1965e1bb0d58369abfd05cb155bbb84d8031ef",
|
|
3516
|
+
"signature": "291ded748e5c781ea1a320b63b31ff77a26bf6e89936fe0de9b0075383542633",
|
|
3517
|
+
"affectsGlobalScope": false
|
|
3518
|
+
},
|
|
3514
3519
|
"../src/migrations/execute/index.ts": {
|
|
3515
3520
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3516
3521
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6515,6 +6520,9 @@
|
|
|
6515
6520
|
"../src/migrations/1694787189040-flag-digital.ts": [
|
|
6516
6521
|
"../node_modules/typeorm/index.d.ts"
|
|
6517
6522
|
],
|
|
6523
|
+
"../src/migrations/1695122269023-imported_magento.ts": [
|
|
6524
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6525
|
+
],
|
|
6518
6526
|
"../src/migrations/execute/index.ts": [
|
|
6519
6527
|
"../src/config/connect.ts"
|
|
6520
6528
|
],
|
|
@@ -9374,6 +9382,9 @@
|
|
|
9374
9382
|
"../src/migrations/1694787189040-flag-digital.ts": [
|
|
9375
9383
|
"../node_modules/typeorm/index.d.ts"
|
|
9376
9384
|
],
|
|
9385
|
+
"../src/migrations/1695122269023-imported_magento.ts": [
|
|
9386
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9387
|
+
],
|
|
9377
9388
|
"../src/migrations/index.ts": [
|
|
9378
9389
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9379
9390
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10233,6 +10244,7 @@
|
|
|
10233
10244
|
"../src/migrations/1694451010874-promote_to_production_11_09_23__01.ts",
|
|
10234
10245
|
"../src/migrations/1694661125001-user-channel-and-megento-connection.ts",
|
|
10235
10246
|
"../src/migrations/1694787189040-flag-digital.ts",
|
|
10247
|
+
"../src/migrations/1695122269023-imported_magento.ts",
|
|
10236
10248
|
"../src/migrations/execute/index.ts",
|
|
10237
10249
|
"../src/migrations/index.ts",
|
|
10238
10250
|
"../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.114",
|
|
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.114",
|
|
25
|
+
"@reachu/utils": "1.0.114",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -29,6 +29,12 @@ export default class ImportedProduct {
|
|
|
29
29
|
@Column('bigint', { nullable: true })
|
|
30
30
|
shopifyId?: number;
|
|
31
31
|
|
|
32
|
+
@Column('bigint', { nullable: true })
|
|
33
|
+
magentoId?: number;
|
|
34
|
+
|
|
35
|
+
@Column('varchar', { nullable: true })
|
|
36
|
+
magentoSku?: string;
|
|
37
|
+
|
|
32
38
|
@Column('bigint', { nullable: true })
|
|
33
39
|
wooId?: number;
|
|
34
40
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class importedMagento1695122269023 implements MigrationInterface {
|
|
4
|
+
name = 'importedMagento1695122269023'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_id\` bigint NULL`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_sku\` varchar(255) NULL`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_sku\``);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_id\``);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|