]> git.pld-linux.org Git - packages/lms.git/commitdiff
- patch from upstream: http://cvs.lms.org.pl/viewvc/Development/lms/lib/upgradedb...
authorSÅ‚awomir Paszkiewicz <paszczus@pld-linux.org>
Sat, 29 Jan 2011 19:14:09 +0000 (19:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lms-sqlqueryfix.patch -> 1.1

lms-sqlqueryfix.patch [new file with mode: 0644]

diff --git a/lms-sqlqueryfix.patch b/lms-sqlqueryfix.patch
new file mode 100644 (file)
index 0000000..d47a5be
--- /dev/null
@@ -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~
This page took 0.044631 seconds and 4 git commands to generate.