@reachu/database 1.0.178 → 1.0.180

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.
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class productScrapingV31714751423591 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.productScrapingV31714751423591 = void 0;
13
+ class productScrapingV31714751423591 {
14
+ constructor() {
15
+ this.name = 'productScrapingV31714751423591';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_url\` 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_url\``);
25
+ });
26
+ }
27
+ }
28
+ exports.productScrapingV31714751423591 = productScrapingV31714751423591;
29
+ //# sourceMappingURL=1714751423591-product_scraping_v3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1714751423591-product_scraping_v3.js","sourceRoot":"","sources":["../../src/migrations/1714751423591-product_scraping_v3.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACI,SAAI,GAAG,gCAAgC,CAAA;IAU3C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAC;QACvG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;QAC7F,CAAC;KAAA;CAEJ;AAXD,wEAWC"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class productScrapingV41714754554111 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.productScrapingV41714754554111 = void 0;
13
+ class productScrapingV41714754554111 {
14
+ constructor() {
15
+ this.name = 'productScrapingV41714754554111';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`product_scraping\` ADD \`product_ids\` varchar(21844) NULL`);
20
+ });
21
+ }
22
+ down(queryRunner) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ yield queryRunner.query(`ALTER TABLE \`product_scraping\` DROP COLUMN \`product_ids\``);
25
+ });
26
+ }
27
+ }
28
+ exports.productScrapingV41714754554111 = productScrapingV41714754554111;
29
+ //# sourceMappingURL=1714754554111-product_scraping_v4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1714754554111-product_scraping_v4.js","sourceRoot":"","sources":["../../src/migrations/1714754554111-product_scraping_v4.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,8BAA8B;IAA3C;QACI,SAAI,GAAG,gCAAgC,CAAA;IAU3C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,0EAA0E,CAAC,CAAC;QACxG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAC5F,CAAC;KAAA;CAEJ;AAXD,wEAWC"}
@@ -3791,6 +3791,16 @@
3791
3791
  "signature": "9e2944ebc04eb849a1b424ba5638b9721b405bd1dfd0607272d493cb410e288d",
3792
3792
  "affectsGlobalScope": false
3793
3793
  },
3794
+ "../src/migrations/1714751423591-product_scraping_v3.ts": {
3795
+ "version": "b4df9f69c2f023f81478ddc200abe8abc38867e50cd3115bd990262b470d2034",
3796
+ "signature": "97a8de36b3df968d7d6e6df67e79c75c5b66eb61a0e9d5aa7c3e50af18200280",
3797
+ "affectsGlobalScope": false
3798
+ },
3799
+ "../src/migrations/1714754554111-product_scraping_v4.ts": {
3800
+ "version": "9abec346d4fcbfd0dad8e3e8c5eb498a8d94966b8103db05e941976b8299b7d5",
3801
+ "signature": "9265310684e5f377bf05efd4e5901f431bf76e66353d4cdd0966c1d23dd9a29d",
3802
+ "affectsGlobalScope": false
3803
+ },
3794
3804
  "../src/migrations/execute/index.ts": {
3795
3805
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3796
3806
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -6987,6 +6997,12 @@
6987
6997
  "../src/migrations/1714750466062-product_scraping_v2.ts": [
6988
6998
  "../node_modules/typeorm/index.d.ts"
6989
6999
  ],
7000
+ "../src/migrations/1714751423591-product_scraping_v3.ts": [
7001
+ "../node_modules/typeorm/index.d.ts"
7002
+ ],
7003
+ "../src/migrations/1714754554111-product_scraping_v4.ts": [
7004
+ "../node_modules/typeorm/index.d.ts"
7005
+ ],
6990
7006
  "../src/migrations/execute/index.ts": [
6991
7007
  "../src/config/connect.ts"
6992
7008
  ],
@@ -10035,6 +10051,12 @@
10035
10051
  "../src/migrations/1714750466062-product_scraping_v2.ts": [
10036
10052
  "../node_modules/typeorm/index.d.ts"
10037
10053
  ],
10054
+ "../src/migrations/1714751423591-product_scraping_v3.ts": [
10055
+ "../node_modules/typeorm/index.d.ts"
10056
+ ],
10057
+ "../src/migrations/1714754554111-product_scraping_v4.ts": [
10058
+ "../node_modules/typeorm/index.d.ts"
10059
+ ],
10038
10060
  "../src/migrations/index.ts": [
10039
10061
  "../src/migrations/1628474597284-initialschema.ts",
10040
10062
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -10956,6 +10978,8 @@
10956
10978
  "../src/migrations/1714443774788-product_scraping.ts",
10957
10979
  "../src/migrations/1714738807306-product_scraping_v1.ts",
10958
10980
  "../src/migrations/1714750466062-product_scraping_v2.ts",
10981
+ "../src/migrations/1714751423591-product_scraping_v3.ts",
10982
+ "../src/migrations/1714754554111-product_scraping_v4.ts",
10959
10983
  "../src/migrations/execute/index.ts",
10960
10984
  "../src/migrations/index.ts",
10961
10985
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.178",
3
+ "version": "1.0.180",
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.178",
25
- "@reachu/utils": "1.0.178",
24
+ "@reachu/logger": "1.0.180",
25
+ "@reachu/utils": "1.0.180",
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 productScrapingV31714751423591 implements MigrationInterface {
4
+ name = 'productScrapingV31714751423591'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`scraping_url\` varchar(255) NULL`);
8
+ }
9
+
10
+ public async down(queryRunner: QueryRunner): Promise<void> {
11
+ await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`scraping_url\``);
12
+ }
13
+
14
+ }
@@ -0,0 +1,14 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class productScrapingV41714754554111 implements MigrationInterface {
4
+ name = 'productScrapingV41714754554111'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`product_scraping\` ADD \`product_ids\` varchar(21844) NULL`);
8
+ }
9
+
10
+ public async down(queryRunner: QueryRunner): Promise<void> {
11
+ await queryRunner.query(`ALTER TABLE \`product_scraping\` DROP COLUMN \`product_ids\``);
12
+ }
13
+
14
+ }