25 lines
878 B
Plaintext
25 lines
878 B
Plaintext
$OpenBSD: patch-SQL_mysql_update_sql,v 1.2 2010/09/29 20:55:39 sthen Exp $
|
|
|
|
current mysql version is affected by this bug; uncomment workaround
|
|
|
|
--- SQL/mysql.update.sql.orig Sat Sep 25 14:03:53 2010
|
|
+++ SQL/mysql.update.sql Wed Sep 29 14:29:03 2010
|
|
@@ -71,7 +71,7 @@ ALTER TABLE `contacts`
|
|
-- If not, use: ALTER TABLE xxx ENGINE=InnoDB;
|
|
|
|
/* MySQL bug workaround: http://bugs.mysql.com/bug.php?id=46293 */
|
|
-/*!40014 SET FOREIGN_KEY_CHECKS=0 */;
|
|
+SET FOREIGN_KEY_CHECKS=0;
|
|
|
|
ALTER TABLE `messages` DROP FOREIGN KEY `user_id_fk_messages`;
|
|
ALTER TABLE `cache` DROP FOREIGN KEY `user_id_fk_cache`;
|
|
@@ -117,7 +117,7 @@ CREATE TABLE `contactgroupmembers` (
|
|
REFERENCES `contacts`(`contact_id`) ON DELETE CASCADE ON UPDATE CASCADE
|
|
) /*!40000 ENGINE=INNODB */;
|
|
|
|
-/*!40014 SET FOREIGN_KEY_CHECKS=1 */;
|
|
+SET FOREIGN_KEY_CHECKS=1;
|
|
|
|
-- Updates from version 0.4-beta
|
|
|