Remove ionic, create custom layout

This commit is contained in:
Niklas Korz 2023-12-09 14:00:22 +01:00
parent b8bee291b3
commit 681440eb4d
23 changed files with 627 additions and 635 deletions

View file

@ -0,0 +1,33 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("pf13z4hs1iubw41")
// add
collection.schema.addField(new SchemaField({
"system": false,
"id": "zvbjddln",
"name": "icon",
"type": "relation",
"required": false,
"presentable": false,
"unique": false,
"options": {
"collectionId": "jqwhs45vpzq2ig5",
"cascadeDelete": false,
"minSelect": null,
"maxSelect": 1,
"displayFields": null
}
}))
return dao.saveCollection(collection)
}, (db) => {
const dao = new Dao(db)
const collection = dao.findCollectionByNameOrId("pf13z4hs1iubw41")
// remove
collection.schema.removeField("zvbjddln")
return dao.saveCollection(collection)
})