mirror of
https://github.com/pocketbase/pocketbase.git
synced 2024-11-24 17:07:00 +02:00
16 lines
377 B
Go
16 lines
377 B
Go
package migrations
|
|
|
|
import (
|
|
"github.com/pocketbase/dbx"
|
|
)
|
|
|
|
// Renormalizes old single and multiple values of MultiValuer fields (file, select, relation)
|
|
// (see https://github.com/pocketbase/pocketbase/issues/2930).
|
|
func init() {
|
|
AppMigrations.Register(func(db dbx.Builder) error {
|
|
return normalizeMultivaluerFields(db)
|
|
}, func(db dbx.Builder) error {
|
|
return nil
|
|
})
|
|
}
|