Bug fix
This commit is contained in:
18
pb_migrations/1780800002_update_micro_learnings_rules.js
Normal file
18
pb_migrations/1780800002_update_micro_learnings_rules.js
Normal 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);
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user