Documentation ¶
Overview ¶
Package migrations contains code that modifies data in the boltdb database as application logic changes. If a new field is added to a model, there is a good chance there will be an accompanying migration to help facilitate the change. Everything in here is ran in a single transaction, so any errors will rollback all changes made by migrations in this file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrations = []Migration{ MigrateOldDatabase{}, CreateInitialPageIndexes{}, }
Migrations holds the list of migrations that need to be ran. Version.Version is a count of migrations that have been ran so far and it's used as an index into this slice to find pending migrations.
Functions ¶
func MustMigrate ¶
Types ¶
type CreateInitialPageIndexes ¶
type CreateInitialPageIndexes struct{}
func (CreateInitialPageIndexes) Description ¶
func (CreateInitialPageIndexes) Description() string
type MigrateOldDatabase ¶
type MigrateOldDatabase struct{}
func (MigrateOldDatabase) Description ¶
func (MigrateOldDatabase) Description() string
Click to show internal directories.
Click to hide internal directories.