We use only mysql, so updating this means a lot of unused db backends like sqlite do not need to be built with gyp anymore. Note that this version is not yet released as stable, but works fine for us. The outstanding issues are not related to our use-case from what I can tell. Fixes #82
15 lines
429 B
JavaScript
15 lines
429 B
JavaScript
'use strict';
|
|
|
|
var url = require('url');
|
|
|
|
exports.up = function(db, callback) {
|
|
var dbName = url.parse(process.env.DATABASE_URL).path.substr(1); // remove slash
|
|
|
|
// by default, mysql collates case insensitively. 'utf8_general_cs' is not available
|
|
db.runSql('ALTER DATABASE ' + dbName + ' DEFAULT CHARACTER SET=utf8 DEFAULT COLLATE utf8_bin', callback);
|
|
};
|
|
|
|
exports.down = function(db, callback) {
|
|
callback();
|
|
};
|