Temporary fixes for php encoding library bugs ending with segfault.
[fa-stable.git] / sql / alter2.4.sql
index 936745ba25d29d8428582e0365ae17c494041014..6359598a875a28b6d55c934454c01c4a92fe93e4 100644 (file)
@@ -301,6 +301,9 @@ UPDATE `0_wo_issue_items` i, `0_stock_moves` m
 
 UPDATE `0_wo_requirements` r, `0_stock_moves` m
        SET r.unit_cost=m.standard_cost
-       WHERE r.unit_cost=0 AND r.stock_id=m.stock_id AND m.trans_no=r.workorder_id AND m.`type`=26 AND m.qty=-r.units_issued
+       WHERE r.unit_cost=0 AND r.stock_id=m.stock_id AND m.trans_no=r.workorder_id AND m.`type`=26 AND m.qty=-r.units_issued;
 
 UPDATE `0_bank_trans` SET person_id=trans_no WHERE person_type_id=26;
+
+ALTER TABLE `0_budget_trans` CHANGE `counter` `id` int(11) NOT NULL AUTO_INCREMENT;
+ALTER TABLE `0_sys_prefs` CHANGE `value` `value` text NOT NULL default '';