diff --git a/server/pb_data/data.db b/server/pb_data/data.db index d801598..c53732c 100644 Binary files a/server/pb_data/data.db and b/server/pb_data/data.db differ diff --git a/server/pb_migrations/1748029497_updated__superusers.js b/server/pb_migrations/1748029497_updated__superusers.js new file mode 100644 index 0000000..03d617f --- /dev/null +++ b/server/pb_migrations/1748029497_updated__superusers.js @@ -0,0 +1,67 @@ +/// +migrate((app) => { + const collection = app.findCollectionByNameOrId("pbc_3142635823") + + // add field + collection.fields.addAt(6, new Field({ + "autogeneratePattern": "", + "hidden": false, + "id": "text3687080900", + "max": 0, + "min": 0, + "name": "full_name", + "pattern": "", + "presentable": false, + "primaryKey": false, + "required": false, + "system": false, + "type": "text" + })) + + // add field + collection.fields.addAt(7, new Field({ + "autogeneratePattern": "", + "hidden": false, + "id": "text4166911607", + "max": 0, + "min": 0, + "name": "username", + "pattern": "", + "presentable": false, + "primaryKey": false, + "required": false, + "system": false, + "type": "text" + })) + + // add field + collection.fields.addAt(8, new Field({ + "hidden": false, + "id": "select2063623452", + "maxSelect": 1, + "name": "status", + "presentable": false, + "required": false, + "system": false, + "type": "select", + "values": [ + "active", + "inactive" + ] + })) + + return app.save(collection) +}, (app) => { + const collection = app.findCollectionByNameOrId("pbc_3142635823") + + // remove field + collection.fields.removeById("text3687080900") + + // remove field + collection.fields.removeById("text4166911607") + + // remove field + collection.fields.removeById("select2063623452") + + return app.save(collection) +})