migrate

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package migrate defines migrations for qri configuration files

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNeedMigration indicates a migration is required
	ErrNeedMigration = fmt.Errorf("migration required")
	// ErrMigrationSucceeded indicates a migration completed executing
	ErrMigrationSucceeded = errors.New("migration succeeded")
)

Functions

func OneToTwo added in v0.9.9

func OneToTwo(cfg *config.Config) error

OneToTwo migrates a configuration from Revision 1 to Revision 2

func RunMigrations

func RunMigrations(streams ioes.IOStreams, cfg *config.Config, interactive bool) (err error)

RunMigrations checks to see if any migrations runs them

func ZeroToOne

func ZeroToOne(cfg *config.Config) error

ZeroToOne migrates a configuration from Revision Zero (no revision number) to Revision 1

Types

This section is empty.

Jump to

Keyboard shortcuts

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