1 | <?php |
||
15 | class CustomerDropLocaleConstraintsTypo3 extends \Aimeos\MW\Setup\Task\Base |
||
16 | { |
||
17 | private $mysql = array( |
||
18 | 'fe_users_list_type' => array( |
||
19 | 'fk_t3feulity_siteid' => 'ALTER TABLE "fe_users_list_type" DROP FOREIGN KEY "fk_t3feulity_siteid"', |
||
20 | ), |
||
21 | 'fe_users_list' => array( |
||
22 | 'fk_t3feuli_siteid' => 'ALTER TABLE "fe_users_list" DROP FOREIGN KEY "fk_t3feuli_siteid"', |
||
23 | ), |
||
24 | 'fe_users_address' => array( |
||
25 | 'fk_t3feuad_siteid' => 'ALTER TABLE "fe_users_address" DROP FOREIGN KEY "fk_t3feuad_siteid"', |
||
26 | 'fk_t3feuad_langid' => 'ALTER TABLE "fe_users_address" DROP FOREIGN KEY "fk_t3feuad_langid"', |
||
27 | ), |
||
28 | ); |
||
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 string[] List of task names |
||
48 | */ |
||
49 | public function getPostDependencies() |
||
53 | |||
54 | |||
55 | /** |
||
56 | * Executes the task for MySQL databases. |
||
57 | */ |
||
58 | protected function mysql() |
||
62 | |||
63 | |||
64 | /** |
||
65 | * Drops local constraints. |
||
66 | * |
||
67 | * @param array $stmts List of SQL statements to execute for adding columns |
||
68 | */ |
||
69 | protected function process( array $stmts ) |
||
95 | } |