From 32e5fe137645e3e5460cad679f54bd29c92d7121 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 20 Jul 2012 16:19:46 -0400 Subject: [PATCH] Collate as utf8_unicode_ci --- schema.sql | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/schema.sql b/schema.sql index 162189a..cd1c3bf 100644 --- a/schema.sql +++ b/schema.sql @@ -4,16 +4,21 @@ -- ------------------------------------------------------ -- Server version 5.1.59 + +CREATE DATABASE `u_earwig_toolserver` + DEFAULT CHARACTER SET utf8 + DEFAULT COLLATE utf8_unicode_ci; + -- -- Table structure for table `language` -- DROP TABLE IF EXISTS `language`; CREATE TABLE `language` ( - `lang_code` varchar(16) NOT NULL DEFAULT '', - `lang_name` varchar(16) DEFAULT NULL, + `lang_code` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `lang_name` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`lang_code`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Table structure for table `project` @@ -21,10 +26,10 @@ CREATE TABLE `language` ( DROP TABLE IF EXISTS `project`; CREATE TABLE `project` ( - `project_code` varchar(16) NOT NULL DEFAULT '', - `project_name` varchar(16) DEFAULT NULL, + `project_code` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', + `project_name` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`project_code`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Table structure for table `updates` @@ -32,9 +37,9 @@ CREATE TABLE `project` ( DROP TABLE IF EXISTS `updates`; CREATE TABLE `updates` ( - `update_service` varchar(128) NOT NULL DEFAULT '', + `update_service` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `update_time` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`update_service`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; --- Dump completed on 2012-07-20 18:28:12 +-- Dump completed on 2012-07-20 20:16:08