mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-03 20:56:40 +00:00
chore(pockethost): migrate mothership regions
This commit is contained in:
parent
4a1fb1419e
commit
8445c81fe7
@ -0,0 +1,12 @@
|
||||
/// <reference path="../pb_hooks/types/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
|
||||
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