|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* @license LGPLv3, https://opensource.org/licenses/LGPL-3.0 |
|
5
|
|
|
* @copyright Aimeos (aimeos.org), 2022 |
|
6
|
|
|
*/ |
|
7
|
|
|
|
|
8
|
|
|
|
|
9
|
|
|
namespace Aimeos\Upscheme\Task; |
|
10
|
|
|
|
|
11
|
|
|
|
|
12
|
|
|
class PriceRemoveIndexes extends Base |
|
13
|
|
|
{ |
|
14
|
|
|
public function after() : array |
|
15
|
|
|
{ |
|
16
|
|
|
return ['Price']; |
|
17
|
|
|
} |
|
18
|
|
|
|
|
19
|
|
|
|
|
20
|
|
|
public function up() |
|
21
|
|
|
{ |
|
22
|
|
|
$this->info( 'Remove price indexes with siteid column first', 'vv' ); |
|
23
|
|
|
|
|
24
|
|
|
$this->db( 'db-price' ) |
|
25
|
|
|
->dropIndex( 'mshop_price', 'idx_mspri_sid_dom_currid' ) |
|
26
|
|
|
->dropIndex( 'mshop_price', 'idx_mspri_sid_dom_quantity' ) |
|
27
|
|
|
->dropIndex( 'mshop_price', 'idx_mspri_sid_dom_value' ) |
|
28
|
|
|
->dropIndex( 'mshop_price', 'idx_mspri_sid_dom_costs' ) |
|
29
|
|
|
->dropIndex( 'mshop_price', 'idx_mspri_sid_dom_rebate' ) |
|
30
|
|
|
->dropIndex( 'mshop_price_type', 'unq_msprity_sid_dom_code' ) |
|
31
|
|
|
->dropIndex( 'mshop_price_type', 'idx_msprity_sid_status_pos' ) |
|
32
|
|
|
->dropIndex( 'mshop_price_type', 'idx_msprity_sid_label' ) |
|
33
|
|
|
->dropIndex( 'mshop_price_type', 'idx_msprity_sid_code' ) |
|
34
|
|
|
->dropIndex( 'mshop_price_list', 'unq_msprili_pid_dm_sid_ty_rid' ) |
|
35
|
|
|
->dropIndex( 'mshop_price_list_type', 'unq_msprility_sid_dom_code' ) |
|
36
|
|
|
->dropIndex( 'mshop_price_list_type', 'idx_msprility_sid_status_pos' ) |
|
37
|
|
|
->dropIndex( 'mshop_price_list_type', 'idx_msprility_sid_label' ) |
|
38
|
|
|
->dropIndex( 'mshop_price_list_type', 'idx_msprility_sid_code' ) |
|
39
|
|
|
->dropIndex( 'mshop_price_property', 'unq_mspripr_sid_ty_lid_value' ) |
|
40
|
|
|
->dropIndex( 'mshop_price_property_type', 'unq_mspriprty_sid_dom_code' ) |
|
41
|
|
|
->dropIndex( 'mshop_price_property_type', 'idx_mspriprty_sid_status_pos' ) |
|
42
|
|
|
->dropIndex( 'mshop_price_property_type', 'idx_mspriprty_sid_label' ) |
|
43
|
|
|
->dropIndex( 'mshop_price_property_type', 'idx_mspriprty_sid_code' ); |
|
44
|
|
|
} |
|
45
|
|
|
} |
|
46
|
|
|
|