Help us shape the future of Go! Take the 2026 Go Developer Survey

migrations

package
v0.40.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 16 Imported by: 263

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(
	up func(app core.App) error,
	down func(app core.App) error,
	optFilename ...string,
)

Register is a short alias for `AppMigrations.Register()` that is usually used in external/user defined migrations.

Types

type OldCollectionModel added in v0.23.0

type OldCollectionModel struct {
	Id         string                              `db:"id" json:"id"`
	Created    types.DateTime                      `db:"created" json:"created"`
	Updated    types.DateTime                      `db:"updated" json:"updated"`
	Name       string                              `db:"name" json:"name"`
	Type       string                              `db:"type" json:"type"`
	System     bool                                `db:"system" json:"system"`
	Schema     types.JSONArray[types.JSONMap[any]] `db:"schema" json:"schema"`
	Indexes    types.JSONArray[string]             `db:"indexes" json:"indexes"`
	ListRule   *string                             `db:"listRule" json:"listRule"`
	ViewRule   *string                             `db:"viewRule" json:"viewRule"`
	CreateRule *string                             `db:"createRule" json:"createRule"`
	UpdateRule *string                             `db:"updateRule" json:"updateRule"`
	DeleteRule *string                             `db:"deleteRule" json:"deleteRule"`
	Options    types.JSONMap[any]                  `db:"options" json:"options"`
}

func (OldCollectionModel) TableName added in v0.23.0

func (c OldCollectionModel) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL