@felloh-org/lambda-wrapper 1.1.23 → 1.1.26
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/agent-data/booking/index.js +45 -31
- package/dist/entity/payment/payment-link/index.js +48 -32
- package/dist/migration/1656410109048-booking_gross.js +13 -0
- package/dist/migration/1656411834978-booking_nullables.js +13 -0
- package/dist/migration/payment/1656341396697-payment_link_descriptions.js +17 -0
- package/dist/migration/payment/1656341762925-description_not_null.js +13 -0
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ var _transaction = _interopRequireDefault(require("../../payment/transaction"));
|
|
|
15
15
|
|
|
16
16
|
var _uuid = require("uuid");
|
|
17
17
|
|
|
18
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -29,53 +29,61 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
29
29
|
name: 'booking',
|
|
30
30
|
schema: 'agent_data'
|
|
31
31
|
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
|
|
32
|
+
type: "int",
|
|
33
|
+
nullable: true
|
|
34
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
32
35
|
type: "varchar",
|
|
33
|
-
length: "
|
|
34
|
-
|
|
36
|
+
length: "250",
|
|
37
|
+
nullable: true
|
|
38
|
+
}), _dec5 = (0, _typeorm.ManyToOne)(() => _user.default, {
|
|
39
|
+
nullable: true
|
|
40
|
+
}), _dec6 = (0, _typeorm.JoinColumn)({
|
|
35
41
|
name: 'user_id',
|
|
36
42
|
referencedColumnName: 'id'
|
|
37
|
-
}),
|
|
43
|
+
}), _dec7 = (0, _typeorm.OneToMany)(() => _transaction.default, transaction => transaction.booking), _dec8 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec9 = (0, _typeorm.JoinColumn)({
|
|
38
44
|
name: 'organisation_id',
|
|
39
45
|
referencedColumnName: 'id'
|
|
40
|
-
}), _dec9 = (0, _typeorm.Column)({
|
|
41
|
-
type: "varchar",
|
|
42
|
-
length: "150"
|
|
43
46
|
}), _dec10 = (0, _typeorm.Column)({
|
|
44
47
|
type: "varchar",
|
|
45
48
|
length: "150"
|
|
46
49
|
}), _dec11 = (0, _typeorm.Column)({
|
|
50
|
+
type: "varchar",
|
|
51
|
+
length: "150"
|
|
52
|
+
}), _dec12 = (0, _typeorm.Column)({
|
|
47
53
|
type: "date",
|
|
48
54
|
nullable: true
|
|
49
|
-
}),
|
|
55
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
50
56
|
type: "date",
|
|
51
57
|
nullable: true
|
|
52
|
-
}),
|
|
58
|
+
}), _dec14 = (0, _typeorm.CreateDateColumn)({
|
|
53
59
|
type: 'timestamp with time zone'
|
|
54
|
-
}),
|
|
60
|
+
}), _dec15 = (0, _typeorm.UpdateDateColumn)({
|
|
55
61
|
type: 'timestamp with time zone'
|
|
56
62
|
}), _dec(_class = (_class2 = class Booking {
|
|
57
63
|
constructor() {
|
|
58
64
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
59
65
|
|
|
60
|
-
_initializerDefineProperty(this, "
|
|
66
|
+
_initializerDefineProperty(this, "gross_amount", _descriptor2, this);
|
|
61
67
|
|
|
62
|
-
_initializerDefineProperty(this, "
|
|
68
|
+
_initializerDefineProperty(this, "email", _descriptor3, this);
|
|
63
69
|
|
|
64
|
-
_initializerDefineProperty(this, "
|
|
70
|
+
_initializerDefineProperty(this, "user", _descriptor4, this);
|
|
65
71
|
|
|
66
|
-
_initializerDefineProperty(this, "
|
|
72
|
+
_initializerDefineProperty(this, "transactions", _descriptor5, this);
|
|
67
73
|
|
|
68
|
-
_initializerDefineProperty(this, "
|
|
74
|
+
_initializerDefineProperty(this, "organisation", _descriptor6, this);
|
|
69
75
|
|
|
70
|
-
_initializerDefineProperty(this, "
|
|
76
|
+
_initializerDefineProperty(this, "customer_name", _descriptor7, this);
|
|
71
77
|
|
|
72
|
-
_initializerDefineProperty(this, "
|
|
78
|
+
_initializerDefineProperty(this, "booking_reference", _descriptor8, this);
|
|
73
79
|
|
|
74
|
-
_initializerDefineProperty(this, "
|
|
80
|
+
_initializerDefineProperty(this, "departure_date", _descriptor9, this);
|
|
75
81
|
|
|
76
|
-
_initializerDefineProperty(this, "
|
|
82
|
+
_initializerDefineProperty(this, "return_date", _descriptor10, this);
|
|
77
83
|
|
|
78
|
-
_initializerDefineProperty(this, "
|
|
84
|
+
_initializerDefineProperty(this, "created_at", _descriptor11, this);
|
|
85
|
+
|
|
86
|
+
_initializerDefineProperty(this, "updated_at", _descriptor12, this);
|
|
79
87
|
}
|
|
80
88
|
|
|
81
89
|
/**
|
|
@@ -90,7 +98,8 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
90
98
|
customer_name: this.customer_name,
|
|
91
99
|
departure_date: this.departure_date,
|
|
92
100
|
return_date: this.return_date,
|
|
93
|
-
email: this.email
|
|
101
|
+
email: this.email,
|
|
102
|
+
gross_amount: this.gross_amount
|
|
94
103
|
};
|
|
95
104
|
|
|
96
105
|
if (typeof this.transactions !== 'undefined') {
|
|
@@ -115,62 +124,67 @@ let Booking = (_dec = (0, _typeorm.Entity)({
|
|
|
115
124
|
initializer: function () {
|
|
116
125
|
return (0, _uuid.v4)();
|
|
117
126
|
}
|
|
118
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
127
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "gross_amount", [_dec3], {
|
|
128
|
+
configurable: true,
|
|
129
|
+
enumerable: true,
|
|
130
|
+
writable: true,
|
|
131
|
+
initializer: null
|
|
132
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "email", [_dec4], {
|
|
119
133
|
configurable: true,
|
|
120
134
|
enumerable: true,
|
|
121
135
|
writable: true,
|
|
122
136
|
initializer: function () {
|
|
123
137
|
return "";
|
|
124
138
|
}
|
|
125
|
-
}),
|
|
139
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "user", [_dec5, _dec6], {
|
|
126
140
|
configurable: true,
|
|
127
141
|
enumerable: true,
|
|
128
142
|
writable: true,
|
|
129
143
|
initializer: function () {
|
|
130
144
|
return _user.default;
|
|
131
145
|
}
|
|
132
|
-
}),
|
|
146
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "transactions", [_dec7], {
|
|
133
147
|
configurable: true,
|
|
134
148
|
enumerable: true,
|
|
135
149
|
writable: true,
|
|
136
150
|
initializer: null
|
|
137
|
-
}),
|
|
151
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec8, _dec9], {
|
|
138
152
|
configurable: true,
|
|
139
153
|
enumerable: true,
|
|
140
154
|
writable: true,
|
|
141
155
|
initializer: function () {
|
|
142
156
|
return _organisation.default;
|
|
143
157
|
}
|
|
144
|
-
}),
|
|
158
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "customer_name", [_dec10], {
|
|
145
159
|
configurable: true,
|
|
146
160
|
enumerable: true,
|
|
147
161
|
writable: true,
|
|
148
162
|
initializer: function () {
|
|
149
163
|
return "";
|
|
150
164
|
}
|
|
151
|
-
}),
|
|
165
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "booking_reference", [_dec11], {
|
|
152
166
|
configurable: true,
|
|
153
167
|
enumerable: true,
|
|
154
168
|
writable: true,
|
|
155
169
|
initializer: function () {
|
|
156
170
|
return "";
|
|
157
171
|
}
|
|
158
|
-
}),
|
|
172
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "departure_date", [_dec12], {
|
|
159
173
|
configurable: true,
|
|
160
174
|
enumerable: true,
|
|
161
175
|
writable: true,
|
|
162
176
|
initializer: null
|
|
163
|
-
}),
|
|
177
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "return_date", [_dec13], {
|
|
164
178
|
configurable: true,
|
|
165
179
|
enumerable: true,
|
|
166
180
|
writable: true,
|
|
167
181
|
initializer: null
|
|
168
|
-
}),
|
|
182
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec14], {
|
|
169
183
|
configurable: true,
|
|
170
184
|
enumerable: true,
|
|
171
185
|
writable: true,
|
|
172
186
|
initializer: null
|
|
173
|
-
}),
|
|
187
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec15], {
|
|
174
188
|
configurable: true,
|
|
175
189
|
enumerable: true,
|
|
176
190
|
writable: true,
|
|
@@ -15,7 +15,7 @@ var _booking = _interopRequireDefault(require("../../agent-data/booking"));
|
|
|
15
15
|
|
|
16
16
|
var _transaction = _interopRequireDefault(require("../transaction"));
|
|
17
17
|
|
|
18
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -47,34 +47,39 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
47
47
|
nullable: true
|
|
48
48
|
}), _dec11 = (0, _typeorm.Column)({
|
|
49
49
|
type: "varchar",
|
|
50
|
-
length: "
|
|
50
|
+
length: "2048",
|
|
51
|
+
nullable: true
|
|
51
52
|
}), _dec12 = (0, _typeorm.Column)({
|
|
52
53
|
type: "varchar",
|
|
53
|
-
length: "
|
|
54
|
+
length: "250",
|
|
55
|
+
nullable: true
|
|
54
56
|
}), _dec13 = (0, _typeorm.Column)({
|
|
55
57
|
type: "varchar",
|
|
56
58
|
length: "200"
|
|
57
59
|
}), _dec14 = (0, _typeorm.Column)({
|
|
58
60
|
type: "varchar",
|
|
59
61
|
length: "200"
|
|
60
|
-
}), _dec15 = (0, _typeorm.
|
|
62
|
+
}), _dec15 = (0, _typeorm.Column)({
|
|
63
|
+
type: "varchar",
|
|
64
|
+
length: "200"
|
|
65
|
+
}), _dec16 = (0, _typeorm.OneToMany)(() => _transaction.default, transaction => transaction.payment_link), _dec17 = (0, _typeorm.Column)({
|
|
61
66
|
type: "boolean",
|
|
62
67
|
default: true
|
|
63
|
-
}),
|
|
68
|
+
}), _dec18 = (0, _typeorm.Column)({
|
|
64
69
|
type: "boolean",
|
|
65
70
|
default: true
|
|
66
|
-
}),
|
|
71
|
+
}), _dec19 = (0, _typeorm.Column)({
|
|
67
72
|
type: "boolean",
|
|
68
73
|
default: false
|
|
69
|
-
}), _dec19 = (0, _typeorm.Column)({
|
|
70
|
-
type: "timestamp with time zone"
|
|
71
74
|
}), _dec20 = (0, _typeorm.Column)({
|
|
75
|
+
type: "timestamp with time zone"
|
|
76
|
+
}), _dec21 = (0, _typeorm.Column)({
|
|
72
77
|
type: "varchar",
|
|
73
78
|
length: "50",
|
|
74
79
|
default: 'active'
|
|
75
|
-
}),
|
|
80
|
+
}), _dec22 = (0, _typeorm.CreateDateColumn)({
|
|
76
81
|
type: 'timestamp with time zone'
|
|
77
|
-
}),
|
|
82
|
+
}), _dec23 = (0, _typeorm.UpdateDateColumn)({
|
|
78
83
|
type: 'timestamp with time zone'
|
|
79
84
|
}), _dec(_class = (_class2 = class PaymentLink {
|
|
80
85
|
constructor() {
|
|
@@ -92,27 +97,29 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
92
97
|
|
|
93
98
|
_initializerDefineProperty(this, "description", _descriptor7, this);
|
|
94
99
|
|
|
95
|
-
_initializerDefineProperty(this, "
|
|
100
|
+
_initializerDefineProperty(this, "email", _descriptor8, this);
|
|
101
|
+
|
|
102
|
+
_initializerDefineProperty(this, "success_url", _descriptor9, this);
|
|
96
103
|
|
|
97
|
-
_initializerDefineProperty(this, "failure_url",
|
|
104
|
+
_initializerDefineProperty(this, "failure_url", _descriptor10, this);
|
|
98
105
|
|
|
99
|
-
_initializerDefineProperty(this, "cancel_url",
|
|
106
|
+
_initializerDefineProperty(this, "cancel_url", _descriptor11, this);
|
|
100
107
|
|
|
101
|
-
_initializerDefineProperty(this, "transactions",
|
|
108
|
+
_initializerDefineProperty(this, "transactions", _descriptor12, this);
|
|
102
109
|
|
|
103
|
-
_initializerDefineProperty(this, "open_banking_enabled",
|
|
110
|
+
_initializerDefineProperty(this, "open_banking_enabled", _descriptor13, this);
|
|
104
111
|
|
|
105
|
-
_initializerDefineProperty(this, "card_enabled",
|
|
112
|
+
_initializerDefineProperty(this, "card_enabled", _descriptor14, this);
|
|
106
113
|
|
|
107
|
-
_initializerDefineProperty(this, "moto",
|
|
114
|
+
_initializerDefineProperty(this, "moto", _descriptor15, this);
|
|
108
115
|
|
|
109
|
-
_initializerDefineProperty(this, "expires_at",
|
|
116
|
+
_initializerDefineProperty(this, "expires_at", _descriptor16, this);
|
|
110
117
|
|
|
111
|
-
_initializerDefineProperty(this, "status",
|
|
118
|
+
_initializerDefineProperty(this, "status", _descriptor17, this);
|
|
112
119
|
|
|
113
|
-
_initializerDefineProperty(this, "created_at",
|
|
120
|
+
_initializerDefineProperty(this, "created_at", _descriptor18, this);
|
|
114
121
|
|
|
115
|
-
_initializerDefineProperty(this, "updated_at",
|
|
122
|
+
_initializerDefineProperty(this, "updated_at", _descriptor19, this);
|
|
116
123
|
}
|
|
117
124
|
|
|
118
125
|
generateExpiryDate() {
|
|
@@ -132,6 +139,7 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
132
139
|
customer_name: this.customer_name,
|
|
133
140
|
expires_at: this.expires_at,
|
|
134
141
|
created_at: this.created_at,
|
|
142
|
+
email: this.email,
|
|
135
143
|
methods: {
|
|
136
144
|
open_banking: this.open_banking_enabled,
|
|
137
145
|
card: this.card_enabled
|
|
@@ -164,6 +172,7 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
164
172
|
description: this.description,
|
|
165
173
|
expires_at: this.expires_at,
|
|
166
174
|
created_at: this.created_at,
|
|
175
|
+
email: this.email,
|
|
167
176
|
methods: {
|
|
168
177
|
open_banking: this.open_banking_enabled,
|
|
169
178
|
card: this.card_enabled
|
|
@@ -218,67 +227,74 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
218
227
|
initializer: function () {
|
|
219
228
|
return "";
|
|
220
229
|
}
|
|
221
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
230
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "email", [_dec12], {
|
|
231
|
+
configurable: true,
|
|
232
|
+
enumerable: true,
|
|
233
|
+
writable: true,
|
|
234
|
+
initializer: function () {
|
|
235
|
+
return "";
|
|
236
|
+
}
|
|
237
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "success_url", [_dec13], {
|
|
222
238
|
configurable: true,
|
|
223
239
|
enumerable: true,
|
|
224
240
|
writable: true,
|
|
225
241
|
initializer: function () {
|
|
226
242
|
return "";
|
|
227
243
|
}
|
|
228
|
-
}),
|
|
244
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "failure_url", [_dec14], {
|
|
229
245
|
configurable: true,
|
|
230
246
|
enumerable: true,
|
|
231
247
|
writable: true,
|
|
232
248
|
initializer: function () {
|
|
233
249
|
return "";
|
|
234
250
|
}
|
|
235
|
-
}),
|
|
251
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "cancel_url", [_dec15], {
|
|
236
252
|
configurable: true,
|
|
237
253
|
enumerable: true,
|
|
238
254
|
writable: true,
|
|
239
255
|
initializer: function () {
|
|
240
256
|
return "";
|
|
241
257
|
}
|
|
242
|
-
}),
|
|
258
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "transactions", [_dec16], {
|
|
243
259
|
configurable: true,
|
|
244
260
|
enumerable: true,
|
|
245
261
|
writable: true,
|
|
246
262
|
initializer: null
|
|
247
|
-
}),
|
|
263
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "open_banking_enabled", [_dec17], {
|
|
248
264
|
configurable: true,
|
|
249
265
|
enumerable: true,
|
|
250
266
|
writable: true,
|
|
251
267
|
initializer: null
|
|
252
|
-
}),
|
|
268
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "card_enabled", [_dec18], {
|
|
253
269
|
configurable: true,
|
|
254
270
|
enumerable: true,
|
|
255
271
|
writable: true,
|
|
256
272
|
initializer: null
|
|
257
|
-
}),
|
|
273
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "moto", [_dec19], {
|
|
258
274
|
configurable: true,
|
|
259
275
|
enumerable: true,
|
|
260
276
|
writable: true,
|
|
261
277
|
initializer: null
|
|
262
|
-
}),
|
|
278
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "expires_at", [_dec20], {
|
|
263
279
|
configurable: true,
|
|
264
280
|
enumerable: true,
|
|
265
281
|
writable: true,
|
|
266
282
|
initializer: function () {
|
|
267
283
|
return this.generateExpiryDate();
|
|
268
284
|
}
|
|
269
|
-
}),
|
|
285
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec21], {
|
|
270
286
|
configurable: true,
|
|
271
287
|
enumerable: true,
|
|
272
288
|
writable: true,
|
|
273
289
|
initializer: function () {
|
|
274
290
|
return "";
|
|
275
291
|
}
|
|
276
|
-
}),
|
|
292
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec22], {
|
|
277
293
|
configurable: true,
|
|
278
294
|
enumerable: true,
|
|
279
295
|
writable: true,
|
|
280
296
|
initializer: null
|
|
281
|
-
}),
|
|
297
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec23], {
|
|
282
298
|
configurable: true,
|
|
283
299
|
enumerable: true,
|
|
284
300
|
writable: true,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class bookingGross1656410109048 {
|
|
4
|
+
name = 'bookingGross1656410109048'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ADD "gross_amount" integer`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" DROP COLUMN "gross_amount"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class bookingNullables1656411834978 {
|
|
4
|
+
name = 'bookingNullables1656411834978'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ALTER COLUMN "email" DROP NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ALTER COLUMN "email" SET NOT NULL`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class paymentLinkDescriptions1656341396697 {
|
|
4
|
+
name = 'paymentLinkDescriptions1656341396697'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "email" character varying(250)`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "description" TYPE varchar(2048)`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ALTER COLUMN "email" TYPE varchar(250)`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async down(queryRunner) {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "description" TYPE varchar(250)`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "agent_data"."booking" ALTER COLUMN "email" TYPE varchar(150)`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "email"`);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class test1656341762925 {
|
|
4
|
+
name = 'test1656341762925'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "description" DROP NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ALTER COLUMN "description" SET NOT NULL`);
|
|
12
|
+
}
|
|
13
|
+
}
|