@reachu/database 1.0.177 → 1.0.178
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/1714750466062-product_scraping_v2.d.ts +6 -0
- package/dist/migrations/1714750466062-product_scraping_v2.js +29 -0
- package/dist/migrations/1714750466062-product_scraping_v2.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/1714750466062-product_scraping_v2.ts +14 -0
|
@@ -57,6 +57,10 @@ __decorate([
|
|
|
57
57
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
58
58
|
__metadata("design:type", String)
|
|
59
59
|
], ImportedProduct.prototype, "scrapingId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ImportedProduct.prototype, "scrapingUrl", void 0);
|
|
60
64
|
__decorate([
|
|
61
65
|
typeorm_1.Column('bigint', { nullable: true }),
|
|
62
66
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,qDAA2C;AAC3C,kDAA0B;AAC1B,gEAAwC;AACxC,gEAAwC;AAGxC,IAAqB,eAAe,GAApC,MAAqB,eAAe;
|
|
1
|
+
{"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,qDAA2C;AAC3C,kDAA0B;AAC1B,gEAAwC;AACxC,gEAAwC;AAGxC,IAAqB,eAAe,G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AAI,EAAE,CAAC;;qDAChB;AAItB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,qBAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChD,oBAAU,EAAE;8BACA,qBAAW;oDAAC;AAIzB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,qBAAW,EAAE,CAAC,IAAiB,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC5F,oBAAU,EAAE;;oDACc;AAG3B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACN;AAzDb,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CA0DnC;kBA1DoB,eAAe"}
|
|
@@ -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.productScrapingV21714750466062 = void 0;
|
|
13
|
+
class productScrapingV21714750466062 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'productScrapingV21714750466062';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_id\` varchar(255) NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`scraping_id\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.productScrapingV21714750466062 = productScrapingV21714750466062;
|
|
29
|
+
//# sourceMappingURL=1714750466062-product_scraping_v2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1714750466062-product_scraping_v2.js","sourceRoot":"","sources":["../../src/migrations/1714750466062-product_scraping_v2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACI,SAAI,GAAG,gCAAgC,CAAA;IAU3C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,wEAAwE,CAAC,CAAC;QACtG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAC5F,CAAC;KAAA;CAEJ;AAXD,wEAWC"}
|
|
@@ -2442,8 +2442,8 @@
|
|
|
2442
2442
|
"affectsGlobalScope": false
|
|
2443
2443
|
},
|
|
2444
2444
|
"../src/entity/importedproduct.ts": {
|
|
2445
|
-
"version": "
|
|
2446
|
-
"signature": "
|
|
2445
|
+
"version": "b5c22ca0cbe741a4da47a5a634e36d05af351cfb253fbb2220c7654aec53b260",
|
|
2446
|
+
"signature": "4475d00d18bdfb389078f4f3b6378a980a2d95d0391e91e3683faef3e7503ffb",
|
|
2447
2447
|
"affectsGlobalScope": false
|
|
2448
2448
|
},
|
|
2449
2449
|
"../src/staticdata/currency.ts": {
|
|
@@ -3786,6 +3786,11 @@
|
|
|
3786
3786
|
"signature": "53f75ea1ef2173cdfac34107fa023846615e40a96da15070575b9538e764e71f",
|
|
3787
3787
|
"affectsGlobalScope": false
|
|
3788
3788
|
},
|
|
3789
|
+
"../src/migrations/1714750466062-product_scraping_v2.ts": {
|
|
3790
|
+
"version": "b70b85704085bab7140ae5fcdf8528a74f1d50d8edd83c0e416e1cf293352d4d",
|
|
3791
|
+
"signature": "9e2944ebc04eb849a1b424ba5638b9721b405bd1dfd0607272d493cb410e288d",
|
|
3792
|
+
"affectsGlobalScope": false
|
|
3793
|
+
},
|
|
3789
3794
|
"../src/migrations/execute/index.ts": {
|
|
3790
3795
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3791
3796
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6979,6 +6984,9 @@
|
|
|
6979
6984
|
"../src/migrations/1714738807306-product_scraping_v1.ts": [
|
|
6980
6985
|
"../node_modules/typeorm/index.d.ts"
|
|
6981
6986
|
],
|
|
6987
|
+
"../src/migrations/1714750466062-product_scraping_v2.ts": [
|
|
6988
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6989
|
+
],
|
|
6982
6990
|
"../src/migrations/execute/index.ts": [
|
|
6983
6991
|
"../src/config/connect.ts"
|
|
6984
6992
|
],
|
|
@@ -10024,6 +10032,9 @@
|
|
|
10024
10032
|
"../src/migrations/1714738807306-product_scraping_v1.ts": [
|
|
10025
10033
|
"../node_modules/typeorm/index.d.ts"
|
|
10026
10034
|
],
|
|
10035
|
+
"../src/migrations/1714750466062-product_scraping_v2.ts": [
|
|
10036
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10037
|
+
],
|
|
10027
10038
|
"../src/migrations/index.ts": [
|
|
10028
10039
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10029
10040
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10944,6 +10955,7 @@
|
|
|
10944
10955
|
"../src/migrations/1714169905823-cart-channel-user.ts",
|
|
10945
10956
|
"../src/migrations/1714443774788-product_scraping.ts",
|
|
10946
10957
|
"../src/migrations/1714738807306-product_scraping_v1.ts",
|
|
10958
|
+
"../src/migrations/1714750466062-product_scraping_v2.ts",
|
|
10947
10959
|
"../src/migrations/execute/index.ts",
|
|
10948
10960
|
"../src/migrations/index.ts",
|
|
10949
10961
|
"../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.178",
|
|
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.178",
|
|
25
|
+
"@reachu/utils": "1.0.178",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class productScrapingV21714750466062 implements MigrationInterface {
|
|
4
|
+
name = 'productScrapingV21714750466062'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_id\` varchar(255) NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`scraping_id\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|