@reachu/database 1.0.154 → 1.0.155
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/ChannelUser.d.ts +1 -0
- package/dist/entity/ChannelUser.js +4 -0
- package/dist/entity/ChannelUser.js.map +1 -1
- package/dist/migrations/1703611484454-promote_to_prod_26_12_23.d.ts +6 -0
- package/dist/migrations/1703611484454-promote_to_prod_26_12_23.js +31 -0
- package/dist/migrations/1703611484454-promote_to_prod_26_12_23.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +14 -2
- package/package.json +3 -3
- package/src/entity/ChannelUser.ts +3 -0
- package/src/migrations/1703611484454-promote_to_prod_26_12_23.ts +16 -0
|
@@ -104,6 +104,10 @@ __decorate([
|
|
|
104
104
|
typeorm_1.Column('boolean', { default: false }),
|
|
105
105
|
__metadata("design:type", Boolean)
|
|
106
106
|
], ChannelUser.prototype, "testOrigen", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], ChannelUser.prototype, "bulkStage", void 0);
|
|
107
111
|
ChannelUser = __decorate([
|
|
108
112
|
typeorm_1.Entity()
|
|
109
113
|
], ChannelUser);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUser.js","sourceRoot":"","sources":["../../src/entity/ChannelUser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,wDAAgC;AAChC,kEAA0C;AAC1C,sFAA8D;AAC9D,kDAA0B;AAC1B,4EAAoD;AACpD,oEAA4C;AAE5C,4EAAoD;AACpD,yEAA+D;AAG/D,IAAqB,WAAW,GAAhC,MAAqB,WAAY,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"ChannelUser.js","sourceRoot":"","sources":["../../src/entity/ChannelUser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAA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|
+
"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.promoteToProd2612231703611484454 = void 0;
|
|
13
|
+
class promoteToProd2612231703611484454 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'promoteToProd2612231703611484454';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`magento_bulk\` (\`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), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`uuid\` varchar(255) NULL, \`action\` varchar(255) NULL, \`imported_product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`magento_bulk\` ADD CONSTRAINT \`FK_04a3ebffec96589609badc811e6\` FOREIGN KEY (\`imported_product_id\`) REFERENCES \`imported_product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`magento_bulk\` DROP FOREIGN KEY \`FK_04a3ebffec96589609badc811e6\``);
|
|
26
|
+
yield queryRunner.query(`DROP TABLE \`magento_bulk\``);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.promoteToProd2612231703611484454 = promoteToProd2612231703611484454;
|
|
31
|
+
//# sourceMappingURL=1703611484454-promote_to_prod_26_12_23.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1703611484454-promote_to_prod_26_12_23.js","sourceRoot":"","sources":["../../src/migrations/1703611484454-promote_to_prod_26_12_23.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACI,SAAI,GAAG,kCAAkC,CAAA;IAY7C,CAAC;IAVgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,wYAAwY,CAAC,CAAC;YACla,MAAM,WAAW,CAAC,KAAK,CAAC,sMAAsM,CAAC,CAAC;QACpO,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;YAC5G,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAC3D,CAAC;KAAA;CAEJ;AAbD,4EAaC"}
|
|
@@ -2497,8 +2497,8 @@
|
|
|
2497
2497
|
"affectsGlobalScope": false
|
|
2498
2498
|
},
|
|
2499
2499
|
"../src/entity/channeluser.ts": {
|
|
2500
|
-
"version": "
|
|
2501
|
-
"signature": "
|
|
2500
|
+
"version": "3be0efe5b0d7112eb3dfd06c033d043f90d53294a2dc24d393173f8330888790",
|
|
2501
|
+
"signature": "141e251aed4af5fb7514b8a4011efc34787561ec2512f58e3a1183da09b99a77",
|
|
2502
2502
|
"affectsGlobalScope": false
|
|
2503
2503
|
},
|
|
2504
2504
|
"../src/entity/channel.ts": {
|
|
@@ -3666,6 +3666,11 @@
|
|
|
3666
3666
|
"signature": "b7ed013058ad058892c10351170d8dd95777ac0ac5239634cf0cec0ce263f1ee",
|
|
3667
3667
|
"affectsGlobalScope": false
|
|
3668
3668
|
},
|
|
3669
|
+
"../src/migrations/1703611484454-promote_to_prod_26_12_23.ts": {
|
|
3670
|
+
"version": "994e40b8eb712947c12db79b70c89c800f31faee445ef86d3d6c627a35ce00d1",
|
|
3671
|
+
"signature": "36b65a4e33f8f4a69497891a210171c189532b9173c71074cfeffd755d74cd14",
|
|
3672
|
+
"affectsGlobalScope": false
|
|
3673
|
+
},
|
|
3669
3674
|
"../src/migrations/execute/index.ts": {
|
|
3670
3675
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3671
3676
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6771,6 +6776,9 @@
|
|
|
6771
6776
|
"../src/migrations/1703602386185-magento-bulk.ts": [
|
|
6772
6777
|
"../node_modules/typeorm/index.d.ts"
|
|
6773
6778
|
],
|
|
6779
|
+
"../src/migrations/1703611484454-promote_to_prod_26_12_23.ts": [
|
|
6780
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6781
|
+
],
|
|
6774
6782
|
"../src/migrations/execute/index.ts": [
|
|
6775
6783
|
"../src/config/connect.ts"
|
|
6776
6784
|
],
|
|
@@ -9731,6 +9739,9 @@
|
|
|
9731
9739
|
"../src/migrations/1703602386185-magento-bulk.ts": [
|
|
9732
9740
|
"../node_modules/typeorm/index.d.ts"
|
|
9733
9741
|
],
|
|
9742
|
+
"../src/migrations/1703611484454-promote_to_prod_26_12_23.ts": [
|
|
9743
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9744
|
+
],
|
|
9734
9745
|
"../src/migrations/index.ts": [
|
|
9735
9746
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9736
9747
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10623,6 +10634,7 @@
|
|
|
10623
10634
|
"../src/migrations/1702310388602-order-channel-order-name-default.ts",
|
|
10624
10635
|
"../src/migrations/1702403624303-promote_to_prod_12_12_23.ts",
|
|
10625
10636
|
"../src/migrations/1703602386185-magento-bulk.ts",
|
|
10637
|
+
"../src/migrations/1703611484454-promote_to_prod_26_12_23.ts",
|
|
10626
10638
|
"../src/migrations/execute/index.ts",
|
|
10627
10639
|
"../src/migrations/index.ts",
|
|
10628
10640
|
"../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.155",
|
|
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.155",
|
|
25
|
+
"@reachu/utils": "1.0.155",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class promoteToProd2612231703611484454 implements MigrationInterface {
|
|
4
|
+
name = 'promoteToProd2612231703611484454'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`magento_bulk\` (\`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), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`uuid\` varchar(255) NULL, \`action\` varchar(255) NULL, \`imported_product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`magento_bulk\` ADD CONSTRAINT \`FK_04a3ebffec96589609badc811e6\` FOREIGN KEY (\`imported_product_id\`) REFERENCES \`imported_product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`magento_bulk\` DROP FOREIGN KEY \`FK_04a3ebffec96589609badc811e6\``);
|
|
13
|
+
await queryRunner.query(`DROP TABLE \`magento_bulk\``);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|