From dc1e0d80507228d4833b248b59c4caf80a2a9fcf Mon Sep 17 00:00:00 2001 From: ssh24 Date: Mon, 20 Mar 2017 10:34:47 -0400 Subject: [PATCH] Extract functions to base connector move getAddModifyColumns and getDropColumns to base --- lib/migration.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/migration.js b/lib/migration.js index c526fca..ce8950b 100644 --- a/lib/migration.js +++ b/lib/migration.js @@ -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;