@felloh-org/lambda-wrapper 1.1.6 → 1.1.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/entity/scratch/abta-members/index.js +150 -25
- package/dist/entity/user/organisation/index.js +28 -16
- package/dist/migration/scratch/1651183064044-scratch_abta_members_fix.js +19 -0
- package/dist/migration/scratch/1651183188924-scratch_abta_members_length_fix.js +19 -0
- package/dist/migration/scratch/1651187490208-scratch_abta_members_financials.js +23 -0
- package/dist/migration/scratch/1651223911459-scratch_abta_members_company_number.js +13 -0
- package/dist/migration/scratch/1651225059114-scratch_abta_members_atol.js +14 -0
- package/dist/migration/scratch/1651225316981-scratch_abta_members_atol_fix.js +15 -0
- package/dist/migration/scratch/1651241112556-scratch_abta_members_atol_group.js +13 -0
- package/dist/migration/scratch/1651241351537-scratch_abta_members_atol_tta_id.js +15 -0
- package/dist/migration/user/1651582800086-organisation_image.js +13 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _typeorm = require("typeorm");
|
|
9
9
|
|
|
10
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23;
|
|
11
11
|
|
|
12
12
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
13
|
|
|
@@ -40,7 +40,7 @@ let ABTAMembers = (_dec = (0, _typeorm.Entity)({
|
|
|
40
40
|
nullable: true
|
|
41
41
|
}), _dec8 = (0, _typeorm.Column)({
|
|
42
42
|
type: "varchar",
|
|
43
|
-
length: "
|
|
43
|
+
length: "250",
|
|
44
44
|
nullable: true
|
|
45
45
|
}), _dec9 = (0, _typeorm.Column)({
|
|
46
46
|
type: "varchar",
|
|
@@ -48,13 +48,52 @@ let ABTAMembers = (_dec = (0, _typeorm.Entity)({
|
|
|
48
48
|
nullable: true
|
|
49
49
|
}), _dec10 = (0, _typeorm.Column)({
|
|
50
50
|
type: "varchar",
|
|
51
|
-
length: "
|
|
51
|
+
length: "100",
|
|
52
|
+
nullable: true
|
|
53
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
54
|
+
type: "varchar",
|
|
55
|
+
length: "50",
|
|
56
|
+
nullable: true
|
|
57
|
+
}), _dec12 = (0, _typeorm.Column)('json', {
|
|
58
|
+
nullable: true
|
|
59
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
60
|
+
type: "varchar",
|
|
61
|
+
length: "150",
|
|
62
|
+
nullable: true
|
|
63
|
+
}), _dec14 = (0, _typeorm.Column)({
|
|
64
|
+
type: "varchar",
|
|
65
|
+
length: "150",
|
|
66
|
+
nullable: true
|
|
67
|
+
}), _dec15 = (0, _typeorm.Column)({
|
|
68
|
+
type: "varchar",
|
|
69
|
+
length: "50",
|
|
70
|
+
nullable: true
|
|
71
|
+
}), _dec16 = (0, _typeorm.Column)({
|
|
72
|
+
type: "varchar",
|
|
73
|
+
length: "250",
|
|
74
|
+
nullable: true
|
|
75
|
+
}), _dec17 = (0, _typeorm.Column)({
|
|
76
|
+
type: "int",
|
|
77
|
+
nullable: true
|
|
78
|
+
}), _dec18 = (0, _typeorm.Column)('json', {
|
|
79
|
+
nullable: true
|
|
80
|
+
}), _dec19 = (0, _typeorm.Column)({
|
|
81
|
+
type: "int",
|
|
82
|
+
nullable: true
|
|
83
|
+
}), _dec20 = (0, _typeorm.Column)({
|
|
84
|
+
type: "int",
|
|
85
|
+
nullable: true
|
|
86
|
+
}), _dec21 = (0, _typeorm.Column)({
|
|
87
|
+
type: "int",
|
|
88
|
+
nullable: true
|
|
89
|
+
}), _dec22 = (0, _typeorm.Column)({
|
|
90
|
+
type: "int",
|
|
52
91
|
nullable: true
|
|
53
|
-
}),
|
|
54
|
-
|
|
92
|
+
}), _dec23 = (0, _typeorm.Column)({
|
|
93
|
+
type: "int",
|
|
55
94
|
nullable: true
|
|
56
|
-
}),
|
|
57
|
-
|
|
95
|
+
}), _dec24 = (0, _typeorm.Column)({
|
|
96
|
+
type: "int",
|
|
58
97
|
nullable: true
|
|
59
98
|
}), _dec(_class = (_class2 = class ABTAMembers {
|
|
60
99
|
constructor() {
|
|
@@ -62,23 +101,47 @@ let ABTAMembers = (_dec = (0, _typeorm.Entity)({
|
|
|
62
101
|
|
|
63
102
|
_initializerDefineProperty(this, "company_name", _descriptor2, this);
|
|
64
103
|
|
|
65
|
-
_initializerDefineProperty(this, "
|
|
104
|
+
_initializerDefineProperty(this, "company_number", _descriptor3, this);
|
|
66
105
|
|
|
67
|
-
_initializerDefineProperty(this, "
|
|
106
|
+
_initializerDefineProperty(this, "address_1", _descriptor4, this);
|
|
68
107
|
|
|
69
|
-
_initializerDefineProperty(this, "
|
|
108
|
+
_initializerDefineProperty(this, "address_2", _descriptor5, this);
|
|
70
109
|
|
|
71
|
-
_initializerDefineProperty(this, "
|
|
110
|
+
_initializerDefineProperty(this, "address_3", _descriptor6, this);
|
|
72
111
|
|
|
73
|
-
_initializerDefineProperty(this, "
|
|
112
|
+
_initializerDefineProperty(this, "city", _descriptor7, this);
|
|
74
113
|
|
|
75
|
-
_initializerDefineProperty(this, "
|
|
114
|
+
_initializerDefineProperty(this, "postcode", _descriptor8, this);
|
|
76
115
|
|
|
77
|
-
_initializerDefineProperty(this, "
|
|
116
|
+
_initializerDefineProperty(this, "website", _descriptor9, this);
|
|
78
117
|
|
|
79
|
-
_initializerDefineProperty(this, "
|
|
118
|
+
_initializerDefineProperty(this, "telephone", _descriptor10, this);
|
|
80
119
|
|
|
81
|
-
_initializerDefineProperty(this, "
|
|
120
|
+
_initializerDefineProperty(this, "abta_number", _descriptor11, this);
|
|
121
|
+
|
|
122
|
+
_initializerDefineProperty(this, "atol_number", _descriptor12, this);
|
|
123
|
+
|
|
124
|
+
_initializerDefineProperty(this, "group", _descriptor13, this);
|
|
125
|
+
|
|
126
|
+
_initializerDefineProperty(this, "tta_id", _descriptor14, this);
|
|
127
|
+
|
|
128
|
+
_initializerDefineProperty(this, "email", _descriptor15, this);
|
|
129
|
+
|
|
130
|
+
_initializerDefineProperty(this, "atol_volume", _descriptor16, this);
|
|
131
|
+
|
|
132
|
+
_initializerDefineProperty(this, "brands", _descriptor17, this);
|
|
133
|
+
|
|
134
|
+
_initializerDefineProperty(this, "totalAssets", _descriptor18, this);
|
|
135
|
+
|
|
136
|
+
_initializerDefineProperty(this, "netWorth", _descriptor19, this);
|
|
137
|
+
|
|
138
|
+
_initializerDefineProperty(this, "totalLiabilities", _descriptor20, this);
|
|
139
|
+
|
|
140
|
+
_initializerDefineProperty(this, "turnover", _descriptor21, this);
|
|
141
|
+
|
|
142
|
+
_initializerDefineProperty(this, "grossProfit", _descriptor22, this);
|
|
143
|
+
|
|
144
|
+
_initializerDefineProperty(this, "numberOfEmployees", _descriptor23, this);
|
|
82
145
|
}
|
|
83
146
|
|
|
84
147
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -95,61 +158,123 @@ let ABTAMembers = (_dec = (0, _typeorm.Entity)({
|
|
|
95
158
|
initializer: function () {
|
|
96
159
|
return "";
|
|
97
160
|
}
|
|
98
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
161
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "company_number", [_dec4], {
|
|
162
|
+
configurable: true,
|
|
163
|
+
enumerable: true,
|
|
164
|
+
writable: true,
|
|
165
|
+
initializer: function () {
|
|
166
|
+
return "";
|
|
167
|
+
}
|
|
168
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "address_1", [_dec5], {
|
|
99
169
|
configurable: true,
|
|
100
170
|
enumerable: true,
|
|
101
171
|
writable: true,
|
|
102
172
|
initializer: function () {
|
|
103
173
|
return "";
|
|
104
174
|
}
|
|
105
|
-
}),
|
|
175
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "address_2", [_dec6], {
|
|
106
176
|
configurable: true,
|
|
107
177
|
enumerable: true,
|
|
108
178
|
writable: true,
|
|
109
179
|
initializer: function () {
|
|
110
180
|
return "";
|
|
111
181
|
}
|
|
112
|
-
}),
|
|
182
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "address_3", [_dec7], {
|
|
113
183
|
configurable: true,
|
|
114
184
|
enumerable: true,
|
|
115
185
|
writable: true,
|
|
116
186
|
initializer: function () {
|
|
117
187
|
return "";
|
|
118
188
|
}
|
|
119
|
-
}),
|
|
189
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "city", [_dec8], {
|
|
120
190
|
configurable: true,
|
|
121
191
|
enumerable: true,
|
|
122
192
|
writable: true,
|
|
123
193
|
initializer: function () {
|
|
124
194
|
return "";
|
|
125
195
|
}
|
|
126
|
-
}),
|
|
196
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "postcode", [_dec9], {
|
|
127
197
|
configurable: true,
|
|
128
198
|
enumerable: true,
|
|
129
199
|
writable: true,
|
|
130
200
|
initializer: function () {
|
|
131
201
|
return "";
|
|
132
202
|
}
|
|
133
|
-
}),
|
|
203
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "website", [_dec10], {
|
|
134
204
|
configurable: true,
|
|
135
205
|
enumerable: true,
|
|
136
206
|
writable: true,
|
|
137
207
|
initializer: function () {
|
|
138
208
|
return "";
|
|
139
209
|
}
|
|
140
|
-
}),
|
|
210
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "telephone", [_dec11], {
|
|
141
211
|
configurable: true,
|
|
142
212
|
enumerable: true,
|
|
143
213
|
writable: true,
|
|
144
214
|
initializer: function () {
|
|
145
215
|
return "";
|
|
146
216
|
}
|
|
147
|
-
}),
|
|
217
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "abta_number", [_dec12], {
|
|
218
|
+
configurable: true,
|
|
219
|
+
enumerable: true,
|
|
220
|
+
writable: true,
|
|
221
|
+
initializer: null
|
|
222
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "atol_number", [_dec13], {
|
|
223
|
+
configurable: true,
|
|
224
|
+
enumerable: true,
|
|
225
|
+
writable: true,
|
|
226
|
+
initializer: null
|
|
227
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "group", [_dec14], {
|
|
228
|
+
configurable: true,
|
|
229
|
+
enumerable: true,
|
|
230
|
+
writable: true,
|
|
231
|
+
initializer: null
|
|
232
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "tta_id", [_dec15], {
|
|
233
|
+
configurable: true,
|
|
234
|
+
enumerable: true,
|
|
235
|
+
writable: true,
|
|
236
|
+
initializer: null
|
|
237
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "email", [_dec16], {
|
|
238
|
+
configurable: true,
|
|
239
|
+
enumerable: true,
|
|
240
|
+
writable: true,
|
|
241
|
+
initializer: null
|
|
242
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "atol_volume", [_dec17], {
|
|
243
|
+
configurable: true,
|
|
244
|
+
enumerable: true,
|
|
245
|
+
writable: true,
|
|
246
|
+
initializer: null
|
|
247
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "brands", [_dec18], {
|
|
248
|
+
configurable: true,
|
|
249
|
+
enumerable: true,
|
|
250
|
+
writable: true,
|
|
251
|
+
initializer: null
|
|
252
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "totalAssets", [_dec19], {
|
|
253
|
+
configurable: true,
|
|
254
|
+
enumerable: true,
|
|
255
|
+
writable: true,
|
|
256
|
+
initializer: null
|
|
257
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "netWorth", [_dec20], {
|
|
258
|
+
configurable: true,
|
|
259
|
+
enumerable: true,
|
|
260
|
+
writable: true,
|
|
261
|
+
initializer: null
|
|
262
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "totalLiabilities", [_dec21], {
|
|
263
|
+
configurable: true,
|
|
264
|
+
enumerable: true,
|
|
265
|
+
writable: true,
|
|
266
|
+
initializer: null
|
|
267
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "turnover", [_dec22], {
|
|
268
|
+
configurable: true,
|
|
269
|
+
enumerable: true,
|
|
270
|
+
writable: true,
|
|
271
|
+
initializer: null
|
|
272
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "grossProfit", [_dec23], {
|
|
148
273
|
configurable: true,
|
|
149
274
|
enumerable: true,
|
|
150
275
|
writable: true,
|
|
151
276
|
initializer: null
|
|
152
|
-
}),
|
|
277
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "numberOfEmployees", [_dec24], {
|
|
153
278
|
configurable: true,
|
|
154
279
|
enumerable: true,
|
|
155
280
|
writable: true,
|
|
@@ -9,7 +9,7 @@ var _typeorm = require("typeorm");
|
|
|
9
9
|
|
|
10
10
|
var _user = _interopRequireDefault(require("../user"));
|
|
11
11
|
|
|
12
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;
|
|
12
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
@@ -28,7 +28,11 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
28
28
|
}), _dec4 = (0, _typeorm.Column)({
|
|
29
29
|
type: "varchar",
|
|
30
30
|
length: "150"
|
|
31
|
-
}), _dec5 = (0, _typeorm.
|
|
31
|
+
}), _dec5 = (0, _typeorm.Column)({
|
|
32
|
+
type: "varchar",
|
|
33
|
+
length: "250",
|
|
34
|
+
nullable: true
|
|
35
|
+
}), _dec6 = (0, _typeorm.CreateDateColumn)(), _dec7 = (0, _typeorm.UpdateDateColumn)(), _dec8 = (0, _typeorm.DeleteDateColumn)(), _dec9 = (0, _typeorm.ManyToMany)(() => _user.default, users => users.organisations), _dec10 = (0, _typeorm.JoinTable)({
|
|
32
36
|
name: "user_organisation",
|
|
33
37
|
schema: "user",
|
|
34
38
|
joinColumn: {
|
|
@@ -39,23 +43,25 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
39
43
|
name: "user_id",
|
|
40
44
|
referencedColumnName: "id"
|
|
41
45
|
}
|
|
42
|
-
}),
|
|
46
|
+
}), _dec11 = (0, _typeorm.TreeParent)(), _dec12 = (0, _typeorm.TreeChildren)(), _dec(_class = _dec2(_class = (_class2 = class Organisation {
|
|
43
47
|
constructor() {
|
|
44
48
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
45
49
|
|
|
46
50
|
_initializerDefineProperty(this, "name", _descriptor2, this);
|
|
47
51
|
|
|
48
|
-
_initializerDefineProperty(this, "
|
|
52
|
+
_initializerDefineProperty(this, "image", _descriptor3, this);
|
|
53
|
+
|
|
54
|
+
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
49
55
|
|
|
50
|
-
_initializerDefineProperty(this, "updated_at",
|
|
56
|
+
_initializerDefineProperty(this, "updated_at", _descriptor5, this);
|
|
51
57
|
|
|
52
|
-
_initializerDefineProperty(this, "deleted_at",
|
|
58
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor6, this);
|
|
53
59
|
|
|
54
|
-
_initializerDefineProperty(this, "users",
|
|
60
|
+
_initializerDefineProperty(this, "users", _descriptor7, this);
|
|
55
61
|
|
|
56
|
-
_initializerDefineProperty(this, "parent",
|
|
62
|
+
_initializerDefineProperty(this, "parent", _descriptor8, this);
|
|
57
63
|
|
|
58
|
-
_initializerDefineProperty(this, "children",
|
|
64
|
+
_initializerDefineProperty(this, "children", _descriptor9, this);
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
propgate(id, name) {
|
|
@@ -66,7 +72,8 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
66
72
|
getPublicCompactData() {
|
|
67
73
|
return {
|
|
68
74
|
id: this.id,
|
|
69
|
-
name: this.name
|
|
75
|
+
name: this.name,
|
|
76
|
+
image: this.image
|
|
70
77
|
};
|
|
71
78
|
}
|
|
72
79
|
|
|
@@ -80,32 +87,37 @@ let Organisation = (_dec = (0, _typeorm.Entity)({
|
|
|
80
87
|
enumerable: true,
|
|
81
88
|
writable: true,
|
|
82
89
|
initializer: null
|
|
83
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
90
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "image", [_dec5], {
|
|
91
|
+
configurable: true,
|
|
92
|
+
enumerable: true,
|
|
93
|
+
writable: true,
|
|
94
|
+
initializer: null
|
|
95
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec6], {
|
|
84
96
|
configurable: true,
|
|
85
97
|
enumerable: true,
|
|
86
98
|
writable: true,
|
|
87
99
|
initializer: null
|
|
88
|
-
}),
|
|
100
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec7], {
|
|
89
101
|
configurable: true,
|
|
90
102
|
enumerable: true,
|
|
91
103
|
writable: true,
|
|
92
104
|
initializer: null
|
|
93
|
-
}),
|
|
105
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec8], {
|
|
94
106
|
configurable: true,
|
|
95
107
|
enumerable: true,
|
|
96
108
|
writable: true,
|
|
97
109
|
initializer: null
|
|
98
|
-
}),
|
|
110
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "users", [_dec9, _dec10], {
|
|
99
111
|
configurable: true,
|
|
100
112
|
enumerable: true,
|
|
101
113
|
writable: true,
|
|
102
114
|
initializer: null
|
|
103
|
-
}),
|
|
115
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "parent", [_dec11], {
|
|
104
116
|
configurable: true,
|
|
105
117
|
enumerable: true,
|
|
106
118
|
writable: true,
|
|
107
119
|
initializer: null
|
|
108
|
-
}),
|
|
120
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "children", [_dec12], {
|
|
109
121
|
configurable: true,
|
|
110
122
|
enumerable: true,
|
|
111
123
|
writable: true,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class scratchAbtaMembersFix1651183064044 {
|
|
4
|
+
name = 'scratchAbtaMembersFix1651183064044'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "abta_number"`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "abta_number" json`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "brands"`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "brands" json`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async down(queryRunner) {
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "brands"`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "brands" text array`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "abta_number"`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "abta_number" text array`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class scratchAbtaMembersLengthFix1651183188924 {
|
|
4
|
+
name = 'scratchAbtaMembersLengthFix1651183188924'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "website"`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "website" character varying(100)`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "telephone"`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "telephone" character varying(50)`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async down(queryRunner) {
|
|
14
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "telephone"`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "telephone" character varying(20)`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "website"`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "website" character varying(20)`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class scratchAbtaMembersFinancials1651187490208 {
|
|
4
|
+
name = 'scratchAbtaMembersFinancials1651187490208'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "totalAssets" integer`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "netWorth" integer`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "totalLiabilities" integer`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "turnover" integer`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "grossProfit" integer`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "numberOfEmployees" integer`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
async down(queryRunner) {
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "numberOfEmployees"`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "grossProfit"`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "turnover"`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "totalLiabilities"`);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "netWorth"`);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "totalAssets"`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class scratchAbtaMembersCompanyNumber1651223911459 {
|
|
4
|
+
name = 'scratchAbtaMembersCompanyNumber1651223911459'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "company_number" character varying(250)`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "company_number"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class scratchAbtaMembersAtol1651225059114 {
|
|
4
|
+
name = 'scratchAbtaMembersAtol1651225059114'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "atol_number" integer`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "atol_volume" integer`);}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "atol_volume"`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "atol_number"`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class scratchAbtaMembersAtolFix1651225316981 {
|
|
4
|
+
name = 'scratchAbtaMembersAtolFix1651225316981'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "atol_number"`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "atol_number" character varying(150)`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "atol_number"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "atol_number" integer`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class scratchAbtaMembersAtolGroup1651241112556 {
|
|
4
|
+
name = 'scratchAbtaMembersAtolGroup1651241112556'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "group" character varying(150)`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "group"`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class scratchAbtaMembersAtolTtaId1651241351537 {
|
|
4
|
+
name = 'scratchAbtaMembersAtolTtaId1651241351537'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "tta_id" character varying(50)`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" ADD "email" character varying(250)`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "email"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "scratch"."abta_members" DROP COLUMN "tta_id"`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class organisationImage1651582800086 {
|
|
4
|
+
name = 'organisationImage1651582800086'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "image" character varying(250)`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "image"`);
|
|
12
|
+
}
|
|
13
|
+
}
|