This commit is contained in:
RaymondVerhoef
2026-05-25 18:43:12 +02:00
parent d4066a8f61
commit ac88c95b46

View File

@@ -0,0 +1,18 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("micro_learnings");
if (collection) {
collection.createRule = "";
collection.updateRule = "";
collection.deleteRule = "";
return app.save(collection);
}
}, (app) => {
const collection = app.findCollectionByNameOrId("micro_learnings");
if (collection) {
collection.createRule = null;
collection.updateRule = null;
collection.deleteRule = null;
return app.save(collection);
}
})