- golem15.menu plugin, tables golem15_menu_menus and golem15_menu_menu_entries with the PHP columns plus a nullable url_pattern (D-02) - MenuEntry BeforeSave ports PHP beforeSave: nest columns 0, menu from the parent, sort_order after the menu's last - entry type dropdown: url, divider and the signpost registry types; reference depends on type through signpost.ReferenceOptions - URL scheme allowlist (errors.url_scheme), target _self or _blank, menu and parent cycle checks - menu filter, toolbar reorder/create/delete and config_reorder.yaml partitioned by menu - navigation Menus with Menus and Menu entries, permission golem15.menu.manage_menu, en and pl phrasebooks - TestMenuAdminSmoke
18 lines
435 B
Go
18 lines
435 B
Go
// Package updates holds the menu plugin's migrations.
|
|
package updates
|
|
|
|
import "github.com/go-gormigrate/gormigrate/v2"
|
|
|
|
var all []*gormigrate.Migration
|
|
|
|
// Register appends gormigrate steps so later files add migrations without
|
|
// editing plugin.go.
|
|
func Register(ms ...*gormigrate.Migration) {
|
|
all = append(all, ms...)
|
|
}
|
|
|
|
// All returns every migration registered by this package.
|
|
func All() []*gormigrate.Migration {
|
|
return all
|
|
}
|