Fix: autor_name denormalisiert speichern statt expand (viewRule-Konflikt)

This commit is contained in:
rene 2026-05-21 20:03:55 +02:00
parent 74c3aa11b0
commit 0aca72af53
3 changed files with 19 additions and 6 deletions

View file

@ -0,0 +1,14 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const c = app.findCollectionByNameOrId("pbc_neuigkeiten")
c.fields.addAt(99, new Field({
"type": "text", "id": "text2001000206", "name": "autor_name",
"help": "", "hidden": false, "presentable": false, "required": false, "system": false,
"autogeneratePattern": "", "min": 0, "max": 0, "pattern": ""
}))
app.save(c)
}, (app) => {
const c = app.findCollectionByNameOrId("pbc_neuigkeiten")
c.fields.removeById("text2001000206")
app.save(c)
})