Files
2026-07-13 12:31:02 +08:00

29 lines
724 B
JavaScript

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