mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
fix(pockethost): disable unneeded mothership migrations
This commit is contained in:
parent
457f33b754
commit
1c031f46af
@ -0,0 +1,10 @@
|
||||
/** Migrate version numbers */
|
||||
onAfterBootstrap((e) => {
|
||||
const dao = $app.dao()
|
||||
|
||||
console.log(`***Migrating regions`)
|
||||
dao
|
||||
.db()
|
||||
.newQuery(`update instances set region='sfo-1' where region=''`)
|
||||
.execute()
|
||||
})
|
@ -1,11 +0,0 @@
|
||||
/** Migrate version numbers */
|
||||
onAfterBootstrap((e) => {
|
||||
const dao = $app.dao()
|
||||
|
||||
console.log(`***Migrating regions`)
|
||||
const records = dao.findRecordsByFilter(`instances`, '1=1')
|
||||
records.forEach((record) => {
|
||||
record.set(`region`, `sfo-1`)
|
||||
dao.saveRecord(record)
|
||||
})
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user