Merge branch 'master' of github.com:1602/jugglingdb

This commit is contained in:
Anatoliy Chakkaev 2012-09-10 19:57:40 +04:00
commit b481e4c096
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ function getColumnsToAdd(model, actualFields){
function addPropertyToActual(model, propName){ function addPropertyToActual(model, propName){
var self = this; var self = this;
var p = self._models[model].properties[propName]; 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; return sqlCommand;
}; };