From e156d7200a136178f73c7590877087d8e06e6382 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 11 Jun 2026 23:14:04 -0700 Subject: implement leaderboard --- pb_migrations/1781244232_updated_scores.js | 20 ++++++++++++++++++++ pb_migrations/1781244260_updated_scores.js | 22 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 pb_migrations/1781244232_updated_scores.js create mode 100644 pb_migrations/1781244260_updated_scores.js (limited to 'pb_migrations') diff --git a/pb_migrations/1781244232_updated_scores.js b/pb_migrations/1781244232_updated_scores.js new file mode 100644 index 0000000..5bb7eec --- /dev/null +++ b/pb_migrations/1781244232_updated_scores.js @@ -0,0 +1,20 @@ +/// +migrate((app) => { + const collection = app.findCollectionByNameOrId("pbc_809716240") + + // update collection data + unmarshal({ + "viewRule": "" + }, collection) + + return app.save(collection) +}, (app) => { + const collection = app.findCollectionByNameOrId("pbc_809716240") + + // update collection data + unmarshal({ + "viewRule": null + }, collection) + + return app.save(collection) +}) diff --git a/pb_migrations/1781244260_updated_scores.js b/pb_migrations/1781244260_updated_scores.js new file mode 100644 index 0000000..e3a4533 --- /dev/null +++ b/pb_migrations/1781244260_updated_scores.js @@ -0,0 +1,22 @@ +/// +migrate((app) => { + const collection = app.findCollectionByNameOrId("pbc_809716240") + + // update collection data + unmarshal({ + "listRule": "", + "viewRule": null + }, collection) + + return app.save(collection) +}, (app) => { + const collection = app.findCollectionByNameOrId("pbc_809716240") + + // update collection data + unmarshal({ + "listRule": null, + "viewRule": "" + }, collection) + + return app.save(collection) +}) -- cgit v1.2.3