Files
pocketbase/pb_migrations/1770067962_updated_mc_profiles.js
2026-02-04 00:21:37 +00:00

29 lines
751 B
JavaScript

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