aboutsummaryrefslogtreecommitdiffstats
path: root/pb_migrations
diff options
context:
space:
mode:
Diffstat (limited to 'pb_migrations')
-rw-r--r--pb_migrations/1781244232_updated_scores.js20
-rw-r--r--pb_migrations/1781244260_updated_scores.js22
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)
+})
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage