From b71b4ce2fc5e80468abbcf293f0abbf7f21a5f15 Mon Sep 17 00:00:00 2001 From: maajdrall Date: Wed, 17 Jul 2019 17:41:38 -0300 Subject: [PATCH] Suggestion to use UTF8(universal charset) rather than latin1(latin alphabet) --- components/sql/scripts/mysql.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/sql/scripts/mysql.sql b/components/sql/scripts/mysql.sql index 6faa728..5eceeb7 100644 --- a/components/sql/scripts/mysql.sql +++ b/components/sql/scripts/mysql.sql @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS `active` ( `path` text NOT NULL, `position` varchar(255) DEFAULT NULL, `focused` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=latin1; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table structure for table `access` @@ -17,7 +17,7 @@ CREATE TABLE IF NOT EXISTS `access` ( `user` int NOT NULL, `project` int NOT NULL, `level` int NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=latin1; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- @@ -29,7 +29,7 @@ CREATE TABLE IF NOT EXISTS `options` ( `id` int PRIMARY KEY AUTO_INCREMENT NOT NULL, `name` varchar(255) UNIQUE NOT NULL, `value` text NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=latin1; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- @@ -42,7 +42,7 @@ CREATE TABLE IF NOT EXISTS `projects` ( `name` varchar(255) NOT NULL, `path` text NOT NULL, `owner` int NOT NULL, -) ENGINE=InnoDB DEFAULT CHARSET=latin1; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- @@ -62,7 +62,7 @@ CREATE TABLE IF NOT EXISTS `users` ( `access` int NOT NULL, `token` varchar(255) DEFAULT NULL, UNIQUE KEY `username` ( `username` ) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- @@ -76,4 +76,4 @@ CREATE TABLE IF NOT EXISTS `user_options` ( `user` int NOT NULL, `value` text NOT NULL, UNIQUE KEY `name_user` (`name`,`user`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; +) ENGINE=InnoDB DEFAULT CHARSET=utf8;