CustomerRemoveIndexesFosuser::after()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2022-2025
6
 */
7
8
9
namespace Aimeos\Upscheme\Task;
10
11
12
class CustomerRemoveIndexesFosuser extends Base
13
{
14
	public function after() : array
15
	{
16
		return ['Customer'];
17
	}
18
19
20
	public function up()
21
	{
22
		$this->info( 'Remove customer indexes with siteid column first', 'vv' );
23
24
		$this->db( 'db-customer' )
25
			->dropIndex( 'fos_user', 'idx_fosus_langid' )
26
			->dropIndex( 'fos_user', 'idx_fosus_lastname' )
27
			->dropIndex( 'fos_user', 'idx_fosus_address1' )
28
			->dropIndex( 'fos_user_address', 'idx_fosad_pid' )
29
			->dropIndex( 'fos_user_address', 'idx_fosad_address1' )
30
			->dropIndex( 'fos_user_address', 'idx_fosad_langid' )
31
			->dropIndex( 'fos_user_address', 'idx_fosad_langid' )
32
			->dropIndex( 'fos_user_address', 'idx_fosad_langid' )
33
			->dropIndex( 'fos_user_list', 'unq_fosli_pid_dm_sid_ty_rid' )
34
			->dropIndex( 'fos_user_list_type', 'unq_foslity_sid_dom_code' )
35
			->dropIndex( 'fos_user_list_type', 'idx_foslity_sid_status_pos' )
36
			->dropIndex( 'fos_user_list_type', 'idx_foslity_sid_label' )
37
			->dropIndex( 'fos_user_list_type', 'idx_foslity_sid_code' )
38
			->dropIndex( 'fos_user_property', 'fk_fospr_key_sid' )
39
			->dropIndex( 'fos_user_property', 'unq_fospr_sid_ty_lid_value' )
40
			->dropIndex( 'fos_user_property_type', 'unq_fosprty_sid_dom_code' )
41
			->dropIndex( 'fos_user_property_type', 'idx_fosprty_sid_status_pos' )
42
			->dropIndex( 'fos_user_property_type', 'idx_fosprty_sid_label' )
43
			->dropIndex( 'fos_user_property_type', 'idx_fosprty_sid_code' )
44
			->dropIndex( 'fos_user_property_type', 'fk_fospr_key_sid' );
45
	}
46
}
47