Permalink
Browse files

Merge pull request #17 from Pita/fixes/utf8

use utf8 instead of latin
  • Loading branch information...
2 parents a384747 + a20014b commit cb4c9e6fa5e1f0aafaca923b6c0e7eb6dfb1e4b3 @JohnMcLear JohnMcLear committed Dec 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mysql_db.js
View
@@ -46,12 +46,12 @@ exports.database = function(settings)
exports.database.prototype.init = function(callback)
{
var sqlCreate = "CREATE TABLE IF NOT EXISTS `store` ( " +
- "`key` VARCHAR( 100 ) NOT NULL COLLATE latin1_bin, " +
+ "`key` VARCHAR( 100 ) NOT NULL COLLATE utf8_general_ci, " +
"`value` LONGTEXT NOT NULL , " +
"PRIMARY KEY ( `key` ) " +
") ENGINE = INNODB;";
- var sqlAlter = "ALTER TABLE store MODIFY `key` VARCHAR(100) COLLATE latin1_bin;";
+ var sqlAlter = "ALTER TABLE store MODIFY `key` VARCHAR(100) COLLATE utf8_general_ci;";
var db = this.db;
var self = this;

0 comments on commit cb4c9e6

Please sign in to comment.