@reachu/database 1.0.129 → 1.0.131

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 promoteToPRODUCTION101120231699601410949 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -0,0 +1,41 @@
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.promoteToPRODUCTION101120231699601410949 = void 0;
13
+ class promoteToPRODUCTION101120231699601410949 {
14
+ constructor() {
15
+ this.name = 'promoteToPRODUCTION101120231699601410949';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`CREATE TABLE \`channel_group\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`deleted_at\` datetime(6) NULL, \`id\` int NOT NULL AUTO_INCREMENT, \`channel_user_id\` int NULL, \`product_id\` int NULL, \`variant_id\` int NULL, \`collection_id\` varchar(10) NULL, \`collection_shared_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
20
+ yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`use_messaging_queue\` tinyint NULL DEFAULT 1`);
21
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_cdf9edf073c9e94025289a1d19b\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
22
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_45950478a423fdc46b17aca77c1\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
23
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_7ad32bbee5d7964429d47cacd0a\` FOREIGN KEY (\`variant_id\`) REFERENCES \`variant\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
24
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_8fcd2dd06554030ebeaedb6336b\` FOREIGN KEY (\`collection_id\`) REFERENCES \`collection\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
25
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_5551f4b45bb31950e8410204a57\` FOREIGN KEY (\`collection_shared_id\`) REFERENCES \`collection_shared\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
26
+ });
27
+ }
28
+ down(queryRunner) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_5551f4b45bb31950e8410204a57\``);
31
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_8fcd2dd06554030ebeaedb6336b\``);
32
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_7ad32bbee5d7964429d47cacd0a\``);
33
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_45950478a423fdc46b17aca77c1\``);
34
+ yield queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_cdf9edf073c9e94025289a1d19b\``);
35
+ yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`use_messaging_queue\``);
36
+ yield queryRunner.query(`DROP TABLE \`channel_group\``);
37
+ });
38
+ }
39
+ }
40
+ exports.promoteToPRODUCTION101120231699601410949 = promoteToPRODUCTION101120231699601410949;
41
+ //# sourceMappingURL=1699601410949-promote_to_PRODUCTION_10_11_2023.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1699601410949-promote_to_PRODUCTION_10_11_2023.js","sourceRoot":"","sources":["../../src/migrations/1699601410949-promote_to_PRODUCTION_10_11_2023.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,wCAAwC;IAArD;QACI,SAAI,GAAG,0CAA0C,CAAA;IAsBrD,CAAC;IApBgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,ocAAoc,CAAC,CAAC;YAC9d,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;YAC3G,MAAM,WAAW,CAAC,KAAK,CAAC,6LAA6L,CAAC,CAAC;YACvN,MAAM,WAAW,CAAC,KAAK,CAAC,mLAAmL,CAAC,CAAC;YAC7M,MAAM,WAAW,CAAC,KAAK,CAAC,mLAAmL,CAAC,CAAC;YAC7M,MAAM,WAAW,CAAC,KAAK,CAAC,yLAAyL,CAAC,CAAC;YACnN,MAAM,WAAW,CAAC,KAAK,CAAC,uMAAuM,CAAC,CAAC;QACrO,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;YAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YAC5F,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAC5D,CAAC;KAAA;CAEJ;AAvBD,4FAuBC"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class subscriptionResponseMax1700574103856 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -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.subscriptionResponseMax1700574103856 = void 0;
13
+ class subscriptionResponseMax1700574103856 {
14
+ constructor() {
15
+ this.name = 'subscriptionResponseMax1700574103856';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`subscription\` DROP COLUMN \`response\``);
20
+ yield queryRunner.query(`ALTER TABLE \`subscription\` ADD \`response\` varchar(21844) NULL`);
21
+ });
22
+ }
23
+ down(queryRunner) {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ yield queryRunner.query(`ALTER TABLE \`subscription\` DROP COLUMN \`response\``);
26
+ yield queryRunner.query(`ALTER TABLE \`subscription\` ADD \`response\` varchar(255) NULL`);
27
+ });
28
+ }
29
+ }
30
+ exports.subscriptionResponseMax1700574103856 = subscriptionResponseMax1700574103856;
31
+ //# sourceMappingURL=1700574103856-subscription-response-max.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1700574103856-subscription-response-max.js","sourceRoot":"","sources":["../../src/migrations/1700574103856-subscription-response-max.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,oCAAoC;IAAjD;QACI,SAAI,GAAG,sCAAsC,CAAA;IAYjD,CAAC;IAVgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;QACjG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;QAC/F,CAAC;KAAA;CAEJ;AAbD,oFAaC"}
@@ -2236,59 +2236,44 @@
2236
2236
  "signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86",
2237
2237
  "affectsGlobalScope": false
2238
2238
  },
2239
- "../node_modules/@types/send/node_modules/@types/mime/index.d.ts": {
2240
- "version": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
2241
- "signature": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
2242
- "affectsGlobalScope": false
2243
- },
2244
- "../node_modules/@types/send/index.d.ts": {
2245
- "version": "b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a",
2246
- "signature": "b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a",
2239
+ "../node_modules/@types/range-parser/index.d.ts": {
2240
+ "version": "16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",
2241
+ "signature": "16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",
2247
2242
  "affectsGlobalScope": false
2248
2243
  },
2249
2244
  "../node_modules/@types/qs/index.d.ts": {
2250
- "version": "fedd311d427fdafac411b4e0edc0d1014668853679e021e04717a6de45ff5c0c",
2251
- "signature": "fedd311d427fdafac411b4e0edc0d1014668853679e021e04717a6de45ff5c0c",
2252
- "affectsGlobalScope": false
2253
- },
2254
- "../node_modules/@types/range-parser/index.d.ts": {
2255
- "version": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
2256
- "signature": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
2245
+ "version": "ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",
2246
+ "signature": "ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",
2257
2247
  "affectsGlobalScope": false
2258
2248
  },
2259
2249
  "../node_modules/@types/express-serve-static-core/index.d.ts": {
2260
- "version": "50072f976cfa86af1a3044f55cd729d992abe39222d2f6cdf929266c77a42b0b",
2261
- "signature": "50072f976cfa86af1a3044f55cd729d992abe39222d2f6cdf929266c77a42b0b",
2250
+ "version": "c5dd1fef4cd4aaffc78786047bed5ae6fc1200d19a1946cbc4e2d3ed4d62c8fa",
2251
+ "signature": "c5dd1fef4cd4aaffc78786047bed5ae6fc1200d19a1946cbc4e2d3ed4d62c8fa",
2262
2252
  "affectsGlobalScope": true
2263
2253
  },
2264
- "../node_modules/@types/http-errors/index.d.ts": {
2265
- "version": "b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b",
2266
- "signature": "b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b",
2267
- "affectsGlobalScope": false
2268
- },
2269
2254
  "../node_modules/@types/mime/mime.d.ts": {
2270
- "version": "d2a38ad7bb4676e7fd5d058a08105d81ac232c363ee56be0b401fc277d50dbb1",
2271
- "signature": "d2a38ad7bb4676e7fd5d058a08105d81ac232c363ee56be0b401fc277d50dbb1",
2255
+ "version": "5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7",
2256
+ "signature": "5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7",
2272
2257
  "affectsGlobalScope": false
2273
2258
  },
2274
2259
  "../node_modules/@types/mime/index.d.ts": {
2275
- "version": "2ac2e08e0d0ed266849cb9da521c3be170a8bc111d25eeeb668c7dbf0ac4171a",
2276
- "signature": "2ac2e08e0d0ed266849cb9da521c3be170a8bc111d25eeeb668c7dbf0ac4171a",
2260
+ "version": "951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e",
2261
+ "signature": "951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e",
2277
2262
  "affectsGlobalScope": false
2278
2263
  },
2279
2264
  "../node_modules/@types/serve-static/index.d.ts": {
2280
- "version": "34118be360cdd3381bbebbfd4b093c394460c8fc5df40688d58f45d86ab1448b",
2281
- "signature": "34118be360cdd3381bbebbfd4b093c394460c8fc5df40688d58f45d86ab1448b",
2265
+ "version": "e6f0cb9d8cb2e38bec66e032e73caa3e7c6671f21ed7196acb821aec462051f2",
2266
+ "signature": "e6f0cb9d8cb2e38bec66e032e73caa3e7c6671f21ed7196acb821aec462051f2",
2282
2267
  "affectsGlobalScope": false
2283
2268
  },
2284
2269
  "../node_modules/@types/connect/index.d.ts": {
2285
- "version": "104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e",
2286
- "signature": "104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e",
2270
+ "version": "6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073",
2271
+ "signature": "6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073",
2287
2272
  "affectsGlobalScope": false
2288
2273
  },
2289
2274
  "../node_modules/@types/body-parser/index.d.ts": {
2290
- "version": "cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c",
2291
- "signature": "cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c",
2275
+ "version": "afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90",
2276
+ "signature": "afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90",
2292
2277
  "affectsGlobalScope": false
2293
2278
  },
2294
2279
  "../node_modules/@types/express/index.d.ts": {
@@ -3586,29 +3571,39 @@
3586
3571
  "signature": "4852f73f88cf15b01fcabd1312040d3839397b78fb7d94659b1532f5be9488ea",
3587
3572
  "affectsGlobalScope": false
3588
3573
  },
3574
+ "../src/migrations/1699601410949-promote_to_production_10_11_2023.ts": {
3575
+ "version": "a59f5811c91378d7a9cd48a34159fbdf0ff22b39368fd0c41846599314f32fe7",
3576
+ "signature": "a72d8a43d0489caa35edae27045acf26586dcb87cff11535f89a7ecaf3ae90ac",
3577
+ "affectsGlobalScope": false
3578
+ },
3579
+ "../src/migrations/1700574103856-subscription-response-max.ts": {
3580
+ "version": "5028e825a943a06da96c311abb4bb7b4833cc40fddea4ec8163f5893f59ffac0",
3581
+ "signature": "969360330daba1edbaacb6da183b6bf536a31d10bf2671a795e767ac32dff522",
3582
+ "affectsGlobalScope": false
3583
+ },
3589
3584
  "../src/migrations/execute/index.ts": {
3590
3585
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3591
3586
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
3592
3587
  "affectsGlobalScope": false
3593
3588
  },
3594
3589
  "../node_modules/@babel/types/lib/index.d.ts": {
3595
- "version": "f713064ca751dc588bc13832137c418cb70cf0446de92ade60ad631071558fca",
3596
- "signature": "f713064ca751dc588bc13832137c418cb70cf0446de92ade60ad631071558fca",
3590
+ "version": "3078727fed04c123165efdb42deeac5dceaa42ac62216ca13cb809dc7e13415f",
3591
+ "signature": "3078727fed04c123165efdb42deeac5dceaa42ac62216ca13cb809dc7e13415f",
3597
3592
  "affectsGlobalScope": false
3598
3593
  },
3599
3594
  "../node_modules/@types/babel__generator/index.d.ts": {
3600
- "version": "7a1f3d0b8dd0e869c58b44848d9f0be3592c3ff6dc77091e7130306f6d2907ed",
3601
- "signature": "7a1f3d0b8dd0e869c58b44848d9f0be3592c3ff6dc77091e7130306f6d2907ed",
3595
+ "version": "cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb",
3596
+ "signature": "cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb",
3602
3597
  "affectsGlobalScope": false
3603
3598
  },
3604
3599
  "../node_modules/@babel/parser/typings/babel-parser.d.ts": {
3605
- "version": "96c23535f4f9dd15beb767e070559ea672f6a35f103152836a67100605136a96",
3606
- "signature": "96c23535f4f9dd15beb767e070559ea672f6a35f103152836a67100605136a96",
3600
+ "version": "b4f76b34637d79cefad486127115fed843762c69512d7101b7096e1293699679",
3601
+ "signature": "b4f76b34637d79cefad486127115fed843762c69512d7101b7096e1293699679",
3607
3602
  "affectsGlobalScope": false
3608
3603
  },
3609
3604
  "../node_modules/@types/babel__template/index.d.ts": {
3610
- "version": "670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed",
3611
- "signature": "670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed",
3605
+ "version": "93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9",
3606
+ "signature": "93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9",
3612
3607
  "affectsGlobalScope": false
3613
3608
  },
3614
3609
  "../node_modules/@types/babel__traverse/index.d.ts": {
@@ -3617,28 +3612,28 @@
3617
3612
  "affectsGlobalScope": false
3618
3613
  },
3619
3614
  "../node_modules/@types/babel__core/index.d.ts": {
3620
- "version": "3df59a50b6fdd703016b81e254633080b3fa1e9035a462e730235876470d0012",
3621
- "signature": "3df59a50b6fdd703016b81e254633080b3fa1e9035a462e730235876470d0012",
3615
+ "version": "b6ddf3a46ccfa4441d8be84d2e9bf3087573c48804196faedbd4a25b60631beb",
3616
+ "signature": "b6ddf3a46ccfa4441d8be84d2e9bf3087573c48804196faedbd4a25b60631beb",
3622
3617
  "affectsGlobalScope": false
3623
3618
  },
3624
3619
  "../node_modules/@types/graceful-fs/index.d.ts": {
3625
- "version": "afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5",
3626
- "signature": "afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5",
3620
+ "version": "bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e",
3621
+ "signature": "bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e",
3627
3622
  "affectsGlobalScope": false
3628
3623
  },
3629
3624
  "../node_modules/@types/istanbul-lib-coverage/index.d.ts": {
3630
- "version": "035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245",
3631
- "signature": "035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245",
3625
+ "version": "8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215",
3626
+ "signature": "8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215",
3632
3627
  "affectsGlobalScope": false
3633
3628
  },
3634
3629
  "../node_modules/@types/istanbul-lib-report/index.d.ts": {
3635
- "version": "a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54",
3636
- "signature": "a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54",
3630
+ "version": "7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee",
3631
+ "signature": "7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee",
3637
3632
  "affectsGlobalScope": false
3638
3633
  },
3639
3634
  "../node_modules/@types/istanbul-reports/index.d.ts": {
3640
- "version": "5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434",
3641
- "signature": "5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434",
3635
+ "version": "f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0",
3636
+ "signature": "f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0",
3642
3637
  "affectsGlobalScope": false
3643
3638
  },
3644
3639
  "../node_modules/jest-diff/build/cleanupsemantic.d.ts": {
@@ -3682,28 +3677,28 @@
3682
3677
  "affectsGlobalScope": true
3683
3678
  },
3684
3679
  "../node_modules/@types/json-schema/index.d.ts": {
3685
- "version": "f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1",
3686
- "signature": "f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1",
3680
+ "version": "f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6",
3681
+ "signature": "f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6",
3687
3682
  "affectsGlobalScope": false
3688
3683
  },
3689
3684
  "../node_modules/@types/prettier/index.d.ts": {
3690
- "version": "d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e",
3691
- "signature": "d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e",
3685
+ "version": "bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621",
3686
+ "signature": "bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621",
3692
3687
  "affectsGlobalScope": false
3693
3688
  },
3694
3689
  "../node_modules/@types/stack-utils/index.d.ts": {
3695
- "version": "ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66",
3696
- "signature": "ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66",
3690
+ "version": "b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298",
3691
+ "signature": "b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298",
3697
3692
  "affectsGlobalScope": false
3698
3693
  },
3699
3694
  "../node_modules/@types/yargs-parser/index.d.ts": {
3700
- "version": "bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960",
3701
- "signature": "bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960",
3695
+ "version": "70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e",
3696
+ "signature": "70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e",
3702
3697
  "affectsGlobalScope": false
3703
3698
  },
3704
3699
  "../node_modules/@types/yargs/index.d.ts": {
3705
- "version": "4759c76b46ffcc82dab09654ae64aac3ed5ef1155807df34c3d9708243a53f9f",
3706
- "signature": "4759c76b46ffcc82dab09654ae64aac3ed5ef1155807df34c3d9708243a53f9f",
3700
+ "version": "149ebd778196c03e9c75b630866543501e0e9e62a146c1a17ce91ade4cdfb0ba",
3701
+ "signature": "149ebd778196c03e9c75b630866543501e0e9e62a146c1a17ce91ade4cdfb0ba",
3707
3702
  "affectsGlobalScope": false
3708
3703
  },
3709
3704
  "../node_modules/@types/zen-observable/index.d.ts": {
@@ -3814,8 +3809,7 @@
3814
3809
  "../node_modules/@types/node/http.d.ts",
3815
3810
  "../node_modules/@types/node/index.d.ts",
3816
3811
  "../node_modules/@types/qs/index.d.ts",
3817
- "../node_modules/@types/range-parser/index.d.ts",
3818
- "../node_modules/@types/send/index.d.ts"
3812
+ "../node_modules/@types/range-parser/index.d.ts"
3819
3813
  ],
3820
3814
  "../node_modules/@types/express/index.d.ts": [
3821
3815
  "../node_modules/@types/body-parser/index.d.ts",
@@ -4013,14 +4007,7 @@
4013
4007
  "../node_modules/@types/node/zlib.d.ts": [
4014
4008
  "../node_modules/@types/node/stream.d.ts"
4015
4009
  ],
4016
- "../node_modules/@types/send/index.d.ts": [
4017
- "../node_modules/@types/node/fs.d.ts",
4018
- "../node_modules/@types/node/index.d.ts",
4019
- "../node_modules/@types/node/stream.d.ts",
4020
- "../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
4021
- ],
4022
4010
  "../node_modules/@types/serve-static/index.d.ts": [
4023
- "../node_modules/@types/http-errors/index.d.ts",
4024
4011
  "../node_modules/@types/mime/index.d.ts",
4025
4012
  "../node_modules/@types/node/http.d.ts",
4026
4013
  "../node_modules/@types/node/index.d.ts"
@@ -6638,6 +6625,12 @@
6638
6625
  "../src/migrations/1697858770679-user_channel.ts": [
6639
6626
  "../node_modules/typeorm/index.d.ts"
6640
6627
  ],
6628
+ "../src/migrations/1699601410949-promote_to_production_10_11_2023.ts": [
6629
+ "../node_modules/typeorm/index.d.ts"
6630
+ ],
6631
+ "../src/migrations/1700574103856-subscription-response-max.ts": [
6632
+ "../node_modules/typeorm/index.d.ts"
6633
+ ],
6641
6634
  "../src/migrations/execute/index.ts": [
6642
6635
  "../src/config/connect.ts"
6643
6636
  ],
@@ -6887,8 +6880,7 @@
6887
6880
  "../node_modules/@types/node/http.d.ts",
6888
6881
  "../node_modules/@types/node/index.d.ts",
6889
6882
  "../node_modules/@types/qs/index.d.ts",
6890
- "../node_modules/@types/range-parser/index.d.ts",
6891
- "../node_modules/@types/send/index.d.ts"
6883
+ "../node_modules/@types/range-parser/index.d.ts"
6892
6884
  ],
6893
6885
  "../node_modules/@types/express/index.d.ts": [
6894
6886
  "../node_modules/@types/body-parser/index.d.ts",
@@ -7086,14 +7078,7 @@
7086
7078
  "../node_modules/@types/node/zlib.d.ts": [
7087
7079
  "../node_modules/@types/node/stream.d.ts"
7088
7080
  ],
7089
- "../node_modules/@types/send/index.d.ts": [
7090
- "../node_modules/@types/node/fs.d.ts",
7091
- "../node_modules/@types/node/index.d.ts",
7092
- "../node_modules/@types/node/stream.d.ts",
7093
- "../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
7094
- ],
7095
7081
  "../node_modules/@types/serve-static/index.d.ts": [
7096
- "../node_modules/@types/http-errors/index.d.ts",
7097
7082
  "../node_modules/@types/mime/index.d.ts",
7098
7083
  "../node_modules/@types/node/http.d.ts",
7099
7084
  "../node_modules/@types/node/index.d.ts"
@@ -9545,6 +9530,12 @@
9545
9530
  "../src/migrations/1697858770679-user_channel.ts": [
9546
9531
  "../node_modules/typeorm/index.d.ts"
9547
9532
  ],
9533
+ "../src/migrations/1699601410949-promote_to_production_10_11_2023.ts": [
9534
+ "../node_modules/typeorm/index.d.ts"
9535
+ ],
9536
+ "../src/migrations/1700574103856-subscription-response-max.ts": [
9537
+ "../node_modules/typeorm/index.d.ts"
9538
+ ],
9548
9539
  "../src/migrations/index.ts": [
9549
9540
  "../src/migrations/1628474597284-initialschema.ts",
9550
9541
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -9734,7 +9725,6 @@
9734
9725
  "../node_modules/@types/express-serve-static-core/index.d.ts",
9735
9726
  "../node_modules/@types/express/index.d.ts",
9736
9727
  "../node_modules/@types/graceful-fs/index.d.ts",
9737
- "../node_modules/@types/http-errors/index.d.ts",
9738
9728
  "../node_modules/@types/istanbul-lib-coverage/index.d.ts",
9739
9729
  "../node_modules/@types/istanbul-lib-report/index.d.ts",
9740
9730
  "../node_modules/@types/istanbul-reports/index.d.ts",
@@ -9792,8 +9782,6 @@
9792
9782
  "../node_modules/@types/prettier/index.d.ts",
9793
9783
  "../node_modules/@types/qs/index.d.ts",
9794
9784
  "../node_modules/@types/range-parser/index.d.ts",
9795
- "../node_modules/@types/send/index.d.ts",
9796
- "../node_modules/@types/send/node_modules/@types/mime/index.d.ts",
9797
9785
  "../node_modules/@types/serve-static/index.d.ts",
9798
9786
  "../node_modules/@types/stack-utils/index.d.ts",
9799
9787
  "../node_modules/@types/yargs-parser/index.d.ts",
@@ -10420,6 +10408,8 @@
10420
10408
  "../src/migrations/1696608295188-compareat-line-items-1.ts",
10421
10409
  "../src/migrations/1697724057621-promote_to_production.ts",
10422
10410
  "../src/migrations/1697858770679-user_channel.ts",
10411
+ "../src/migrations/1699601410949-promote_to_production_10_11_2023.ts",
10412
+ "../src/migrations/1700574103856-subscription-response-max.ts",
10423
10413
  "../src/migrations/execute/index.ts",
10424
10414
  "../src/migrations/index.ts",
10425
10415
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.129",
3
+ "version": "1.0.131",
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.129",
25
- "@reachu/utils": "1.0.129",
24
+ "@reachu/logger": "1.0.131",
25
+ "@reachu/utils": "1.0.131",
26
26
  "dotenv": "8.0.0",
27
27
  "express": "4.17.1",
28
28
  "mysql2": "1.5.2",
@@ -0,0 +1,26 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class promoteToPRODUCTION101120231699601410949 implements MigrationInterface {
4
+ name = 'promoteToPRODUCTION101120231699601410949'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`CREATE TABLE \`channel_group\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`deleted_at\` datetime(6) NULL, \`id\` int NOT NULL AUTO_INCREMENT, \`channel_user_id\` int NULL, \`product_id\` int NULL, \`variant_id\` int NULL, \`collection_id\` varchar(10) NULL, \`collection_shared_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
8
+ await queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`use_messaging_queue\` tinyint NULL DEFAULT 1`);
9
+ await queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_cdf9edf073c9e94025289a1d19b\` FOREIGN KEY (\`channel_user_id\`) REFERENCES \`channel_user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
10
+ await queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_45950478a423fdc46b17aca77c1\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
11
+ await queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_7ad32bbee5d7964429d47cacd0a\` FOREIGN KEY (\`variant_id\`) REFERENCES \`variant\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
12
+ await queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_8fcd2dd06554030ebeaedb6336b\` FOREIGN KEY (\`collection_id\`) REFERENCES \`collection\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
13
+ await queryRunner.query(`ALTER TABLE \`channel_group\` ADD CONSTRAINT \`FK_5551f4b45bb31950e8410204a57\` FOREIGN KEY (\`collection_shared_id\`) REFERENCES \`collection_shared\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
14
+ }
15
+
16
+ public async down(queryRunner: QueryRunner): Promise<void> {
17
+ await queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_5551f4b45bb31950e8410204a57\``);
18
+ await queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_8fcd2dd06554030ebeaedb6336b\``);
19
+ await queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_7ad32bbee5d7964429d47cacd0a\``);
20
+ await queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_45950478a423fdc46b17aca77c1\``);
21
+ await queryRunner.query(`ALTER TABLE \`channel_group\` DROP FOREIGN KEY \`FK_cdf9edf073c9e94025289a1d19b\``);
22
+ await queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`use_messaging_queue\``);
23
+ await queryRunner.query(`DROP TABLE \`channel_group\``);
24
+ }
25
+
26
+ }
@@ -0,0 +1,16 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class subscriptionResponseMax1700574103856 implements MigrationInterface {
4
+ name = 'subscriptionResponseMax1700574103856'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`subscription\` DROP COLUMN \`response\``);
8
+ await queryRunner.query(`ALTER TABLE \`subscription\` ADD \`response\` varchar(21844) NULL`);
9
+ }
10
+
11
+ public async down(queryRunner: QueryRunner): Promise<void> {
12
+ await queryRunner.query(`ALTER TABLE \`subscription\` DROP COLUMN \`response\``);
13
+ await queryRunner.query(`ALTER TABLE \`subscription\` ADD \`response\` varchar(255) NULL`);
14
+ }
15
+
16
+ }