Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function up() |
||
32 | { |
||
33 | $db = $this->db( 'db-customer' ); |
||
34 | |||
35 | if( !$db->hasColumn( 'users', 'id' ) || $db->table( 'users' )->col( 'id' )->type() === 'bigint' ) { |
||
36 | return; |
||
37 | } |
||
38 | |||
39 | $this->info( sprintf( 'Remove constraints in users related tables' ), 'vv' ); |
||
40 | |||
41 | $db->dropForeign( 'users_address', 'fk_lvuad_pid' ); |
||
42 | $db->dropForeign( 'users_property', 'fk_lvupr_pid' ); |
||
43 | $db->dropForeign( 'users_list', 'fk_lvuli_pid' ); |
||
44 | } |
||
46 |