refactor: update database schema and migration files

This commit is contained in:
Tola Leng
2025-10-11 20:45:10 +07:00
parent ee5e66eb44
commit 7392580db8
17 changed files with 833 additions and 66 deletions
@@ -0,0 +1,20 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_2189087560")
// update collection data
unmarshal({
"listRule": ""
}, collection)
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2189087560")
// update collection data
unmarshal({
"listRule": "@request.auth.id != \"\""
}, collection)
return app.save(collection)
})