From b5a9a906a39b1e31a65f7b08fa0f2707902d7382 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 3 Feb 2014 15:52:56 +0100 Subject: [PATCH] Set mysql to unicode and add user --- app/var/db/db-mysql.sql | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/var/db/db-mysql.sql b/app/var/db/db-mysql.sql index a0393dd..3d88ff8 100644 --- a/app/var/db/db-mysql.sql +++ b/app/var/db/db-mysql.sql @@ -359,14 +359,15 @@ CREATE TABLE IF NOT EXISTS `core_chat` ( CREATE TABLE IF NOT EXISTS `core_mailer` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `subject` varchar(255) NOT NULL, - `template` varchar(255) NOT NULL, - `address_from` varchar(150) NOT NULL, - `address_to` text NOT NULL, - `html` text NOT NULL, + `user_id` int(11) DEFAULT NULL, + `subject` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `template` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `address_from` varchar(150) COLLATE utf8_unicode_ci NOT NULL, + `address_to` text COLLATE utf8_unicode_ci NOT NULL, + `html` text COLLATE utf8_unicode_ci NOT NULL, `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- --------------------------------------------------------