From ffaea6f6ded918d8d12d858ede0cda8ef5655aa4 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 02 Mar 2010 15:17:07 -0500
Subject: [PATCH] - Fix Recipient/Sender column name in drafts folder (#1486351)

---
 SQL/mysql.update.sql |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql
index 5ad03d4..495b600 100644
--- a/SQL/mysql.update.sql
+++ b/SQL/mysql.update.sql
@@ -61,7 +61,7 @@
 -- Updates from version 0.3.1
 
 /* MySQL bug workaround: http://bugs.mysql.com/bug.php?id=46293 */
-/*!40014 SET FOREIGN_KEY_CHECKS=0; */
+/*!40014 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`;
@@ -77,4 +77,8 @@
 ALTER TABLE `identities` ADD CONSTRAINT `user_id_fk_identities` FOREIGN KEY (`user_id`)
  REFERENCES `users`(`user_id`) /*!40008 ON DELETE CASCADE ON UPDATE CASCADE */;
 
-/*!40014 SET FOREIGN_KEY_CHECKS=1; */
+ALTER TABLE `contacts` ALTER `name` SET DEFAULT '';
+ALTER TABLE `contacts` ALTER `firstname` SET DEFAULT '';
+ALTER TABLE `contacts` ALTER `surname` SET DEFAULT '';
+
+/*!40014 SET FOREIGN_KEY_CHECKS=1 */;

--
Gitblit v1.9.1