migration

package
v0.0.0-...-4cfaa68 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AdvisoryLockID = 42

AdvisoryLockID is a random number that should be used within the application by anybody who wants to modify the "version" table.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sql.DB) error

Migrate executes the required migration of the database on startup. For each successful migration, an entry will be written into the "version" table, that states when a certain version was reached.

func NewMigrationContext

func NewMigrationContext(ctx context.Context) context.Context

NewMigrationContext aims to create a new goa context where to initialize the request and req_id context keys. NOTE: We need this function to initialize the goa.ContextRequest

Types

This section is empty.

Jump to

Keyboard shortcuts

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