first commit

This commit is contained in:
Kevand
2026-02-04 00:21:37 +00:00
commit 58925b1ac0
18 changed files with 1086 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_2032083498")
// update collection data
unmarshal({
"createRule": "@request.auth.id = user.id",
"deleteRule": "@request.auth.id = user.id",
"listRule": "@request.auth.id = user.id",
"updateRule": "@request.auth.id = user.id",
"viewRule": "@request.auth.id = user.id"
}, collection)
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2032083498")
// update collection data
unmarshal({
"createRule": null,
"deleteRule": null,
"listRule": null,
"updateRule": null,
"viewRule": null
}, collection)
return app.save(collection)
})