@@ -164,57 +164,57 @@ discard block |
||
164 | 164 | INSERT INTO |
165 | 165 | ds_parameter (id, key, value, enabled) |
166 | 166 | VALUES |
167 | - (1, \'ds_system.user.username\', \'"' . $data['system']['username'] . '"\', true), |
|
168 | - (2, \'ds_system.user.password\', \'"' . $data['system']['password'] . '"\', true), |
|
169 | - (3, \'ds_tenant.tenant.default\', \'"' . $data['tenant']['uuid'] . '"\', true); |
|
167 | + (1, \'ds_system.user.username\', \'"' . $data['system']['username'].'"\', true), |
|
168 | + (2, \'ds_system.user.password\', \'"' . $data['system']['password'].'"\', true), |
|
169 | + (3, \'ds_tenant.tenant.default\', \'"' . $data['tenant']['uuid'].'"\', true); |
|
170 | 170 | '); |
171 | 171 | |
172 | 172 | $this->addSql(' |
173 | 173 | INSERT INTO |
174 | 174 | ds_tenant (id, uuid, data, created_at, updated_at) |
175 | 175 | VALUES |
176 | - (1, \'' . $data['tenant']['uuid'] . '\', \'{}\', now(), now()); |
|
176 | + (1, \'' . $data['tenant']['uuid'].'\', \'{}\', now(), now()); |
|
177 | 177 | '); |
178 | 178 | |
179 | 179 | $this->addSql(' |
180 | 180 | INSERT INTO |
181 | 181 | ds_config (id, uuid, owner, owner_uuid, key, value, enabled, version, tenant, created_at, updated_at) |
182 | 182 | VALUES |
183 | - (1, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'ds_api.user.username\', \'"' . $data['user']['system']['username'] . '"\', true, 1, \'' . $data['tenant']['uuid'] . '\', now(), now()), |
|
184 | - (2, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'ds_api.user.password\', \'"' . $data['user']['system']['password'] . '"\', true, 1, \'' . $data['tenant']['uuid'] . '\', now(), now()), |
|
185 | - (3, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'ds_api.user.uuid\', \'"' . $data['user']['system']['uuid'] . '"\', true, 1, \'' . $data['tenant']['uuid'] . '\', now(), now()), |
|
186 | - (4, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'ds_api.user.roles\', \'[]\', true, 1, \'' . $data['tenant']['uuid'] . '\', now(), now()), |
|
187 | - (5, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'ds_api.user.identity.roles\', \'[]\', true, 1, \'' . $data['tenant']['uuid'] . '\', now(), now()), |
|
188 | - (6, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'ds_api.user.identity.type\', \'"System"\', true, 1, \'' . $data['tenant']['uuid'] . '\', now(), now()), |
|
189 | - (7, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'ds_api.user.identity.uuid\', \'"' . $data['identity']['system']['uuid'] . '"\', true, 1, \'' . $data['tenant']['uuid'] . '\', now(), now()), |
|
190 | - (8, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'ds_api.user.tenant\', \'"' . $data['tenant']['uuid'] . '"\', true, 1, \'' . $data['tenant']['uuid'] . '\', now(), now()); |
|
183 | + (1, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'ds_api.user.username\', \'"'.$data['user']['system']['username'].'"\', true, 1, \''.$data['tenant']['uuid'].'\', now(), now()), |
|
184 | + (2, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'ds_api.user.password\', \'"'.$data['user']['system']['password'].'"\', true, 1, \''.$data['tenant']['uuid'].'\', now(), now()), |
|
185 | + (3, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'ds_api.user.uuid\', \'"'.$data['user']['system']['uuid'].'"\', true, 1, \''.$data['tenant']['uuid'].'\', now(), now()), |
|
186 | + (4, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'ds_api.user.roles\', \'[]\', true, 1, \''.$data['tenant']['uuid'].'\', now(), now()), |
|
187 | + (5, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'ds_api.user.identity.roles\', \'[]\', true, 1, \''.$data['tenant']['uuid'].'\', now(), now()), |
|
188 | + (6, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'ds_api.user.identity.type\', \'"System"\', true, 1, \''.$data['tenant']['uuid'].'\', now(), now()), |
|
189 | + (7, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'ds_api.user.identity.uuid\', \'"'.$data['identity']['system']['uuid'].'"\', true, 1, \''.$data['tenant']['uuid'].'\', now(), now()), |
|
190 | + (8, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'ds_api.user.tenant\', \'"'.$data['tenant']['uuid'].'"\', true, 1, \''.$data['tenant']['uuid'].'\', now(), now()); |
|
191 | 191 | '); |
192 | 192 | |
193 | 193 | $this->addSql(' |
194 | 194 | INSERT INTO |
195 | 195 | ds_access (id, uuid, owner, owner_uuid, assignee, assignee_uuid, version, tenant, created_at, updated_at) |
196 | 196 | VALUES |
197 | - (1, \'' . Uuid::uuid4()->toString() . '\', \'System\', \'' . $data['identity']['system']['uuid'] . '\', \'System\', \'' . $data['identity']['system']['uuid'] . '\', 1, \'' . $data['tenant']['uuid'] . '\', now(), now()), |
|
198 | - (2, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'Staff\', \'' . $data['identity']['admin']['uuid'] . '\', 1, \'' . $data['tenant']['uuid'] . '\', now(), now()); |
|
197 | + (1, \'' . Uuid::uuid4()->toString().'\', \'System\', \''.$data['identity']['system']['uuid'].'\', \'System\', \''.$data['identity']['system']['uuid'].'\', 1, \''.$data['tenant']['uuid'].'\', now(), now()), |
|
198 | + (2, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'Staff\', \''.$data['identity']['admin']['uuid'].'\', 1, \''.$data['tenant']['uuid'].'\', now(), now()); |
|
199 | 199 | '); |
200 | 200 | |
201 | 201 | $this->addSql(' |
202 | 202 | INSERT INTO |
203 | 203 | ds_access_permission (id, access_id, scope, entity, entity_uuid, key, attributes, tenant) |
204 | 204 | VALUES |
205 | - (1, 1, \'generic\', NULL, NULL, \'entity\', \'["BROWSE","READ","EDIT","ADD","DELETE"]\', \'' . $data['tenant']['uuid'] . '\'), |
|
206 | - (2, 1, \'generic\', NULL, NULL, \'property\', \'["BROWSE","READ","EDIT"]\', \'' . $data['tenant']['uuid'] . '\'), |
|
207 | - (3, 1, \'generic\', NULL, NULL, \'generic\', \'["BROWSE","READ","EDIT","ADD","DELETE","EXECUTE"]\', \'' . $data['tenant']['uuid'] . '\'), |
|
208 | - (4, 2, \'generic\', NULL, NULL, \'entity\', \'["BROWSE","READ","EDIT","ADD","DELETE"]\', \'' . $data['tenant']['uuid'] . '\'), |
|
209 | - (5, 2, \'generic\', NULL, NULL, \'property\', \'["BROWSE","READ","EDIT"]\', \'' . $data['tenant']['uuid'] . '\'), |
|
210 | - (6, 2, \'generic\', NULL, NULL, \'generic\', \'["BROWSE","READ","EDIT","ADD","DELETE","EXECUTE"]\', \'' . $data['tenant']['uuid'] . '\'); |
|
205 | + (1, 1, \'generic\', NULL, NULL, \'entity\', \'["BROWSE","READ","EDIT","ADD","DELETE"]\', \'' . $data['tenant']['uuid'].'\'), |
|
206 | + (2, 1, \'generic\', NULL, NULL, \'property\', \'["BROWSE","READ","EDIT"]\', \'' . $data['tenant']['uuid'].'\'), |
|
207 | + (3, 1, \'generic\', NULL, NULL, \'generic\', \'["BROWSE","READ","EDIT","ADD","DELETE","EXECUTE"]\', \'' . $data['tenant']['uuid'].'\'), |
|
208 | + (4, 2, \'generic\', NULL, NULL, \'entity\', \'["BROWSE","READ","EDIT","ADD","DELETE"]\', \'' . $data['tenant']['uuid'].'\'), |
|
209 | + (5, 2, \'generic\', NULL, NULL, \'property\', \'["BROWSE","READ","EDIT"]\', \'' . $data['tenant']['uuid'].'\'), |
|
210 | + (6, 2, \'generic\', NULL, NULL, \'generic\', \'["BROWSE","READ","EDIT","ADD","DELETE","EXECUTE"]\', \'' . $data['tenant']['uuid'].'\'); |
|
211 | 211 | '); |
212 | 212 | |
213 | 213 | $this->addSql(' |
214 | 214 | INSERT INTO |
215 | 215 | app_bu (id, uuid, owner, owner_uuid, version, tenant, created_at, updated_at, deleted_at) |
216 | 216 | VALUES |
217 | - (1, \'' . $data['business_unit']['administration']['uuid'] . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', 1, \'' . $data['tenant']['uuid'] . '\', now(), now(), NULL); |
|
217 | + (1, \'' . $data['business_unit']['administration']['uuid'].'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', 1, \''.$data['tenant']['uuid'].'\', now(), now(), NULL); |
|
218 | 218 | '); |
219 | 219 | |
220 | 220 | $this->addSql(' |
@@ -228,21 +228,21 @@ discard block |
||
228 | 228 | INSERT INTO |
229 | 229 | app_system (id, uuid, owner, owner_uuid, version, tenant, created_at, updated_at, deleted_at) |
230 | 230 | VALUES |
231 | - (1, \'' . $data['identity']['system']['uuid'] . '\', \'System\', \'' . $data['identity']['system']['uuid'] . '\', 1, \'' . $data['tenant']['uuid'] . '\', now(), now(), NULL); |
|
231 | + (1, \'' . $data['identity']['system']['uuid'].'\', \'System\', \''.$data['identity']['system']['uuid'].'\', 1, \''.$data['tenant']['uuid'].'\', now(), now(), NULL); |
|
232 | 232 | '); |
233 | 233 | |
234 | 234 | $this->addSql(' |
235 | 235 | INSERT INTO |
236 | 236 | app_staff (id, uuid, owner, owner_uuid, version, tenant, created_at, updated_at, deleted_at) |
237 | 237 | VALUES |
238 | - (1, \'' . $data['identity']['admin']['uuid'] . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', 1, \'' . $data['tenant']['uuid'] . '\', now(), now(), NULL); |
|
238 | + (1, \'' . $data['identity']['admin']['uuid'].'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', 1, \''.$data['tenant']['uuid'].'\', now(), now(), NULL); |
|
239 | 239 | '); |
240 | 240 | |
241 | 241 | $this->addSql(' |
242 | 242 | INSERT INTO |
243 | 243 | app_staff_persona (id, staff_id, uuid, owner, owner_uuid, data, version, tenant, created_at, updated_at, deleted_at) |
244 | 244 | VALUES |
245 | - (1, 1, \'' . Uuid::uuid4()->toString() . '\', \'BusinessUnit\', \'' . $data['business_unit']['administration']['uuid'] . '\', \'{}\', 1, \'' . $data['tenant']['uuid'] . '\', now(), now(), NULL); |
|
245 | + (1, 1, \'' . Uuid::uuid4()->toString().'\', \'BusinessUnit\', \''.$data['business_unit']['administration']['uuid'].'\', \'{}\', 1, \''.$data['tenant']['uuid'].'\', now(), now(), NULL); |
|
246 | 246 | '); |
247 | 247 | |
248 | 248 | $this->addSql(' |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | break; |
256 | 256 | |
257 | 257 | default: |
258 | - $this->abortIf(true,'Migration cannot be executed on "'.$platform.'".'); |
|
258 | + $this->abortIf(true, 'Migration cannot be executed on "'.$platform.'".'); |
|
259 | 259 | break; |
260 | 260 | } |
261 | 261 | } |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | break; |
357 | 357 | |
358 | 358 | default: |
359 | - $this->abortIf(true,'Migration cannot be executed on "'.$platform.'".'); |
|
359 | + $this->abortIf(true, 'Migration cannot be executed on "'.$platform.'".'); |
|
360 | 360 | break; |
361 | 361 | } |
362 | 362 | } |