Skip to content
Browse files

use utf8 instead of latin

  • Loading branch information...
1 parent ceff5a1 commit a20014b14ec593b9ac5fba2b99feb82e7b769c64 @JohnMcLear JohnMcLear committed Oct 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mysql_db.js
View
4 mysql_db.js
@@ -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 a20014b

Please sign in to comment.
Something went wrong with that request. Please try again.