@reachu/database 1.0.114 → 1.0.115
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 +1 -0
- package/dist/entity/ImportedProduct.js +4 -0
- package/dist/entity/ImportedProduct.js.map +1 -1
- package/dist/migrations/1695123846329-imported_magento_1.d.ts +6 -0
- package/dist/migrations/1695123846329-imported_magento_1.js +33 -0
- package/dist/migrations/1695123846329-imported_magento_1.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +14 -2
- package/package.json +3 -3
- package/src/entity/ImportedProduct.ts +3 -0
- package/src/migrations/1695123846329-imported_magento_1.ts +18 -0
|
@@ -48,6 +48,10 @@ __decorate([
|
|
|
48
48
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
49
49
|
__metadata("design:type", String)
|
|
50
50
|
], ImportedProduct.prototype, "magentoSku", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], ImportedProduct.prototype, "profileMagentoId", void 0);
|
|
51
55
|
__decorate([
|
|
52
56
|
typeorm_1.Column('bigint', { nullable: true }),
|
|
53
57
|
__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":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,qDAA2C;AAC3C,kDAA0B;AAC1B,gEAAwC;AAGxC,IAAqB,eAAe,GAApC,MAAqB,eAAe;CA6CnC,CAAA;A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CAAC;IAChD,oBAAU,EAAE;8BACA,qBAAW;oDAAC;AA5CN,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CA6CnC;kBA7CoB,eAAe"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.importedMagento11695123846329 = void 0;
|
|
13
|
+
class importedMagento11695123846329 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'importedMagento11695123846329';
|
|
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
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`profile_magento_id\` varchar(255) NULL`);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
down(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`profile_magento_id\``);
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_sku\``);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_id\``);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.importedMagento11695123846329 = importedMagento11695123846329;
|
|
33
|
+
//# sourceMappingURL=1695123846329-imported_magento_1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1695123846329-imported_magento_1.js","sourceRoot":"","sources":["../../src/migrations/1695123846329-imported_magento_1.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,6BAA6B;IAA1C;QACI,SAAI,GAAG,+BAA+B,CAAA;IAc1C,CAAC;IAZgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,wEAAwE,CAAC,CAAC;YAClG,MAAM,WAAW,CAAC,KAAK,CAAC,+EAA+E,CAAC,CAAC;QAC7G,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QAC3F,CAAC;KAAA;CAEJ;AAfD,sEAeC"}
|
|
@@ -2417,8 +2417,8 @@
|
|
|
2417
2417
|
"affectsGlobalScope": false
|
|
2418
2418
|
},
|
|
2419
2419
|
"../src/entity/importedproduct.ts": {
|
|
2420
|
-
"version": "
|
|
2421
|
-
"signature": "
|
|
2420
|
+
"version": "110ac8ceecb7ae64aa807b9588d274ff2a023fd3e50d6456234bce74a8017823",
|
|
2421
|
+
"signature": "7bf17cca9ae7e345f842523f6b7c3a1bfbec42f3ce8d439b5f1d68a7d70de7f4",
|
|
2422
2422
|
"affectsGlobalScope": false
|
|
2423
2423
|
},
|
|
2424
2424
|
"../src/staticdata/currency.ts": {
|
|
@@ -3516,6 +3516,11 @@
|
|
|
3516
3516
|
"signature": "291ded748e5c781ea1a320b63b31ff77a26bf6e89936fe0de9b0075383542633",
|
|
3517
3517
|
"affectsGlobalScope": false
|
|
3518
3518
|
},
|
|
3519
|
+
"../src/migrations/1695123846329-imported_magento_1.ts": {
|
|
3520
|
+
"version": "041792231c6b7b810677f6046ceb107063ae01e8b27a89b88d5b7e8141343986",
|
|
3521
|
+
"signature": "5b95f8e8603edb11d8099947cab5f931a6406f5503c21c42ebdb75ad042e0994",
|
|
3522
|
+
"affectsGlobalScope": false
|
|
3523
|
+
},
|
|
3519
3524
|
"../src/migrations/execute/index.ts": {
|
|
3520
3525
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3521
3526
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6523,6 +6528,9 @@
|
|
|
6523
6528
|
"../src/migrations/1695122269023-imported_magento.ts": [
|
|
6524
6529
|
"../node_modules/typeorm/index.d.ts"
|
|
6525
6530
|
],
|
|
6531
|
+
"../src/migrations/1695123846329-imported_magento_1.ts": [
|
|
6532
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6533
|
+
],
|
|
6526
6534
|
"../src/migrations/execute/index.ts": [
|
|
6527
6535
|
"../src/config/connect.ts"
|
|
6528
6536
|
],
|
|
@@ -9385,6 +9393,9 @@
|
|
|
9385
9393
|
"../src/migrations/1695122269023-imported_magento.ts": [
|
|
9386
9394
|
"../node_modules/typeorm/index.d.ts"
|
|
9387
9395
|
],
|
|
9396
|
+
"../src/migrations/1695123846329-imported_magento_1.ts": [
|
|
9397
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9398
|
+
],
|
|
9388
9399
|
"../src/migrations/index.ts": [
|
|
9389
9400
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9390
9401
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10245,6 +10256,7 @@
|
|
|
10245
10256
|
"../src/migrations/1694661125001-user-channel-and-megento-connection.ts",
|
|
10246
10257
|
"../src/migrations/1694787189040-flag-digital.ts",
|
|
10247
10258
|
"../src/migrations/1695122269023-imported_magento.ts",
|
|
10259
|
+
"../src/migrations/1695123846329-imported_magento_1.ts",
|
|
10248
10260
|
"../src/migrations/execute/index.ts",
|
|
10249
10261
|
"../src/migrations/index.ts",
|
|
10250
10262
|
"../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.115",
|
|
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.115",
|
|
25
|
+
"@reachu/utils": "1.0.115",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class importedMagento11695123846329 implements MigrationInterface {
|
|
4
|
+
name = 'importedMagento11695123846329'
|
|
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
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`profile_magento_id\` varchar(255) NULL`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`profile_magento_id\``);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_sku\``);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_id\``);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|