sdepold/sequelize — pull request #312 by guersam (2012-11-05 07:51:29+00:00)
Title: Fixed options priority

Hi,

I found 'define' and 'sync' options in Sequelize object overwrite individual tables' options.

For example, when I set 'collate' as 'utf8_general_ci' in general and set 'utf8_bin' of a table, it's overwritten as 'utf8_general_ci'.

I think the right behavior is to allow overwriting global options by setting more specific ones.

In addition, since module 'Utils' contains underscore.js, I replaced Utils.merge with Utils._.extend, which is more general and already used in many more lines than Utils.merge is.

Regards,
Jisoo