Fix: pbc_-Prefix aus Custom-Collection-IDs entfernt (PocketBase reserviert pbc_ intern)
This commit is contained in:
parent
0aca72af53
commit
34f6a4f11d
3 changed files with 9 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/// <reference path="../pb_data/types.d.ts" />
|
||||
migrate((app) => {
|
||||
const c = app.findCollectionByNameOrId("pbc_neuigkeiten")
|
||||
const c = app.findCollectionByNameOrId("neuigkeiten001")
|
||||
c.fields.addAt(99, new Field({
|
||||
"type": "text", "id": "text2001000206", "name": "autor_name",
|
||||
"help": "", "hidden": false, "presentable": false, "required": false, "system": false,
|
||||
|
|
@ -8,7 +8,7 @@ migrate((app) => {
|
|||
}))
|
||||
app.save(c)
|
||||
}, (app) => {
|
||||
const c = app.findCollectionByNameOrId("pbc_neuigkeiten")
|
||||
const c = app.findCollectionByNameOrId("neuigkeiten001")
|
||||
c.fields.removeById("text2001000206")
|
||||
app.save(c)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue