Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function up() |
||
21 | { |
||
22 | $this->info( 'Migrating taxrate name in price table', 'vv' ); |
||
23 | |||
24 | $db = $this->db( 'db-price' ); |
||
25 | $db->stmt()->update( 'mshop_price' ) |
||
26 | ->set( 'taxrate', 'REPLACE(' . $db->qi( 'taxrate' ) . ', \'{"":\', \'{"tax":\')' ) |
||
27 | ->where( $db->qi( 'taxrate' ) . ' LIKE \'{"":%\'' ) |
||
28 | ->execute(); |
||
29 | } |
||
31 |