Chore: refactor to use new schema changing queries

This commit is contained in:
csrapr 2021-03-01 15:55:29 +00:00 committed by Josh Harvey
parent 304f792484
commit e6059be8d2
44 changed files with 185 additions and 171 deletions

View file

@ -10,11 +10,11 @@ DbMigrateStore.prototype.save = function (set, fn) {
lastRun: set.lastRun,
migrations: set.migrations
})
db.none(upsert, [insertData]).then(fn).catch(err => console.log(err))
db.$none(upsert, [insertData]).then(fn).catch(err => console.log(err))
}
DbMigrateStore.prototype.load = function (fn) {
db.one('select data from migrations').then(({ data }) => {
db.$one('select data from migrations').then(({ data }) => {
fn(null, data)
})
}