Completed
Push — master ( c7e8fc...016c28 )
by Jan
04:30
created
src/Migrations/Version20190812154222.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
 
31 31
         /** Migrate the part locations for parts with known instock */
32 32
         $this->addSql(
33
-            'INSERT INTO part_lots (id_part, id_store_location, amount, instock_unknown, last_modified, datetime_added) ' .
34
-                'SELECT parts.id, parts.id_storelocation,  parts.instock, 0, NOW(), NOW() FROM parts ' .
33
+            'INSERT INTO part_lots (id_part, id_store_location, amount, instock_unknown, last_modified, datetime_added) '.
34
+                'SELECT parts.id, parts.id_storelocation,  parts.instock, 0, NOW(), NOW() FROM parts '.
35 35
                 'WHERE parts.instock >= 0'
36 36
         );
37 37
 
38 38
         //Migrate part locations for parts with unknown instock
39 39
         $this->addSql(
40
-            'INSERT INTO part_lots (id_part, id_store_location, amount, instock_unknown, last_modified, datetime_added) ' .
41
-            'SELECT parts.id, parts.id_storelocation, 0, 1, NOW(), NOW() FROM parts ' .
40
+            'INSERT INTO part_lots (id_part, id_store_location, amount, instock_unknown, last_modified, datetime_added) '.
41
+            'SELECT parts.id, parts.id_storelocation, 0, 1, NOW(), NOW() FROM parts '.
42 42
             'WHERE parts.instock = -2'
43 43
         );
44 44
 
Please login to merge, or discard this patch.