Merge pull request #252 from strongloop/fix/refactor-fns

Extract functions to base connector
This commit is contained in:
Sakib Hasan 2017-03-20 11:36:18 -04:00 committed by GitHub
commit 2fc14154c7
1 changed files with 0 additions and 14 deletions

View File

@ -156,13 +156,6 @@ function mixinMigration(MySQL, mysql) {
});
};
MySQL.prototype.getAddModifyColumns = function(model, actualFields) {
var sql = [];
var self = this;
sql = sql.concat(self.getColumnsToAdd(model, actualFields));
return sql;
};
MySQL.prototype.getColumnsToAdd = function(model, actualFields) {
var self = this;
var m = this.getModelDefinition(model);
@ -222,13 +215,6 @@ function mixinMigration(MySQL, mysql) {
return sql;
};
MySQL.prototype.getDropColumns = function(model, actualFields) {
var sql = [];
var self = this;
sql = sql.concat(self.getColumnsToDrop(model, actualFields));
return sql;
};
MySQL.prototype.getColumnsToDrop = function(model, actualFields) {
var self = this;
var fields = actualFields;