Durchführender: Verfügbarkeit pro Termin, Umbenennung Trainer→Durchführender
This commit is contained in:
parent
59aa3cbcce
commit
c23ac90d35
4 changed files with 213 additions and 117 deletions
23
pocketbase/pb_migrations/1779230600_termin_verfuegbarkeit.js
Normal file
23
pocketbase/pb_migrations/1779230600_termin_verfuegbarkeit.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const c = app.findCollectionByNameOrId("pbc_2279568741") // termine
|
||||
|
||||
c.fields.addAt(99, new Field({
|
||||
"type": "relation", "id": "relation2001000080", "name": "durchfuehrender_id",
|
||||
"help": "", "hidden": false, "presentable": false, "required": false, "system": false,
|
||||
"cascadeDelete": false, "collectionId": "_pb_users_auth_", "maxSelect": 1, "minSelect": 0
|
||||
}))
|
||||
|
||||
c.fields.addAt(99, new Field({
|
||||
"type": "select", "id": "select2001000081", "name": "verfuegbarkeit",
|
||||
"help": "", "hidden": false, "presentable": false, "required": false, "system": false,
|
||||
"maxSelect": 1, "values": ["offen", "bestaetigt", "abgesagt", "vertretung_gesucht"]
|
||||
}))
|
||||
|
||||
app.save(c)
|
||||
}, (app) => {
|
||||
const c = app.findCollectionByNameOrId("pbc_2279568741")
|
||||
c.fields.removeById("relation2001000080")
|
||||
c.fields.removeById("select2001000081")
|
||||
app.save(c)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue