Files
operacle--checkcle/server/pb_migrations/1760190080_updated_maintenance.js
2026-07-13 12:31:02 +08:00

25 lines
603 B
JavaScript

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