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