Add pocketbase migrations
This commit is contained in:
parent
c75003f5f0
commit
0d330c4f60
13 changed files with 547 additions and 0 deletions
16
pb_migrations/1702062154_updated_tasklists.js
Normal file
16
pb_migrations/1702062154_updated_tasklists.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("i42xt9r6ykqdq3j")
|
||||
|
||||
collection.name = "lists"
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
}, (db) => {
|
||||
const dao = new Dao(db)
|
||||
const collection = dao.findCollectionByNameOrId("i42xt9r6ykqdq3j")
|
||||
|
||||
collection.name = "tasklists"
|
||||
|
||||
return dao.saveCollection(collection)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue