migration

package
v0.0.0-...-55990d1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSceneAlignSystem

func AddSceneAlignSystem(ctx context.Context, c DBClient) error

func AddSceneDefaultTile

func AddSceneDefaultTile(ctx context.Context, c DBClient) error

func AddSceneFieldToPropertySchema

func AddSceneFieldToPropertySchema(ctx context.Context, c DBClient) error

func AddSceneWidgetId

func AddSceneWidgetId(ctx context.Context, c DBClient) error

func Do

func Do(ctx context.Context, db *mongox.Client, config repo.Config) error

func MoveTerrainProperties

func MoveTerrainProperties(ctx context.Context, c DBClient) error

func RemovePreviewToken

func RemovePreviewToken(ctx context.Context, c DBClient) error

func SplitSchemaOfProperties

func SplitSchemaOfProperties(ctx context.Context, c DBClient) error

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(c repo.Config) *Config

func (*Config) Begin

func (c *Config) Begin(ctx context.Context) error

func (*Config) Current

func (c *Config) Current(ctx context.Context) (migration.Key, error)

func (*Config) End

func (c *Config) End(ctx context.Context) error

func (*Config) Save

func (c *Config) Save(ctx context.Context, key migration.Key) error

type DBClient

type DBClient = *mongox.Client

Jump to

Keyboard shortcuts

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