diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-06-11 23:14:04 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-06-11 23:14:04 -0700 |
| commit | e156d7200a136178f73c7590877087d8e06e6382 (patch) | |
| tree | ca0e5849cd8164b4994462e83ee81b26f181f2fd /pb_migrations | |
| parent | e7a4a7410ca9f512a7dec4ba92d4b592d0b43512 (diff) | |
implement leaderboard
Diffstat (limited to 'pb_migrations')
| -rw-r--r-- | pb_migrations/1781244232_updated_scores.js | 20 | ||||
| -rw-r--r-- | pb_migrations/1781244260_updated_scores.js | 22 |
2 files changed, 42 insertions, 0 deletions
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 @@ +/// <reference path="../pb_data/types.d.ts" /> +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 @@ +/// <reference path="../pb_data/types.d.ts" /> +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) +}) |
