@reachu/database 1.0.207 → 1.0.209
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/ChannelUserSettings.d.ts +1 -0
- package/dist/entity/ChannelUserSettings.js +4 -0
- package/dist/entity/ChannelUserSettings.js.map +1 -1
- package/dist/migrations/1732888376150-promote_to_prod_29_11_24.d.ts +6 -0
- package/dist/migrations/1732888376150-promote_to_prod_29_11_24.js +43 -0
- package/dist/migrations/1732888376150-promote_to_prod_29_11_24.js.map +1 -0
- package/dist/migrations/1740405236423-vipps-in-settings.d.ts +6 -0
- package/dist/migrations/1740405236423-vipps-in-settings.js +29 -0
- package/dist/migrations/1740405236423-vipps-in-settings.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +26 -2
- package/package.json +3 -3
- package/src/entity/ChannelUserSettings.ts +3 -0
- package/src/migrations/1732888376150-promote_to_prod_29_11_24.ts +28 -0
- package/src/migrations/1740405236423-vipps-in-settings.ts +15 -0
|
@@ -36,6 +36,10 @@ __decorate([
|
|
|
36
36
|
typeorm_1.Column('boolean', { default: false }),
|
|
37
37
|
__metadata("design:type", Boolean)
|
|
38
38
|
], ChannelUserSettings.prototype, "klarna", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], ChannelUserSettings.prototype, "vipps", void 0);
|
|
39
43
|
__decorate([
|
|
40
44
|
typeorm_1.Column('varchar', { length: '21844' }),
|
|
41
45
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUserSettings.js","sourceRoot":"","sources":["../../src/entity/ChannelUserSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,mBAAmB,GAAxC,MAAqB,mBAAoB,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"ChannelUserSettings.js","sourceRoot":"","sources":["../../src/entity/ChannelUserSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,mBAAmB,GAAxC,MAAqB,mBAAoB,SAAQ,sBAAY;CA4B5D,CAAA;AA1BC;IADC,0BAAgB,EAAE;8BACR,IAAI;sDAAC;AAGhB;IADC,gCAAsB,EAAE;;+CACd;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8DACX;AAG3B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gEACT;AAG7B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;mDACtB;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kDACvB;AAIf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;oDACvB;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;+DACT;AAG5B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;mEACpB;AA3BZ,mBAAmB;IADvC,gBAAM,EAAE;GACY,mBAAmB,CA4BvC;kBA5BoB,mBAAmB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.promoteToProd2911241732888376150 = void 0;
|
|
13
|
+
class promoteToProd2911241732888376150 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'promoteToProd2911241732888376150';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_full_name\` \`customer_full_name\` varchar(255) NOT NULL`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_address\` \`customer_shipping_address\` varchar(255) NOT NULL`);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_city\` \`customer_shipping_city\` varchar(255) NOT NULL`);
|
|
22
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_contact_name\` \`customer_shipping_contact_name\` varchar(255) NOT NULL`);
|
|
23
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_name\` \`customer_billing_name\` varchar(255) NOT NULL`);
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_city\` \`customer_billing_city\` varchar(255) NOT NULL`);
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_address\` \`customer_billing_address\` varchar(255) NOT NULL`);
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_country\` \`customer_billing_country\` varchar(255) NOT NULL`);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
down(queryRunner) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_country\` \`customer_billing_country\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
32
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_address\` \`customer_billing_address\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
33
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_city\` \`customer_billing_city\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
34
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_name\` \`customer_billing_name\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
35
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_contact_name\` \`customer_shipping_contact_name\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
36
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_city\` \`customer_shipping_city\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
37
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_address\` \`customer_shipping_address\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
38
|
+
yield queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_full_name\` \`customer_full_name\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.promoteToProd2911241732888376150 = promoteToProd2911241732888376150;
|
|
43
|
+
//# sourceMappingURL=1732888376150-promote_to_prod_29_11_24.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1732888376150-promote_to_prod_29_11_24.js","sourceRoot":"","sources":["../../src/migrations/1732888376150-promote_to_prod_29_11_24.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gCAAgC;IAA7C;QACI,SAAI,GAAG,kCAAkC,CAAA;IAwB7C,CAAC;IAtBgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,kGAAkG,CAAC,CAAC;YAC5H,MAAM,WAAW,CAAC,KAAK,CAAC,gHAAgH,CAAC,CAAC;YAC1I,MAAM,WAAW,CAAC,KAAK,CAAC,0GAA0G,CAAC,CAAC;YACpI,MAAM,WAAW,CAAC,KAAK,CAAC,0HAA0H,CAAC,CAAC;YACpJ,MAAM,WAAW,CAAC,KAAK,CAAC,wGAAwG,CAAC,CAAC;YAClI,MAAM,WAAW,CAAC,KAAK,CAAC,wGAAwG,CAAC,CAAC;YAClI,MAAM,WAAW,CAAC,KAAK,CAAC,8GAA8G,CAAC,CAAC;YACxI,MAAM,WAAW,CAAC,KAAK,CAAC,8GAA8G,CAAC,CAAC;QAC5I,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,+JAA+J,CAAC,CAAC;YACzL,MAAM,WAAW,CAAC,KAAK,CAAC,+JAA+J,CAAC,CAAC;YACzL,MAAM,WAAW,CAAC,KAAK,CAAC,yJAAyJ,CAAC,CAAC;YACnL,MAAM,WAAW,CAAC,KAAK,CAAC,yJAAyJ,CAAC,CAAC;YACnL,MAAM,WAAW,CAAC,KAAK,CAAC,2KAA2K,CAAC,CAAC;YACrM,MAAM,WAAW,CAAC,KAAK,CAAC,2JAA2J,CAAC,CAAC;YACrL,MAAM,WAAW,CAAC,KAAK,CAAC,iKAAiK,CAAC,CAAC;YAC3L,MAAM,WAAW,CAAC,KAAK,CAAC,mJAAmJ,CAAC,CAAC;QACjL,CAAC;KAAA;CAEJ;AAzBD,4EAyBC"}
|
|
@@ -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.vippsInSettings1740405236423 = void 0;
|
|
13
|
+
class vippsInSettings1740405236423 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'vippsInSettings1740405236423';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_settings\` ADD \`vipps\` tinyint NOT NULL DEFAULT 0`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`ALTER TABLE \`channel_user_settings\` DROP COLUMN \`vipps\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.vippsInSettings1740405236423 = vippsInSettings1740405236423;
|
|
29
|
+
//# sourceMappingURL=1740405236423-vipps-in-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1740405236423-vipps-in-settings.js","sourceRoot":"","sources":["../../src/migrations/1740405236423-vipps-in-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,4BAA4B;IAAzC;QACE,SAAI,GAAG,8BAA8B,CAAC;IAWxC,CAAC;IATc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,gFAAgF,CACjF,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QACzF,CAAC;KAAA;CACF;AAZD,oEAYC"}
|
|
@@ -2487,8 +2487,8 @@
|
|
|
2487
2487
|
"affectsGlobalScope": false
|
|
2488
2488
|
},
|
|
2489
2489
|
"../src/entity/channelusersettings.ts": {
|
|
2490
|
-
"version": "
|
|
2491
|
-
"signature": "
|
|
2490
|
+
"version": "b1821449b736c34d3bbc818c95ca006eef50058508d7d52ab6750d52a566f692",
|
|
2491
|
+
"signature": "53996c722f0f56cf0e9150bce2188e138eb1a6909d7f457ea5dfcad9a6c141c0",
|
|
2492
2492
|
"affectsGlobalScope": false
|
|
2493
2493
|
},
|
|
2494
2494
|
"../src/entity/channeluser.ts": {
|
|
@@ -3881,6 +3881,16 @@
|
|
|
3881
3881
|
"signature": "a0e10dd5be39fab4abe2bd6d5d81ac94fdcd6bf2601d4a910bce18bc0fdd4aac",
|
|
3882
3882
|
"affectsGlobalScope": false
|
|
3883
3883
|
},
|
|
3884
|
+
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts": {
|
|
3885
|
+
"version": "d51d6f499e3af10a06adbbee7cacf73b66d64ce97b84be638cbb6b58ef275377",
|
|
3886
|
+
"signature": "3c6f8f7d225c48abf495c92b7ac8d51dccccd4c5c1acf2e9ba8ffc6fab639bd2",
|
|
3887
|
+
"affectsGlobalScope": false
|
|
3888
|
+
},
|
|
3889
|
+
"../src/migrations/1740405236423-vipps-in-settings.ts": {
|
|
3890
|
+
"version": "0364afdda3ec5ddd727488bad54b55fc9900902c3dc5b57de008b20f4178f24c",
|
|
3891
|
+
"signature": "6e1840b51fc802f135089280a098a54b467d898cb61368fa2ec0c961aec3986f",
|
|
3892
|
+
"affectsGlobalScope": false
|
|
3893
|
+
},
|
|
3884
3894
|
"../src/migrations/execute/index.ts": {
|
|
3885
3895
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3886
3896
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -7135,6 +7145,12 @@
|
|
|
7135
7145
|
"../src/migrations/1732063824049-notfoundproduct.ts": [
|
|
7136
7146
|
"../node_modules/typeorm/index.d.ts"
|
|
7137
7147
|
],
|
|
7148
|
+
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts": [
|
|
7149
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7150
|
+
],
|
|
7151
|
+
"../src/migrations/1740405236423-vipps-in-settings.ts": [
|
|
7152
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7153
|
+
],
|
|
7138
7154
|
"../src/migrations/execute/index.ts": [
|
|
7139
7155
|
"../src/config/connect.ts"
|
|
7140
7156
|
],
|
|
@@ -10246,6 +10262,12 @@
|
|
|
10246
10262
|
"../src/migrations/1732063824049-notfoundproduct.ts": [
|
|
10247
10263
|
"../node_modules/typeorm/index.d.ts"
|
|
10248
10264
|
],
|
|
10265
|
+
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts": [
|
|
10266
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10267
|
+
],
|
|
10268
|
+
"../src/migrations/1740405236423-vipps-in-settings.ts": [
|
|
10269
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10270
|
+
],
|
|
10249
10271
|
"../src/migrations/index.ts": [
|
|
10250
10272
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10251
10273
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -11190,6 +11212,8 @@
|
|
|
11190
11212
|
"../src/migrations/1728584044370-promote_to_prod_10_10_23.ts",
|
|
11191
11213
|
"../src/migrations/1731073175371-fix-international-phone.ts",
|
|
11192
11214
|
"../src/migrations/1732063824049-notfoundproduct.ts",
|
|
11215
|
+
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts",
|
|
11216
|
+
"../src/migrations/1740405236423-vipps-in-settings.ts",
|
|
11193
11217
|
"../src/migrations/execute/index.ts",
|
|
11194
11218
|
"../src/migrations/index.ts",
|
|
11195
11219
|
"../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.209",
|
|
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.209",
|
|
25
|
+
"@reachu/utils": "1.0.209",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"eventemitter2": "^6.4.9",
|
|
28
28
|
"express": "4.17.1",
|
|
@@ -18,6 +18,9 @@ export default class ChannelUserSettings extends AuditedModel {
|
|
|
18
18
|
@Column('boolean', { default: false })
|
|
19
19
|
klarna: boolean;
|
|
20
20
|
|
|
21
|
+
@Column('boolean', { default: false })
|
|
22
|
+
vipps: boolean;
|
|
23
|
+
|
|
21
24
|
//array of strings (countries code)
|
|
22
25
|
@Column('varchar', { length: '21844' })
|
|
23
26
|
markets: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class promoteToProd2911241732888376150 implements MigrationInterface {
|
|
4
|
+
name = 'promoteToProd2911241732888376150'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_full_name\` \`customer_full_name\` varchar(255) NOT NULL`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_address\` \`customer_shipping_address\` varchar(255) NOT NULL`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_city\` \`customer_shipping_city\` varchar(255) NOT NULL`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_contact_name\` \`customer_shipping_contact_name\` varchar(255) NOT NULL`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_name\` \`customer_billing_name\` varchar(255) NOT NULL`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_city\` \`customer_billing_city\` varchar(255) NOT NULL`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_address\` \`customer_billing_address\` varchar(255) NOT NULL`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_country\` \`customer_billing_country\` varchar(255) NOT NULL`);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_country\` \`customer_billing_country\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_address\` \`customer_billing_address\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_city\` \`customer_billing_city\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_billing_name\` \`customer_billing_name\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_contact_name\` \`customer_shipping_contact_name\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
23
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_city\` \`customer_shipping_city\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
24
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_shipping_address\` \`customer_shipping_address\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
25
|
+
await queryRunner.query(`ALTER TABLE \`order\` CHANGE \`customer_full_name\` \`customer_full_name\` varchar(255) CHARACTER SET "utf8mb4" COLLATE "utf8mb4_unicode_ci" NULL`);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
export class vippsInSettings1740405236423 implements MigrationInterface {
|
|
4
|
+
name = 'vippsInSettings1740405236423';
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(
|
|
8
|
+
`ALTER TABLE \`channel_user_settings\` ADD \`vipps\` tinyint NOT NULL DEFAULT 0`,
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`channel_user_settings\` DROP COLUMN \`vipps\``);
|
|
14
|
+
}
|
|
15
|
+
}
|