migrations

package
v0.6.1-alpha.15 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BaseSchemaVersion = uint32(0)

Variables

View Source
var Migrations = []Migration{}

Add new migrations to the end of this list, and they will be applied before creating the next block. The first migration on the list is applied when schema version = BaseSchemaVersion, and after applying each migration the schema version is incremented. Old migrations can be pruned; for each migration pruned increment BaseSchemaVersion by one.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	Contract *coreutil.ContractInfo
	Apply    func(state kv.KVStore, log *logger.Logger) error
}

Jump to

Keyboard shortcuts

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