diff options
Diffstat (limited to 'pb_migrations/1780542767_updated_list.js')
| -rw-r--r-- | pb_migrations/1780542767_updated_list.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pb_migrations/1780542767_updated_list.js b/pb_migrations/1780542767_updated_list.js new file mode 100644 index 0000000..181bc1f --- /dev/null +++ b/pb_migrations/1780542767_updated_list.js @@ -0,0 +1,24 @@ +/// <reference path="../pb_data/types.d.ts" /> +migrate((app) => { + const collection = app.findCollectionByNameOrId("pbc_879072730") + + // update collection data + unmarshal({ + "createRule": "", + "updateRule": "", + "viewRule": "" + }, collection) + + return app.save(collection) +}, (app) => { + const collection = app.findCollectionByNameOrId("pbc_879072730") + + // update collection data + unmarshal({ + "createRule": null, + "updateRule": null, + "viewRule": null + }, collection) + + return app.save(collection) +}) |
