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,24 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_1738231158")
// update collection data
unmarshal({
"createRule": "",
"deleteRule": "",
"updateRule": ""
}, collection)
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_1738231158")
// update collection data
unmarshal({
"createRule": "@request.auth.id != \"\"",
"deleteRule": "@request.auth.id != \"\"",
"updateRule": "@request.auth.id != \"\""
}, collection)
return app.save(collection)
})