Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function up() |
||
21 | { |
||
22 | $this->info( 'Rename mshop_customer_group to mshop_group', 'vv' ); |
||
23 | |||
24 | $db = $this->db( 'db-customer' ); |
||
25 | |||
26 | if( $db->hasTable( 'mshop_customer_group' ) ) |
||
27 | { |
||
28 | $db->dropIndex( 'mshop_customer_group', 'pk_mscusgr_id' ) |
||
29 | ->dropIndex( 'mshop_customer_group', 'unq_mscusgr_code_sid' ) |
||
30 | ->dropIndex( 'mshop_customer_group', 'idx_mscusgr_label_sid' ) |
||
31 | ->renameTable( 'mshop_customer_group', 'mshop_group' ); |
||
32 | } |
||
33 | |||
34 | $this->update( 'mshop_customer_list' ); |
||
35 | } |
||
61 |