diff --git a/lib/adapters/postgres.js b/lib/adapters/postgres.js index f1269329..8f713558 100644 --- a/lib/adapters/postgres.js +++ b/lib/adapters/postgres.js @@ -354,7 +354,7 @@ function getColumnsToAdd(model, actualFields){ function addPropertyToActual(model, propName){ var self = this; var p = self._models[model].properties[propName]; - sqlCommand = 'ADD COLUMN "' + propName + '" ' + datatype(p) + " " + (propertyCanBeNull.call(self, model, propName) ? "" : " NOT NULL"); + var sqlCommand = 'ADD COLUMN "' + propName + '" ' + datatype(p) + " " + (propertyCanBeNull.call(self, model, propName) ? "" : " NOT NULL"); return sqlCommand; };