From e18d992ee1a37bf76e2ef5a0d136df8fe591a914 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 04 Feb 2011 06:58:19 -0500
Subject: [PATCH] - Fix adding contacts: convert e-mail to ascii before format checking

---
 SQL/mysql.update.sql |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql
index b9ab59e..aaab43f 100644
--- a/SQL/mysql.update.sql
+++ b/SQL/mysql.update.sql
@@ -129,3 +129,7 @@
 ALTER TABLE `users` DROP INDEX `username_index`;
 ALTER TABLE `users` ADD UNIQUE `username` (`username`, `mail_host`);
 
+ALTER TABLE `contacts` MODIFY `email` varchar(255) NOT NULL;
+
+TRUNCATE TABLE `messages`;
+

--
Gitblit v1.9.1