Skip to content

Commit af4961a

Browse files
committed
Extract applySqlChanges to base
1 parent 21c1fe5 commit af4961a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/migration.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -223,23 +223,6 @@ function mixinMigration(PostgreSQL) {
223223
}
224224
};
225225

226-
PostgreSQL.prototype.applySqlChanges = function(model, pendingChanges, cb) {
227-
var self = this;
228-
if (pendingChanges.length) {
229-
var thisQuery = 'ALTER TABLE ' + self.tableEscaped(model);
230-
var ranOnce = false;
231-
pendingChanges.forEach(function(change) {
232-
if (ranOnce) {
233-
thisQuery = thisQuery + ' ';
234-
}
235-
thisQuery = thisQuery + ' ' + change;
236-
ranOnce = true;
237-
});
238-
// thisQuery = thisQuery + ';';
239-
self.execute(thisQuery, cb);
240-
}
241-
};
242-
243226
/*!
244227
* Build a list of columns for the given model
245228
* @param {String} model The model name

0 commit comments

Comments
 (0)