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

Commit 738ea1b2 by Luc Verdier Committed by Mick Hansen

Add DATEONLY attributes to _dateAttributes (#5965)

1 parent 36e24f40
Showing with 1 additions and 1 deletions
...@@ -819,7 +819,7 @@ Model.prototype.refreshAttributes = function() { ...@@ -819,7 +819,7 @@ Model.prototype.refreshAttributes = function() {
if (definition.type instanceof DataTypes.BOOLEAN) { if (definition.type instanceof DataTypes.BOOLEAN) {
self._booleanAttributes.push(name); self._booleanAttributes.push(name);
} else if (definition.type instanceof DataTypes.DATE) { } else if (definition.type instanceof DataTypes.DATE || definition.type instanceof DataTypes.DATEONLY) {
self._dateAttributes.push(name); self._dateAttributes.push(name);
} else if (definition.type instanceof DataTypes.HSTORE || DataTypes.ARRAY.is(definition.type, DataTypes.HSTORE)) { } else if (definition.type instanceof DataTypes.HSTORE || DataTypes.ARRAY.is(definition.type, DataTypes.HSTORE)) {
self._hstoreAttributes.push(name); self._hstoreAttributes.push(name);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!