diff --git a/packages/pockethost/src/mothership-app/pb_migrations/1753935939_updated_users.js b/packages/pockethost/src/mothership-app/pb_migrations/1753935939_updated_users.js new file mode 100644 index 00000000..99b8977d --- /dev/null +++ b/packages/pockethost/src/mothership-app/pb_migrations/1753935939_updated_users.js @@ -0,0 +1,29 @@ +/// +migrate((db) => { + const dao = new Dao(db) + const collection = dao.findCollectionByNameOrId("systemprofiles0") + + // add + collection.schema.addField(new SchemaField({ + "system": false, + "id": "5jejgdlc", + "name": "notes", + "type": "editor", + "required": false, + "presentable": false, + "unique": false, + "options": { + "convertUrls": false + } + })) + + return dao.saveCollection(collection) +}, (db) => { + const dao = new Dao(db) + const collection = dao.findCollectionByNameOrId("systemprofiles0") + + // remove + collection.schema.removeField("5jejgdlc") + + return dao.saveCollection(collection) +})