Skip to content

Commit

Permalink
Support running migrations on utf8mb4 databases
Browse files Browse the repository at this point in the history
Without this, running a migration on a utf8mb4 database returns the error "Error: ER_TOO_LONG_KEY: Specified key was too long; max key length is 767 bytes" on the migration name column.
  • Loading branch information
Francis Nimick committed Dec 27, 2015
1 parent 5da46c6 commit 3760017
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/storages/sequelize.js
Expand Up @@ -74,7 +74,8 @@ module.exports = redefine.Class({
{
tableName: this.options.storageOptions.tableName,
schema: this.options.storageOptions.schema,
timestamps: false
timestamps: false,
collate: 'utf8_unicode_ci'
}
);
}
Expand Down

0 comments on commit 3760017

Please sign in to comment.