nc-db-new 1.3.5 → 1.3.7
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/20230727112315-add-internatioal-payment.js +8 -8
- package/dist/migrations/20230727112315-add-internatioal-payment.js.map +1 -1
- package/dist/migrations/20230727143333-add-internatioal-payment.d.ts +4 -0
- package/dist/migrations/20230727143333-add-internatioal-payment.js +39 -0
- package/dist/migrations/20230727143333-add-internatioal-payment.js.map +1 -0
- package/package.json +1 -1
|
@@ -11,29 +11,29 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.down = exports.up = void 0;
|
|
13
13
|
const up = ({ context: queryInterface }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
14
|
-
yield queryInterface.addColumn('users', '
|
|
14
|
+
yield queryInterface.addColumn('users', 'bank_name', {
|
|
15
15
|
type: 'VARCHAR(255)',
|
|
16
16
|
allowNull: true,
|
|
17
17
|
});
|
|
18
|
-
yield queryInterface.addColumn('users', '
|
|
18
|
+
yield queryInterface.addColumn('users', 'iban_number', {
|
|
19
19
|
type: 'VARCHAR(255)',
|
|
20
20
|
allowNull: true,
|
|
21
21
|
});
|
|
22
|
-
yield queryInterface.addColumn('users', '
|
|
22
|
+
yield queryInterface.addColumn('users', 'swift_code', {
|
|
23
23
|
type: 'VARCHAR(255)',
|
|
24
24
|
allowNull: true,
|
|
25
25
|
});
|
|
26
|
-
yield queryInterface.addColumn('users', '
|
|
26
|
+
yield queryInterface.addColumn('users', 'bic_code', {
|
|
27
27
|
type: 'VARCHAR(255)',
|
|
28
28
|
allowNull: true,
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
exports.up = up;
|
|
32
32
|
const down = ({ context: queryInterface }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
|
-
yield queryInterface.removeColumn('users', '
|
|
34
|
-
yield queryInterface.removeColumn('users', '
|
|
35
|
-
yield queryInterface.removeColumn('users', '
|
|
36
|
-
yield queryInterface.removeColumn('users', '
|
|
33
|
+
yield queryInterface.removeColumn('users', 'bank_name');
|
|
34
|
+
yield queryInterface.removeColumn('users', 'iban_number');
|
|
35
|
+
yield queryInterface.removeColumn('users', 'swift_code');
|
|
36
|
+
yield queryInterface.removeColumn('users', 'bic_code');
|
|
37
37
|
});
|
|
38
38
|
exports.down = down;
|
|
39
39
|
//# sourceMappingURL=20230727112315-add-internatioal-payment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"20230727112315-add-internatioal-payment.js","sourceRoot":"","sources":["../../src/migrations/20230727112315-add-internatioal-payment.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAM,EAAE,GAAc,CAAO,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE;IAC1D,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"20230727112315-add-internatioal-payment.js","sourceRoot":"","sources":["../../src/migrations/20230727112315-add-internatioal-payment.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAM,EAAE,GAAc,CAAO,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE;IAC1D,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE;QACnD,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,EAAE;QACrD,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,YAAY,EAAE;QACpD,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE;QAClD,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AASO,gBAAE;AAPX,MAAM,IAAI,GAAc,CAAO,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE;IAC5D,MAAM,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACxD,MAAM,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAC1D,MAAM,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACzD,MAAM,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AACzD,CAAC,CAAA,CAAC;AAEW,oBAAI"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.down = exports.up = void 0;
|
|
13
|
+
const up = ({ context: queryInterface }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
14
|
+
yield queryInterface.addColumn('users', 'bank_name', {
|
|
15
|
+
type: 'VARCHAR(255)',
|
|
16
|
+
allowNull: true,
|
|
17
|
+
});
|
|
18
|
+
yield queryInterface.addColumn('users', 'iban_number', {
|
|
19
|
+
type: 'VARCHAR(255)',
|
|
20
|
+
allowNull: true,
|
|
21
|
+
});
|
|
22
|
+
yield queryInterface.addColumn('users', 'swift_code', {
|
|
23
|
+
type: 'VARCHAR(255)',
|
|
24
|
+
allowNull: true,
|
|
25
|
+
});
|
|
26
|
+
yield queryInterface.addColumn('users', 'bic_code', {
|
|
27
|
+
type: 'VARCHAR(255)',
|
|
28
|
+
allowNull: true,
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
exports.up = up;
|
|
32
|
+
const down = ({ context: queryInterface }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
|
+
yield queryInterface.removeColumn('users', 'bank_name');
|
|
34
|
+
yield queryInterface.removeColumn('users', 'iban_number');
|
|
35
|
+
yield queryInterface.removeColumn('users', 'swift_code');
|
|
36
|
+
yield queryInterface.removeColumn('users', 'bic_code');
|
|
37
|
+
});
|
|
38
|
+
exports.down = down;
|
|
39
|
+
//# sourceMappingURL=20230727143333-add-internatioal-payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20230727143333-add-internatioal-payment.js","sourceRoot":"","sources":["../../src/migrations/20230727143333-add-internatioal-payment.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAM,EAAE,GAAc,CAAO,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE;IAC1D,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE;QACnD,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,EAAE;QACrD,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,YAAY,EAAE;QACpD,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,MAAM,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE;QAClD,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AASO,gBAAE;AAPX,MAAM,IAAI,GAAc,CAAO,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE;IAC5D,MAAM,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACxD,MAAM,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAC1D,MAAM,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACzD,MAAM,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AACzD,CAAC,CAAA,CAAC;AAEW,oBAAI"}
|