From ac88c95b46e3a0456438483622ae0944fc0088be Mon Sep 17 00:00:00 2001 From: RaymondVerhoef Date: Mon, 25 May 2026 18:43:12 +0200 Subject: [PATCH] Bug fix --- .../1780800002_update_micro_learnings_rules.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pb_migrations/1780800002_update_micro_learnings_rules.js diff --git a/pb_migrations/1780800002_update_micro_learnings_rules.js b/pb_migrations/1780800002_update_micro_learnings_rules.js new file mode 100644 index 0000000..9cf872e --- /dev/null +++ b/pb_migrations/1780800002_update_micro_learnings_rules.js @@ -0,0 +1,18 @@ +/// +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); + } +})