mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-30 01:35:32 +00:00
Pages now work
Default Pages Created & Updated Fields for every collection
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package migrations_reihen
|
||||
|
||||
import (
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/dbmodels"
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/pagemodels"
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
@@ -35,5 +36,6 @@ func init() {
|
||||
func pageCollection() *core.Collection {
|
||||
c := pagemodels.BasePageCollection(pagemodels.P_REIHEN_NAME)
|
||||
c.Fields = append(c.Fields, reihen_fields...)
|
||||
dbmodels.SetBasicPublicRules(c)
|
||||
return c
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user