Files
dm-companion/pb_migrations/1748394167_updated_campaigns.js
2025-05-27 18:07:26 -07:00

29 lines
729 B
JavaScript

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