Merge pull request #117 from sjltaylor/fix_global_leak
fix global leak in postgres adapter
This commit is contained in:
commit
71c6651402
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue