| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function up() |
||
| 27 | { |
||
| 28 | $db = $this->db( 'db-price' ); |
||
| 29 | |||
| 30 | if( !$db->hasTable( 'mshop_price' ) ) { |
||
| 31 | return; |
||
| 32 | } |
||
| 33 | |||
| 34 | $this->info( 'Migrating taxrate name in price table', 'v' ); |
||
| 35 | |||
| 36 | $db->stmt()->update( 'mshop_price' ) |
||
| 37 | ->set( 'taxrate', 'REPLACE(' . $db->qi( 'taxrate' ) . ', \'{"":\', \'{"tax":\')' ) |
||
| 38 | ->where( $db->qi( 'taxrate' ) . ' LIKE \'{"":%\'' ) |
||
| 39 | ->execute(); |
||
| 40 | } |
||
| 42 |