Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function up() |
||
21 | { |
||
22 | $db = $this->db( 'db-locale' ); |
||
23 | |||
24 | if( !$db->hasColumn( 'mshop_locale_site', 'supplierid' ) ) { |
||
25 | return; |
||
26 | } |
||
27 | |||
28 | $this->info( 'Rename "supplierid" column in "mshop_locale_site"', 'v' ); |
||
29 | |||
30 | $db->renameColumn( 'mshop_locale_site', 'supplierid', 'refid' ); |
||
31 | } |
||
33 |