aboutsummaryrefslogtreecommitdiffstats
path: root/pb_migrations/1780455076_updated_games.js
diff options
context:
space:
mode:
Diffstat (limited to 'pb_migrations/1780455076_updated_games.js')
-rw-r--r--pb_migrations/1780455076_updated_games.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/pb_migrations/1780455076_updated_games.js b/pb_migrations/1780455076_updated_games.js
new file mode 100644
index 0000000..b19bcf8
--- /dev/null
+++ b/pb_migrations/1780455076_updated_games.js
@@ -0,0 +1,45 @@
+/// <reference path="../pb_data/types.d.ts" />
+migrate((app) => {
+ const collection = app.findCollectionByNameOrId("pbc_879072730")
+
+ // add field
+ collection.fields.addAt(6, new Field({
+ "help": "",
+ "hidden": false,
+ "id": "bool1825427252",
+ "name": "played",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "bool"
+ }))
+
+ // add field
+ collection.fields.addAt(7, new Field({
+ "autogeneratePattern": "",
+ "help": "",
+ "hidden": false,
+ "id": "text18589324",
+ "max": 0,
+ "min": 0,
+ "name": "notes",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ }))
+
+ return app.save(collection)
+}, (app) => {
+ const collection = app.findCollectionByNameOrId("pbc_879072730")
+
+ // remove field
+ collection.fields.removeById("bool1825427252")
+
+ // remove field
+ collection.fields.removeById("text18589324")
+
+ return app.save(collection)
+})
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage