Add pocketbase migrations

This commit is contained in:
Niklas Korz 2023-12-08 21:34:16 +01:00
parent c75003f5f0
commit 0d330c4f60
13 changed files with 547 additions and 0 deletions

View 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)
})