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