@reachu/database 1.0.120 → 1.0.122
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/entity/modules/shopcart/PriceData.d.ts +1 -0
- package/dist/entity/modules/shopcart/PriceData.js +4 -0
- package/dist/entity/modules/shopcart/PriceData.js.map +1 -1
- package/dist/migrations/1696596436032-promote_to_production.d.ts +6 -0
- package/dist/migrations/1696596436032-promote_to_production.js +51 -0
- package/dist/migrations/1696596436032-promote_to_production.js.map +1 -0
- package/dist/migrations/1696608295188-compareat-line-items-1.d.ts +6 -0
- package/dist/migrations/1696608295188-compareat-line-items-1.js +29 -0
- package/dist/migrations/1696608295188-compareat-line-items-1.js.map +1 -0
- package/dist/migrations/1697724057621-promote_to_production.d.ts +6 -0
- package/dist/migrations/1697724057621-promote_to_production.js +31 -0
- package/dist/migrations/1697724057621-promote_to_production.js.map +1 -0
- package/dist/migrations/1697858770679-user_channel.d.ts +6 -0
- package/dist/migrations/1697858770679-user_channel.js +29 -0
- package/dist/migrations/1697858770679-user_channel.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +52 -4
- package/package.json +3 -3
- package/src/entity/ChannelUser.ts +3 -0
- package/src/entity/modules/shopcart/PriceData.ts +3 -0
- package/src/migrations/1696596436032-promote_to_production.ts +57 -0
- package/src/migrations/1696608295188-compareat-line-items-1.ts +14 -0
- package/src/migrations/1697724057621-promote_to_production.ts +21 -0
- package/src/migrations/1697858770679-user_channel.ts +14 -0
|
@@ -40,6 +40,10 @@ __decorate([
|
|
|
40
40
|
typeorm_1.Column('boolean', { nullable: true, default: true }),
|
|
41
41
|
__metadata("design:type", Boolean)
|
|
42
42
|
], ChannelUser.prototype, "active", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
typeorm_1.Column('boolean', { nullable: true, default: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], ChannelUser.prototype, "useMessagingQueue", void 0);
|
|
43
47
|
__decorate([
|
|
44
48
|
typeorm_1.ManyToOne(() => User_1.default, (user) => user.id, { onDelete: 'CASCADE' }),
|
|
45
49
|
typeorm_1.JoinColumn(),
|
|
@@ -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":";;;;;;;;;;;;;;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;CA+DpD,CAAA;AA7DC;IADC,0BAAgB,EAAE;8BACR,IAAI;8CAAC;AAGhB;IADC,gCAAsB,EAAE;;uCACd;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACrC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;sDACzB;AAI5B;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,oBAAU,EAAE;8BACP,cAAI;yCAAC;AAIX;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACnF,oBAAU,EAAE;8BACJ,iBAAO;4CAAC;AAMjB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,sBAAY,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE;QACvF,OAAO,EAAE,IAAI;KACd,CAAC;IACD,oBAAU,EAAE;;iDACgB;AAU7B;IARC,mBAAS,CACR,GAAG,EAAE,CAAC,gCAAsB,EAC5B,CAAC,sBAA8C,EAAE,EAAE,CAAC,sBAAsB,CAAC,WAAW,EACtF;QACE,OAAO,EAAE,IAAI;KACd,CACF;IACA,oBAAU,EAAE;;2DACoC;AAMjD;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,2BAAiB,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE;QAC/E,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACM,2BAAiB;sDAAC;AAMrC;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,uBAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QACnE,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACE,uBAAa;kDAAC;AAM7B;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,4CAAiB,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE;QAC/E,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACM,4CAAiB;sDAAC;AAMrC;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,2BAAiB,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE;QAC/E,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACM,2BAAiB;sDAAC;AA9DlB,WAAW;IAD/B,gBAAM,EAAE;GACY,WAAW,CA+D/B;kBA/DoB,WAAW"}
|
|
@@ -37,6 +37,10 @@ __decorate([
|
|
|
37
37
|
typeorm_1.OneToOne(() => CartItem_1.default, (cartItem) => cartItem.priceData, { eager: true }),
|
|
38
38
|
__metadata("design:type", CartItem_1.default)
|
|
39
39
|
], PriceData.prototype, "cartItem", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, default: 0, nullable: true }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], PriceData.prototype, "compareAt", void 0);
|
|
40
44
|
PriceData = __decorate([
|
|
41
45
|
typeorm_1.Entity()
|
|
42
46
|
], PriceData);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceData.js","sourceRoot":"","sources":["../../../../src/entity/modules/shopcart/PriceData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAuF;AACvF,0DAAkC;AAGlC,IAAa,SAAS,GAAtB,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"PriceData.js","sourceRoot":"","sources":["../../../../src/entity/modules/shopcart/PriceData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAuF;AACvF,0DAAkC;AAGlC,IAAa,SAAS,GAAtB,MAAa,SAAS;CAkBrB,CAAA;AAhBC;IADC,gCAAsB,CAAC,MAAM,CAAC;;qCACpB;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4CACxC;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sCAC9C;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACpB;AAGlB;IADC,kBAAQ,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;8BAClE,kBAAQ;2CAAC;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACxD;AAjBR,SAAS;IADrB,gBAAM,EAAE;GACI,SAAS,CAkBrB;AAlBY,8BAAS"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.promoteToProduction1696596436032 = void 0;
|
|
13
|
+
class promoteToProduction1696596436032 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'promoteToProduction1696596436032';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`product_digital\` (\`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, \`file_url\` text NOT NULL, \`file_size\` int NULL, \`shareable\` int NULL, \`type\` int NULL, \`position\` int NULL, \`donwload_limit\` int NULL, \`expiration_date\` datetime NULL, \`name\` text NOT NULL, \`product_digital_id\` int NULL, \`product_id\` int NULL, \`price_amount\` decimal(10,2) NULL, \`price_currency_code\` varchar(255) NULL, \`price_base_amount\` decimal(10,2) NULL, \`price_compare_at\` decimal(10,2) NULL, UNIQUE INDEX \`REL_c6bbcf34d07fb60f39b9852f2a\` (\`product_digital_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`magento_connection\` ADD \`issuplier\` tinyint NULL DEFAULT 0`);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`active\` tinyint NULL DEFAULT 1`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`magento_connection_id\` int NULL`);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_id\` bigint NULL`);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_sku\` varchar(255) NULL`);
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`profile_magento_id\` varchar(255) NULL`);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`product\` ADD \`digital\` tinyint NOT NULL DEFAULT 0`);
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD CONSTRAINT \`FK_33d03e1f4eee82dae40ba0b2461\` FOREIGN KEY (\`magento_connection_id\`) REFERENCES \`magento_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` ADD CONSTRAINT \`FK_c6bbcf34d07fb60f39b9852f2a7\` FOREIGN KEY (\`product_digital_id\`) REFERENCES \`product_digital\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
29
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` ADD CONSTRAINT \`FK_5ae6751cfab05ae1b8f754939a0\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
down(queryRunner) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` DROP FOREIGN KEY \`FK_5ae6751cfab05ae1b8f754939a0\``);
|
|
35
|
+
yield queryRunner.query(`ALTER TABLE \`product_digital\` DROP FOREIGN KEY \`FK_c6bbcf34d07fb60f39b9852f2a7\``);
|
|
36
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP FOREIGN KEY \`FK_33d03e1f4eee82dae40ba0b2461\``);
|
|
37
|
+
yield queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`digital\``);
|
|
38
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`profile_magento_id\``);
|
|
39
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_sku\``);
|
|
40
|
+
yield queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_id\``);
|
|
41
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`magento_connection_id\``);
|
|
42
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`active\``);
|
|
43
|
+
yield queryRunner.query(`ALTER TABLE \`magento_connection\` DROP COLUMN \`issuplier\``);
|
|
44
|
+
yield queryRunner.query(`DROP INDEX \`REL_c6bbcf34d07fb60f39b9852f2a\` ON \`product_digital\``);
|
|
45
|
+
yield queryRunner.query(`DROP TABLE \`product_digital\``);
|
|
46
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_28d5bb57bf4cfd4c6b07f1cb2a\` ON \`magento_connection\` (\`user_id\`)`);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.promoteToProduction1696596436032 = promoteToProduction1696596436032;
|
|
51
|
+
//# sourceMappingURL=1696596436032-promote_to_production.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1696596436032-promote_to_production.js","sourceRoot":"","sources":["../../src/migrations/1696596436032-promote_to_production.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACE,SAAI,GAAG,kCAAkC,CAAC;IAqD5C,CAAC;IAnDc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,oyBAAoyB,CACryB,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,6EAA6E,CAC9E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;YAC9F,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CACrB,wEAAwE,CACzE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,+EAA+E,CAChF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;YAC9F,MAAM,WAAW,CAAC,KAAK,CACrB,0MAA0M,CAC3M,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,uMAAuM,CACxM,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,uLAAuL,CACxL,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,qFAAqF,CACtF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,qFAAqF,CACtF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,kFAAkF,CACnF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;YAC3E,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;YACvF,MAAM,WAAW,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;YAC9F,MAAM,WAAW,CAAC,KAAK,CAAC,qDAAqD,CAAC,CAAC;YAC/E,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;YAChG,MAAM,WAAW,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;YAC1D,MAAM,WAAW,CAAC,KAAK,CACrB,gGAAgG,CACjG,CAAC;QACJ,CAAC;KAAA;CACF;AAtDD,4EAsDC"}
|
|
@@ -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.compareatLineItems11696608295188 = void 0;
|
|
13
|
+
class compareatLineItems11696608295188 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'compareatLineItems11696608295188';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`price_data\` ADD \`compare_at\` decimal(10,2) NULL DEFAULT '0.00'`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`price_data\` DROP COLUMN \`compare_at\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.compareatLineItems11696608295188 = compareatLineItems11696608295188;
|
|
29
|
+
//# sourceMappingURL=1696608295188-compareat-line-items-1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1696608295188-compareat-line-items-1.js","sourceRoot":"","sources":["../../src/migrations/1696608295188-compareat-line-items-1.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACI,SAAI,GAAG,kCAAkC,CAAA;IAU7C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;QAC/G,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;QACrF,CAAC;KAAA;CAEJ;AAXD,4EAWC"}
|
|
@@ -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.promoteToProduction1697724057621 = void 0;
|
|
13
|
+
class promoteToProduction1697724057621 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'promoteToProduction1697724057621';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`price_data\` ADD \`compare_at\` decimal(10,2) NULL DEFAULT '0.00'`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`magento_connection\` ADD CONSTRAINT \`FK_28d5bb57bf4cfd4c6b07f1cb2a0\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE 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_connection\` DROP FOREIGN KEY \`FK_28d5bb57bf4cfd4c6b07f1cb2a0\``);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`price_data\` DROP COLUMN \`compare_at\``);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.promoteToProduction1697724057621 = promoteToProduction1697724057621;
|
|
31
|
+
//# sourceMappingURL=1697724057621-promote_to_production.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1697724057621-promote_to_production.js","sourceRoot":"","sources":["../../src/migrations/1697724057621-promote_to_production.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACE,SAAI,GAAG,kCAAkC,CAAC;IAiB5C,CAAC;IAfc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,iFAAiF,CAClF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,kLAAkL,CACnL,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,wFAAwF,CACzF,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;QACnF,CAAC;KAAA;CACF;AAlBD,4EAkBC"}
|
|
@@ -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.userChannel1697858770679 = void 0;
|
|
13
|
+
class userChannel1697858770679 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'userChannel1697858770679';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`use_messaging_queue\` tinyint NULL DEFAULT 1`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`use_messaging_queue\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.userChannel1697858770679 = userChannel1697858770679;
|
|
29
|
+
//# sourceMappingURL=1697858770679-user_channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1697858770679-user_channel.js","sourceRoot":"","sources":["../../src/migrations/1697858770679-user_channel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,wBAAwB;IAArC;QACI,SAAI,GAAG,0BAA0B,CAAA;IAUrC,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;QAC/G,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;QAChG,CAAC;KAAA;CAEJ;AAXD,4DAWC"}
|
|
@@ -2377,8 +2377,8 @@
|
|
|
2377
2377
|
"affectsGlobalScope": false
|
|
2378
2378
|
},
|
|
2379
2379
|
"../src/entity/modules/shopcart/pricedata.ts": {
|
|
2380
|
-
"version": "
|
|
2381
|
-
"signature": "
|
|
2380
|
+
"version": "d853ab4b2f15e3fa894ed7ab16582fb0e3f71b2fbbc79367cf2d3c63bc977e50",
|
|
2381
|
+
"signature": "9d67211ef476a0b445369b10344f378099a03760cdac17823d7420fc8ba99a9f",
|
|
2382
2382
|
"affectsGlobalScope": false
|
|
2383
2383
|
},
|
|
2384
2384
|
"../src/entity/modules/shopcart/checkoutbillingaddress.ts": {
|
|
@@ -2472,8 +2472,8 @@
|
|
|
2472
2472
|
"affectsGlobalScope": false
|
|
2473
2473
|
},
|
|
2474
2474
|
"../src/entity/channeluser.ts": {
|
|
2475
|
-
"version": "
|
|
2476
|
-
"signature": "
|
|
2475
|
+
"version": "53e20663d5ca13d16d759f2dbdf593964b940c99562d7536a89fa8101f59151d",
|
|
2476
|
+
"signature": "a93a276d7fb3f407a048f1d782a0e4686c22fae892d32035ece2b629ce19776e",
|
|
2477
2477
|
"affectsGlobalScope": false
|
|
2478
2478
|
},
|
|
2479
2479
|
"../src/entity/channel.ts": {
|
|
@@ -3551,6 +3551,26 @@
|
|
|
3551
3551
|
"signature": "c6f82cb47d34f7da93d240fbe9d790acf46fe51ae6c48ea64cc7672b45ad3c13",
|
|
3552
3552
|
"affectsGlobalScope": false
|
|
3553
3553
|
},
|
|
3554
|
+
"../src/migrations/1696596436032-promote_to_production.ts": {
|
|
3555
|
+
"version": "88eaaa27f009ad961aa1ef4142106f0562ceebce7a25fbfb226e1eabd9f36355",
|
|
3556
|
+
"signature": "0acb7de90d6fcc44457e28e44d3de44053e446e3eec25a4998447b0bac33eb9a",
|
|
3557
|
+
"affectsGlobalScope": false
|
|
3558
|
+
},
|
|
3559
|
+
"../src/migrations/1696608295188-compareat-line-items-1.ts": {
|
|
3560
|
+
"version": "32e03b46ba8fda151b751a035c3e40b1f2474da1da1eb6cf9312b5b02e6ebfb4",
|
|
3561
|
+
"signature": "ca41f2fd243c5b0fa4edfbd652cb78d4c4586aec69d12ed299e611c977b1e717",
|
|
3562
|
+
"affectsGlobalScope": false
|
|
3563
|
+
},
|
|
3564
|
+
"../src/migrations/1697724057621-promote_to_production.ts": {
|
|
3565
|
+
"version": "5c18532b84023ad189aa238490d36292c38d07aac638a7aae408e642c0a96ea2",
|
|
3566
|
+
"signature": "cc426ed41e1674a4a5dd8398ded6dba0a1751fbb3f3b5afbfe5882933e9c3921",
|
|
3567
|
+
"affectsGlobalScope": false
|
|
3568
|
+
},
|
|
3569
|
+
"../src/migrations/1697858770679-user_channel.ts": {
|
|
3570
|
+
"version": "f6c40163fabb2753c3246b26f4bbdfe938c7c0783cfee8f875e2373d15f63160",
|
|
3571
|
+
"signature": "4852f73f88cf15b01fcabd1312040d3839397b78fb7d94659b1532f5be9488ea",
|
|
3572
|
+
"affectsGlobalScope": false
|
|
3573
|
+
},
|
|
3554
3574
|
"../src/migrations/execute/index.ts": {
|
|
3555
3575
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3556
3576
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -6583,6 +6603,18 @@
|
|
|
6583
6603
|
"../src/migrations/1696268533737-digital_update_02.ts": [
|
|
6584
6604
|
"../node_modules/typeorm/index.d.ts"
|
|
6585
6605
|
],
|
|
6606
|
+
"../src/migrations/1696596436032-promote_to_production.ts": [
|
|
6607
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6608
|
+
],
|
|
6609
|
+
"../src/migrations/1696608295188-compareat-line-items-1.ts": [
|
|
6610
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6611
|
+
],
|
|
6612
|
+
"../src/migrations/1697724057621-promote_to_production.ts": [
|
|
6613
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6614
|
+
],
|
|
6615
|
+
"../src/migrations/1697858770679-user_channel.ts": [
|
|
6616
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6617
|
+
],
|
|
6586
6618
|
"../src/migrations/execute/index.ts": [
|
|
6587
6619
|
"../src/config/connect.ts"
|
|
6588
6620
|
],
|
|
@@ -9470,6 +9502,18 @@
|
|
|
9470
9502
|
"../src/migrations/1696268533737-digital_update_02.ts": [
|
|
9471
9503
|
"../node_modules/typeorm/index.d.ts"
|
|
9472
9504
|
],
|
|
9505
|
+
"../src/migrations/1696596436032-promote_to_production.ts": [
|
|
9506
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9507
|
+
],
|
|
9508
|
+
"../src/migrations/1696608295188-compareat-line-items-1.ts": [
|
|
9509
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9510
|
+
],
|
|
9511
|
+
"../src/migrations/1697724057621-promote_to_production.ts": [
|
|
9512
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9513
|
+
],
|
|
9514
|
+
"../src/migrations/1697858770679-user_channel.ts": [
|
|
9515
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9516
|
+
],
|
|
9473
9517
|
"../src/migrations/index.ts": [
|
|
9474
9518
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9475
9519
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10338,6 +10382,10 @@
|
|
|
10338
10382
|
"../src/migrations/1696260773644-digital_update.ts",
|
|
10339
10383
|
"../src/migrations/1696266360829-digital_update_01.ts",
|
|
10340
10384
|
"../src/migrations/1696268533737-digital_update_02.ts",
|
|
10385
|
+
"../src/migrations/1696596436032-promote_to_production.ts",
|
|
10386
|
+
"../src/migrations/1696608295188-compareat-line-items-1.ts",
|
|
10387
|
+
"../src/migrations/1697724057621-promote_to_production.ts",
|
|
10388
|
+
"../src/migrations/1697858770679-user_channel.ts",
|
|
10341
10389
|
"../src/migrations/execute/index.ts",
|
|
10342
10390
|
"../src/migrations/index.ts",
|
|
10343
10391
|
"../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.122",
|
|
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.122",
|
|
25
|
+
"@reachu/utils": "1.0.122",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -32,6 +32,9 @@ export default class ChannelUser extends AuditedModel {
|
|
|
32
32
|
@Column('boolean', { nullable: true, default: true })
|
|
33
33
|
active: boolean;
|
|
34
34
|
|
|
35
|
+
@Column('boolean', { nullable: true, default: true })
|
|
36
|
+
useMessagingQueue?: boolean;
|
|
37
|
+
|
|
35
38
|
@ManyToOne(() => User, (user) => user.id, { onDelete: 'CASCADE' })
|
|
36
39
|
@JoinColumn()
|
|
37
40
|
user: User;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class promoteToProduction1696596436032 implements MigrationInterface {
|
|
4
|
+
name = 'promoteToProduction1696596436032';
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(
|
|
8
|
+
`CREATE TABLE \`product_digital\` (\`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, \`file_url\` text NOT NULL, \`file_size\` int NULL, \`shareable\` int NULL, \`type\` int NULL, \`position\` int NULL, \`donwload_limit\` int NULL, \`expiration_date\` datetime NULL, \`name\` text NOT NULL, \`product_digital_id\` int NULL, \`product_id\` int NULL, \`price_amount\` decimal(10,2) NULL, \`price_currency_code\` varchar(255) NULL, \`price_base_amount\` decimal(10,2) NULL, \`price_compare_at\` decimal(10,2) NULL, UNIQUE INDEX \`REL_c6bbcf34d07fb60f39b9852f2a\` (\`product_digital_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`,
|
|
9
|
+
);
|
|
10
|
+
await queryRunner.query(
|
|
11
|
+
`ALTER TABLE \`magento_connection\` ADD \`issuplier\` tinyint NULL DEFAULT 0`,
|
|
12
|
+
);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`active\` tinyint NULL DEFAULT 1`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`magento_connection_id\` int NULL`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` ADD \`magento_id\` bigint NULL`);
|
|
16
|
+
await queryRunner.query(
|
|
17
|
+
`ALTER TABLE \`imported_product\` ADD \`magento_sku\` varchar(255) NULL`,
|
|
18
|
+
);
|
|
19
|
+
await queryRunner.query(
|
|
20
|
+
`ALTER TABLE \`imported_product\` ADD \`profile_magento_id\` varchar(255) NULL`,
|
|
21
|
+
);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE \`product\` ADD \`digital\` tinyint NOT NULL DEFAULT 0`);
|
|
23
|
+
await queryRunner.query(
|
|
24
|
+
`ALTER TABLE \`channel_user\` ADD CONSTRAINT \`FK_33d03e1f4eee82dae40ba0b2461\` FOREIGN KEY (\`magento_connection_id\`) REFERENCES \`magento_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`,
|
|
25
|
+
);
|
|
26
|
+
await queryRunner.query(
|
|
27
|
+
`ALTER TABLE \`product_digital\` ADD CONSTRAINT \`FK_c6bbcf34d07fb60f39b9852f2a7\` FOREIGN KEY (\`product_digital_id\`) REFERENCES \`product_digital\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`,
|
|
28
|
+
);
|
|
29
|
+
await queryRunner.query(
|
|
30
|
+
`ALTER TABLE \`product_digital\` ADD CONSTRAINT \`FK_5ae6751cfab05ae1b8f754939a0\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
35
|
+
await queryRunner.query(
|
|
36
|
+
`ALTER TABLE \`product_digital\` DROP FOREIGN KEY \`FK_5ae6751cfab05ae1b8f754939a0\``,
|
|
37
|
+
);
|
|
38
|
+
await queryRunner.query(
|
|
39
|
+
`ALTER TABLE \`product_digital\` DROP FOREIGN KEY \`FK_c6bbcf34d07fb60f39b9852f2a7\``,
|
|
40
|
+
);
|
|
41
|
+
await queryRunner.query(
|
|
42
|
+
`ALTER TABLE \`channel_user\` DROP FOREIGN KEY \`FK_33d03e1f4eee82dae40ba0b2461\``,
|
|
43
|
+
);
|
|
44
|
+
await queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`digital\``);
|
|
45
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`profile_magento_id\``);
|
|
46
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_sku\``);
|
|
47
|
+
await queryRunner.query(`ALTER TABLE \`imported_product\` DROP COLUMN \`magento_id\``);
|
|
48
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`magento_connection_id\``);
|
|
49
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`active\``);
|
|
50
|
+
await queryRunner.query(`ALTER TABLE \`magento_connection\` DROP COLUMN \`issuplier\``);
|
|
51
|
+
await queryRunner.query(`DROP INDEX \`REL_c6bbcf34d07fb60f39b9852f2a\` ON \`product_digital\``);
|
|
52
|
+
await queryRunner.query(`DROP TABLE \`product_digital\``);
|
|
53
|
+
await queryRunner.query(
|
|
54
|
+
`CREATE UNIQUE INDEX \`REL_28d5bb57bf4cfd4c6b07f1cb2a\` ON \`magento_connection\` (\`user_id\`)`,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class compareatLineItems11696608295188 implements MigrationInterface {
|
|
4
|
+
name = 'compareatLineItems11696608295188'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`price_data\` ADD \`compare_at\` decimal(10,2) NULL DEFAULT '0.00'`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`price_data\` DROP COLUMN \`compare_at\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class promoteToProduction1697724057621 implements MigrationInterface {
|
|
4
|
+
name = 'promoteToProduction1697724057621';
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(
|
|
8
|
+
`ALTER TABLE \`price_data\` ADD \`compare_at\` decimal(10,2) NULL DEFAULT '0.00'`,
|
|
9
|
+
);
|
|
10
|
+
await queryRunner.query(
|
|
11
|
+
`ALTER TABLE \`magento_connection\` ADD CONSTRAINT \`FK_28d5bb57bf4cfd4c6b07f1cb2a0\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`,
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
16
|
+
await queryRunner.query(
|
|
17
|
+
`ALTER TABLE \`magento_connection\` DROP FOREIGN KEY \`FK_28d5bb57bf4cfd4c6b07f1cb2a0\``,
|
|
18
|
+
);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`price_data\` DROP COLUMN \`compare_at\``);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class userChannel1697858770679 implements MigrationInterface {
|
|
4
|
+
name = 'userChannel1697858770679'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` ADD \`use_messaging_queue\` tinyint NULL DEFAULT 1`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`channel_user\` DROP COLUMN \`use_messaging_queue\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|