不要怂,就是干,撸起袖子干!

Commit eee2e04d by Dr. Evil

Include ARRAYs of HSTORE and RANGE datatypes into corresponding attributes list in model properties

1 parent 97705121
Showing with 2 additions and 2 deletions
......@@ -302,9 +302,9 @@ module.exports = (function() {
self._booleanAttributes.push(name);
} else if (definition.type instanceof DataTypes.DATE) {
self._dateAttributes.push(name);
} else if (definition.type instanceof DataTypes.HSTORE) {
} else if (definition.type instanceof DataTypes.HSTORE || DataTypes.ARRAY.is(definition.type, DataTypes.HSTORE)) {
self._hstoreAttributes.push(name);
} else if (definition.type instanceof DataTypes.RANGE) {
} else if (definition.type instanceof DataTypes.RANGE || DataTypes.ARRAY.is(definition.type, DataTypes.RANGE)) {
self._rangeAttributes.push(name);
} else if (definition.type instanceof DataTypes.JSON) {
self._jsonAttributes.push(name);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!