packages: lms/lms-sqlqueryfix.patch (NEW) - patch from upstream: http://cvs...

paszczus paszczus at pld-linux.org
Sat Jan 29 20:14:14 CET 2011


Author: paszczus                     Date: Sat Jan 29 19:14:14 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- patch from upstream: http://cvs.lms.org.pl/viewvc/Development/lms/lib/upgradedb/mysql.2010122000.php?r1=1.1&r2=1.2

---- Files affected:
packages/lms:
   lms-sqlqueryfix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/lms/lms-sqlqueryfix.patch
diff -u /dev/null packages/lms/lms-sqlqueryfix.patch:1.1
--- /dev/null	Sat Jan 29 20:14:14 2011
+++ packages/lms/lms-sqlqueryfix.patch	Sat Jan 29 20:14:09 2011
@@ -0,0 +1,14 @@
+diff -ur lms/lib/upgradedb/mysql.2010122000.php lms.new//lib/upgradedb/mysql.2010122000.php
+--- lms/lib/upgradedb/mysql.2010122000.php	2011-01-17 11:38:43.000000000 +0100
++++ lms.new//lib/upgradedb/mysql.2010122000.php	2011-01-29 20:09:49.986391872 +0100
+@@ -38,8 +38,7 @@
+ $DB->Execute("ALTER TABLE cashimport ADD sourcefileid integer DEFAULT NULL
+         REFERENCES sourcefiles (id) ON DELETE SET NULL ON UPDATE CASCADE");
+ 
+-$DB->Execute("ALTER TABLE cashimport ALTER customerid DROP NOT NULL");
+-$DB->Execute("ALTER TABLE cashimport ALTER customerid SET DEFAULT NULL");
++$DB->Execute("ALTER TABLE cashimport MODIFY customerid int(11) DEFAULT NULL");
+ $DB->Execute("UPDATE cashimport SET customerid = NULL WHERE customerid NOT IN (SELECT id FROM customers)");
+ $DB->Execute("ALTER TABLE cashimport ADD FOREIGN KEY (customerid)
+         REFERENCES customers (id) ON DELETE SET NULL ON UPDATE CASCADE");
+Tylko w lms.new//lib/upgradedb: mysql.2010122000.php~
================================================================


More information about the pld-cvs-commit mailing list