migrations

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 15 Imported by: 159

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