@reachu/database 1.0.19 → 1.0.20
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/modules/templates/TemplateChannel.d.ts +1 -0
- package/dist/entity/modules/templates/TemplateChannel.js +4 -0
- package/dist/entity/modules/templates/TemplateChannel.js.map +1 -1
- package/dist/migrations/1681167494090-template-channel-name.d.ts +6 -0
- package/dist/migrations/1681167494090-template-channel-name.js +29 -0
- package/dist/migrations/1681167494090-template-channel-name.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +14 -2
- package/package.json +3 -3
- package/src/entity/modules/templates/TemplateChannel.ts +4 -0
- package/src/migrations/1681167494090-template-channel-name.ts +14 -0
|
@@ -13,6 +13,7 @@ import TemplateChannelSchemeConfigOrderMapped from './schemeOrder/TemplateChanne
|
|
|
13
13
|
export default class TemplateChannel extends AuditedModel {
|
|
14
14
|
id: number;
|
|
15
15
|
deletedAt: Date;
|
|
16
|
+
name: string;
|
|
16
17
|
authMethodTemplateChannel: AuthMethodTemplateChannel;
|
|
17
18
|
userTemplateChannel: UserTemplateChannel[];
|
|
18
19
|
reachuSchemeConfigProduct: ReachuSchemeConfigProduct;
|
|
@@ -35,6 +35,10 @@ __decorate([
|
|
|
35
35
|
typeorm_1.DeleteDateColumn(),
|
|
36
36
|
__metadata("design:type", Date)
|
|
37
37
|
], TemplateChannel.prototype, "deletedAt", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
typeorm_1.Column('varchar', { nullable: false }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], TemplateChannel.prototype, "name", void 0);
|
|
38
42
|
__decorate([
|
|
39
43
|
typeorm_1.ManyToOne(() => AuthMethodTemplateChannel_1.default, (authMethodTemplateChannel) => authMethodTemplateChannel.templateChannel, {
|
|
40
44
|
eager: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/TemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"TemplateChannel.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/TemplateChannel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,4FAAoE;AACpE,gFAAwD;AACxD,0GAAkF;AAClF,4HAAoG;AACpG,wIAAgH;AAChH,0GAAkF;AAClF,4HAAoG;AACpG,wIAAgH;AAChH,oGAA4E;AAC5E,sHAA8F;AAC9F,kIAA0G;AAG1G,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAuIxD,CAAA;AArIC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6CAC1B;AAYb;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,mCAAyB,EAC/B,CAAC,yBAAoD,EAAE,EAAE,CACvD,yBAAyB,CAAC,eAAe,EAC3C;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACc,mCAAyB;kEAAC;AAOrD;IALC,mBAAS,CACR,GAAG,EAAE,CAAC,6BAAmB,EACzB,CAAC,mBAAwC,EAAE,EAAE,CAAC,mBAAmB,CAAC,eAAe,EACjF,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB;;4DAC0C;AAY3C;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,mCAAyB,EAC/B,CAAC,yBAAoD,EAAE,EAAE,CACvD,yBAAyB,CAAC,eAAe,EAC3C;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACc,mCAAyB;kEAAC;AAYrD;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,4CAAk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ACY,iCAAuB;gEAAC;AAYjD;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,0CAAgC,EACtC,CAAC,gCAAkE,EAAE,EAAE,CACrE,gCAAgC,CAAC,eAAe,EAClD;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACqB,0CAAgC;yEAAC;AAYnE;IAVC,mBAAS,CACR,GAAG,EAAE,CAAC,gDAAsC,EAC5C,CAAC,sCAA8E,EAAE,EAAE,CACjF,sCAAsC,CAAC,eAAe,EACxD;QACE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BAC2B,gDAAsC;+EAAC;AAtI5D,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAuInC;kBAvIoB,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.templateChannelName1681167494090 = void 0;
|
|
13
|
+
class templateChannelName1681167494090 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'templateChannelName1681167494090';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD \`name\` varchar(255) NOT NULL`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP COLUMN \`name\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.templateChannelName1681167494090 = templateChannelName1681167494090;
|
|
29
|
+
//# sourceMappingURL=1681167494090-template-channel-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1681167494090-template-channel-name.js","sourceRoot":"","sources":["../../src/migrations/1681167494090-template-channel-name.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACI,SAAI,GAAG,kCAAkC,CAAA;IAU7C,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;QACnG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;QACrF,CAAC;KAAA;CAEJ;AAXD,4EAWC"}
|
|
@@ -2682,8 +2682,8 @@
|
|
|
2682
2682
|
"affectsGlobalScope": false
|
|
2683
2683
|
},
|
|
2684
2684
|
"../src/entity/modules/templates/templatechannel.ts": {
|
|
2685
|
-
"version": "
|
|
2686
|
-
"signature": "
|
|
2685
|
+
"version": "5913887d1b37627eed11f49f8b1288e3590215fb6de669df5eb3cfc3f6e7c85b",
|
|
2686
|
+
"signature": "d08ce84d7d1ffbe7012303bf759610f6ea6fc7336866015e309e9e0c49bbaf20",
|
|
2687
2687
|
"affectsGlobalScope": false
|
|
2688
2688
|
},
|
|
2689
2689
|
"../src/entity/modules/templates/authmethodtemplatechannel.ts": {
|
|
@@ -3116,6 +3116,11 @@
|
|
|
3116
3116
|
"signature": "1916b85a9f87d6c7564aac30d2c7d984413d110272a707efa012e2b738ae315d",
|
|
3117
3117
|
"affectsGlobalScope": false
|
|
3118
3118
|
},
|
|
3119
|
+
"../src/migrations/1681167494090-template-channel-name.ts": {
|
|
3120
|
+
"version": "d7898605e194af7189b618411055842d436335054aac7f074bf6fc235647e454",
|
|
3121
|
+
"signature": "78e72c194424768e760aa11b0776fc9b80bf4bf9a9fbbfb64609b9f8cadc21a4",
|
|
3122
|
+
"affectsGlobalScope": false
|
|
3123
|
+
},
|
|
3119
3124
|
"../src/migrations/execute/index.ts": {
|
|
3120
3125
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3121
3126
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5833,6 +5838,9 @@
|
|
|
5833
5838
|
"../src/migrations/1680581444059-template.ts": [
|
|
5834
5839
|
"../node_modules/typeorm/index.d.ts"
|
|
5835
5840
|
],
|
|
5841
|
+
"../src/migrations/1681167494090-template-channel-name.ts": [
|
|
5842
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5843
|
+
],
|
|
5836
5844
|
"../src/migrations/execute/index.ts": [
|
|
5837
5845
|
"../src/config/connect.ts"
|
|
5838
5846
|
],
|
|
@@ -8402,6 +8410,9 @@
|
|
|
8402
8410
|
"../src/migrations/1680581444059-template.ts": [
|
|
8403
8411
|
"../node_modules/typeorm/index.d.ts"
|
|
8404
8412
|
],
|
|
8413
|
+
"../src/migrations/1681167494090-template-channel-name.ts": [
|
|
8414
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8415
|
+
],
|
|
8405
8416
|
"../src/migrations/index.ts": [
|
|
8406
8417
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
8407
8418
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9164,6 +9175,7 @@
|
|
|
9164
9175
|
"../src/migrations/1678115824175-task-1098v1.ts",
|
|
9165
9176
|
"../src/migrations/1679329902116-promote_to_production_2023_03_20.ts",
|
|
9166
9177
|
"../src/migrations/1680581444059-template.ts",
|
|
9178
|
+
"../src/migrations/1681167494090-template-channel-name.ts",
|
|
9167
9179
|
"../src/migrations/execute/index.ts",
|
|
9168
9180
|
"../src/migrations/index.ts",
|
|
9169
9181
|
"../src/repositories/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.20",
|
|
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.20",
|
|
25
|
+
"@reachu/utils": "1.0.20",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
JoinColumn,
|
|
6
6
|
ManyToOne,
|
|
7
7
|
OneToMany,
|
|
8
|
+
Column,
|
|
8
9
|
} from 'typeorm';
|
|
9
10
|
import AuditedModel from '../../AuditedModel';
|
|
10
11
|
import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
|
|
@@ -27,6 +28,9 @@ export default class TemplateChannel extends AuditedModel {
|
|
|
27
28
|
@DeleteDateColumn()
|
|
28
29
|
deletedAt: Date;
|
|
29
30
|
|
|
31
|
+
@Column('varchar', { nullable: false })
|
|
32
|
+
name: string;
|
|
33
|
+
|
|
30
34
|
@ManyToOne(
|
|
31
35
|
() => AuthMethodTemplateChannel,
|
|
32
36
|
(authMethodTemplateChannel: AuthMethodTemplateChannel) =>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class templateChannelName1681167494090 implements MigrationInterface {
|
|
4
|
+
name = 'templateChannelName1681167494090'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` ADD \`name\` varchar(255) NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`template_channel\` DROP COLUMN \`name\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|