@reachu/database 1.0.207 → 1.0.208
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/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/tsconfig.tsbuildinfo +12 -0
- package/package.json +3 -3
- package/src/migrations/1732888376150-promote_to_prod_29_11_24.ts +28 -0
|
@@ -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"}
|
|
@@ -3881,6 +3881,11 @@
|
|
|
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
|
+
},
|
|
3884
3889
|
"../src/migrations/execute/index.ts": {
|
|
3885
3890
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3886
3891
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -7135,6 +7140,9 @@
|
|
|
7135
7140
|
"../src/migrations/1732063824049-notfoundproduct.ts": [
|
|
7136
7141
|
"../node_modules/typeorm/index.d.ts"
|
|
7137
7142
|
],
|
|
7143
|
+
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts": [
|
|
7144
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7145
|
+
],
|
|
7138
7146
|
"../src/migrations/execute/index.ts": [
|
|
7139
7147
|
"../src/config/connect.ts"
|
|
7140
7148
|
],
|
|
@@ -10246,6 +10254,9 @@
|
|
|
10246
10254
|
"../src/migrations/1732063824049-notfoundproduct.ts": [
|
|
10247
10255
|
"../node_modules/typeorm/index.d.ts"
|
|
10248
10256
|
],
|
|
10257
|
+
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts": [
|
|
10258
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10259
|
+
],
|
|
10249
10260
|
"../src/migrations/index.ts": [
|
|
10250
10261
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10251
10262
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -11190,6 +11201,7 @@
|
|
|
11190
11201
|
"../src/migrations/1728584044370-promote_to_prod_10_10_23.ts",
|
|
11191
11202
|
"../src/migrations/1731073175371-fix-international-phone.ts",
|
|
11192
11203
|
"../src/migrations/1732063824049-notfoundproduct.ts",
|
|
11204
|
+
"../src/migrations/1732888376150-promote_to_prod_29_11_24.ts",
|
|
11193
11205
|
"../src/migrations/execute/index.ts",
|
|
11194
11206
|
"../src/migrations/index.ts",
|
|
11195
11207
|
"../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.208",
|
|
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.208",
|
|
25
|
+
"@reachu/utils": "1.0.208",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"eventemitter2": "^6.4.9",
|
|
28
28
|
"express": "4.17.1",
|
|
@@ -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
|
+
}
|