@reachu/database 1.0.26 → 1.0.27
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/AuthInfo.d.ts +9 -5
- package/dist/entity/modules/templates/AuthInfo.js +21 -5
- package/dist/entity/modules/templates/AuthInfo.js.map +1 -1
- package/dist/migrations/1681765500644-template-auth-fix.d.ts +6 -0
- package/dist/migrations/1681765500644-template-auth-fix.js +55 -0
- package/dist/migrations/1681765500644-template-auth-fix.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +14 -2
- package/package.json +3 -3
- package/src/entity/modules/templates/AuthInfo.ts +17 -5
- package/src/migrations/1681765500644-template-auth-fix.ts +40 -0
|
@@ -3,10 +3,14 @@ import UserTemplateEcommerce from './UserTemplateEcommerce';
|
|
|
3
3
|
export default class AuthInfo extends AuditedModel {
|
|
4
4
|
id: number;
|
|
5
5
|
deletedAt: Date;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
apiKeyKey: string;
|
|
7
|
+
apiKeyValue: string;
|
|
8
|
+
bearerToken: string;
|
|
9
|
+
basicAuthUsername: string;
|
|
10
|
+
basicAuthPassword: string;
|
|
11
|
+
oauthOneConsumerKey: string;
|
|
12
|
+
oauthOneConsumerSecret: string;
|
|
13
|
+
oauthTwoToken: string;
|
|
14
|
+
oauthTwoPrefix: string;
|
|
11
15
|
userTemplateEcommerce: UserTemplateEcommerce[];
|
|
12
16
|
}
|
|
@@ -28,23 +28,39 @@ __decorate([
|
|
|
28
28
|
__decorate([
|
|
29
29
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
|
-
], AuthInfo.prototype, "
|
|
31
|
+
], AuthInfo.prototype, "apiKeyKey", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
|
-
], AuthInfo.prototype, "
|
|
35
|
+
], AuthInfo.prototype, "apiKeyValue", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
|
-
], AuthInfo.prototype, "
|
|
39
|
+
], AuthInfo.prototype, "bearerToken", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
|
-
], AuthInfo.prototype, "
|
|
43
|
+
], AuthInfo.prototype, "basicAuthUsername", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
|
-
], AuthInfo.prototype, "
|
|
47
|
+
], AuthInfo.prototype, "basicAuthPassword", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], AuthInfo.prototype, "oauthOneConsumerKey", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], AuthInfo.prototype, "oauthOneConsumerSecret", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], AuthInfo.prototype, "oauthTwoToken", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], AuthInfo.prototype, "oauthTwoPrefix", void 0);
|
|
48
64
|
__decorate([
|
|
49
65
|
typeorm_1.OneToMany(() => UserTemplateEcommerce_1.default, (userTemplateEcommerce) => userTemplateEcommerce.authInfo, {
|
|
50
66
|
cascade: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthInfo.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA8F;AAC9F,sEAA8C;AAC9C,oFAA4D;AAG5D,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"AuthInfo.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA8F;AAC9F,sEAA8C;AAC9C,oFAA4D;AAG5D,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CA0CjD,CAAA;AAxCC;IADC,gCAAsB,EAAE;;oCACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAClB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAClB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAG1B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAG1B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACV;AAG5B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACP;AAG/B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAChB;AAGtB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACf;AASvB;IAPC,mBAAS,CACR,GAAG,EAAE,CAAC,+BAAqB,EAC3B,CAAC,qBAA4C,EAAE,EAAE,CAAC,qBAAqB,CAAC,QAAQ,EAChF;QACE,OAAO,EAAE,IAAI;KACd,CACF;;uDAC8C;AAzC5B,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CA0C5B;kBA1CoB,QAAQ"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.templateAuthFix1681765500644 = void 0;
|
|
13
|
+
class templateAuthFix1681765500644 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'templateAuthFix1681765500644';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`token\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic\``);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`public_key\``);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`private_key\``);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key_key\` varchar(255) NULL`);
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key_value\` varchar(255) NULL`);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`bearer_token\` varchar(255) NULL`);
|
|
27
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic_auth_username\` varchar(255) NULL`);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic_auth_password\` varchar(255) NULL`);
|
|
29
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_one_consumer_key\` varchar(255) NULL`);
|
|
30
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_one_consumer_secret\` varchar(255) NULL`);
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_two_token\` varchar(255) NULL`);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_two_prefix\` varchar(255) NULL`);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
down(queryRunner) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_two_prefix\``);
|
|
38
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_two_token\``);
|
|
39
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_one_consumer_secret\``);
|
|
40
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_one_consumer_key\``);
|
|
41
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic_auth_password\``);
|
|
42
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic_auth_username\``);
|
|
43
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`bearer_token\``);
|
|
44
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key_value\``);
|
|
45
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key_key\``);
|
|
46
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`private_key\` varchar(255) NULL`);
|
|
47
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`public_key\` varchar(255) NULL`);
|
|
48
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic\` varchar(255) NULL`);
|
|
49
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key\` varchar(255) NULL`);
|
|
50
|
+
yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`token\` varchar(255) NULL`);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.templateAuthFix1681765500644 = templateAuthFix1681765500644;
|
|
55
|
+
//# sourceMappingURL=1681765500644-template-auth-fix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1681765500644-template-auth-fix.js","sourceRoot":"","sources":["../../src/migrations/1681765500644-template-auth-fix.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,4BAA4B;IAAzC;QACI,SAAI,GAAG,8BAA8B,CAAA;IAoCzC,CAAC;IAlCgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;YAC3E,MAAM,WAAW,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;YAC7E,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;YAC3E,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;YAChF,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;YAC7F,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YAC5F,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAC;YACnG,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAC;YACnG,MAAM,WAAW,CAAC,KAAK,CAAC,4EAA4E,CAAC,CAAC;YACtG,MAAM,WAAW,CAAC,KAAK,CAAC,+EAA+E,CAAC,CAAC;YACzG,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;QACpG,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;YACtF,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;YACrF,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;YAC/F,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YAC5F,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACzF,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACzF,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;YAClF,MAAM,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;YACnF,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAC;YAC1F,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;YACrF,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;YACvF,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;QACzF,CAAC;KAAA;CAEJ;AArCD,oEAqCC"}
|
|
@@ -2692,8 +2692,8 @@
|
|
|
2692
2692
|
"affectsGlobalScope": false
|
|
2693
2693
|
},
|
|
2694
2694
|
"../src/entity/modules/templates/authinfo.ts": {
|
|
2695
|
-
"version": "
|
|
2696
|
-
"signature": "
|
|
2695
|
+
"version": "0896dae7a7b6a640ee94d70c5c30519be1b1fc234ed3827d06787306335bd4fe",
|
|
2696
|
+
"signature": "ccbd78937bdc68df6cc2031fa99c097ed29396842593cbc934039ea589b1ab6e",
|
|
2697
2697
|
"affectsGlobalScope": false
|
|
2698
2698
|
},
|
|
2699
2699
|
"../src/entity/modules/subscriptions/plan.ts": {
|
|
@@ -3166,6 +3166,11 @@
|
|
|
3166
3166
|
"signature": "a5083d4216fe33cafecb5b62bd8af8e186c7bc9bbf4296ae5c1a31fc169ab0e7",
|
|
3167
3167
|
"affectsGlobalScope": false
|
|
3168
3168
|
},
|
|
3169
|
+
"../src/migrations/1681765500644-template-auth-fix.ts": {
|
|
3170
|
+
"version": "86c79053489f9d5d98b920c5829bc79ca352964ce93050cf632e524d6a3e0109",
|
|
3171
|
+
"signature": "539f78b38f388da52ce133b617adcb97f7316beb5b62d2fb0a532f8c93e4b6bc",
|
|
3172
|
+
"affectsGlobalScope": false
|
|
3173
|
+
},
|
|
3169
3174
|
"../src/migrations/execute/index.ts": {
|
|
3170
3175
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3171
3176
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5912,6 +5917,9 @@
|
|
|
5912
5917
|
"../src/migrations/1681741033630-subscriptions.ts": [
|
|
5913
5918
|
"../node_modules/typeorm/index.d.ts"
|
|
5914
5919
|
],
|
|
5920
|
+
"../src/migrations/1681765500644-template-auth-fix.ts": [
|
|
5921
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5922
|
+
],
|
|
5915
5923
|
"../src/migrations/execute/index.ts": [
|
|
5916
5924
|
"../src/config/connect.ts"
|
|
5917
5925
|
],
|
|
@@ -8514,6 +8522,9 @@
|
|
|
8514
8522
|
"../src/migrations/1681741033630-subscriptions.ts": [
|
|
8515
8523
|
"../node_modules/typeorm/index.d.ts"
|
|
8516
8524
|
],
|
|
8525
|
+
"../src/migrations/1681765500644-template-auth-fix.ts": [
|
|
8526
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8527
|
+
],
|
|
8517
8528
|
"../src/migrations/index.ts": [
|
|
8518
8529
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
8519
8530
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9291,6 +9302,7 @@
|
|
|
9291
9302
|
"../src/migrations/1681485048240-template-ecommerce.ts",
|
|
9292
9303
|
"../src/migrations/1681485990275-template-ecommerce-two.ts",
|
|
9293
9304
|
"../src/migrations/1681741033630-subscriptions.ts",
|
|
9305
|
+
"../src/migrations/1681765500644-template-auth-fix.ts",
|
|
9294
9306
|
"../src/migrations/execute/index.ts",
|
|
9295
9307
|
"../src/migrations/index.ts",
|
|
9296
9308
|
"../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.27",
|
|
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.27",
|
|
25
|
+
"@reachu/utils": "1.0.27",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -11,19 +11,31 @@ export default class AuthInfo extends AuditedModel {
|
|
|
11
11
|
deletedAt: Date;
|
|
12
12
|
|
|
13
13
|
@Column('varchar', { nullable: true })
|
|
14
|
-
|
|
14
|
+
apiKeyKey: string;
|
|
15
15
|
|
|
16
16
|
@Column('varchar', { nullable: true })
|
|
17
|
-
|
|
17
|
+
apiKeyValue: string;
|
|
18
18
|
|
|
19
19
|
@Column('varchar', { nullable: true })
|
|
20
|
-
|
|
20
|
+
bearerToken: string;
|
|
21
21
|
|
|
22
22
|
@Column('varchar', { nullable: true })
|
|
23
|
-
|
|
23
|
+
basicAuthUsername: string;
|
|
24
24
|
|
|
25
25
|
@Column('varchar', { nullable: true })
|
|
26
|
-
|
|
26
|
+
basicAuthPassword: string;
|
|
27
|
+
|
|
28
|
+
@Column('varchar', { nullable: true })
|
|
29
|
+
oauthOneConsumerKey: string;
|
|
30
|
+
|
|
31
|
+
@Column('varchar', { nullable: true })
|
|
32
|
+
oauthOneConsumerSecret: string;
|
|
33
|
+
|
|
34
|
+
@Column('varchar', { nullable: true })
|
|
35
|
+
oauthTwoToken: string;
|
|
36
|
+
|
|
37
|
+
@Column('varchar', { nullable: true })
|
|
38
|
+
oauthTwoPrefix: string;
|
|
27
39
|
|
|
28
40
|
@OneToMany(
|
|
29
41
|
() => UserTemplateEcommerce,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class templateAuthFix1681765500644 implements MigrationInterface {
|
|
4
|
+
name = 'templateAuthFix1681765500644'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`token\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic\``);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`public_key\``);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`private_key\``);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key_key\` varchar(255) NULL`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key_value\` varchar(255) NULL`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`bearer_token\` varchar(255) NULL`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic_auth_username\` varchar(255) NULL`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic_auth_password\` varchar(255) NULL`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_one_consumer_key\` varchar(255) NULL`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_one_consumer_secret\` varchar(255) NULL`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_two_token\` varchar(255) NULL`);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_two_prefix\` varchar(255) NULL`);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
24
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_two_prefix\``);
|
|
25
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_two_token\``);
|
|
26
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_one_consumer_secret\``);
|
|
27
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_one_consumer_key\``);
|
|
28
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic_auth_password\``);
|
|
29
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic_auth_username\``);
|
|
30
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`bearer_token\``);
|
|
31
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key_value\``);
|
|
32
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key_key\``);
|
|
33
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`private_key\` varchar(255) NULL`);
|
|
34
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`public_key\` varchar(255) NULL`);
|
|
35
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic\` varchar(255) NULL`);
|
|
36
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key\` varchar(255) NULL`);
|
|
37
|
+
await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`token\` varchar(255) NULL`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|