1 | <?php |
||
15 | class TypesMigrateColumnsLaravel extends \Aimeos\MW\Setup\Task\TypesMigrateColumns |
||
16 | { |
||
17 | private $tables = [ |
||
18 | 'db-customer' => ['users_list', 'users_property'], |
||
19 | ]; |
||
20 | |||
21 | private $constraints = [ |
||
22 | 'db-customer' => ['users_list' => 'unq_lvuli_sid_dm_rid_tid_pid', 'users_property' => 'unq_lvupr_sid_tid_lid_value'], |
||
23 | ]; |
||
24 | |||
25 | private $migrations = [ |
||
26 | 'db-customer' => [ |
||
27 | 'users_list' => 'UPDATE "users_list" SET "type" = ( SELECT "code" FROM "users_list_type" AS t WHERE t."id" = "typeid" AND t."domain" = "domain" LIMIT 1 ) WHERE "type" IS NULL', |
||
28 | 'users_property' => 'UPDATE "users_property" SET "type" = ( SELECT "code" FROM "users_property_type" AS t WHERE t."id" = "typeid" AND t."domain" = "domain" LIMIT 1 ) WHERE "type" IS NULL', |
||
29 | ], |
||
30 | ]; |
||
31 | |||
32 | |||
33 | /** |
||
34 | * Returns the list of task names which this task depends on. |
||
35 | * |
||
36 | * @return string[] List of task names |
||
37 | */ |
||
38 | public function getPreDependencies() |
||
42 | |||
43 | |||
44 | /** |
||
45 | * Returns the list of task names which depends on this task. |
||
46 | * |
||
47 | * @return array List of task names |
||
48 | */ |
||
49 | public function getPostDependencies() |
||
53 | |||
54 | |||
55 | /** |
||
56 | * Executes the task |
||
57 | */ |
||
58 | public function migrate() |
||
81 | } |