Documentation
¶
Overview ¶
Package migrate provides database migration support using golang-migrate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run executes all pending database migrations. It applies migrations in order and is idempotent - already applied migrations are skipped.
Types ¶
type DevRename ¶ added in v1.159.0
type DevRename struct {
Site string
// Domains is the environment's hostnames, comma-separated.
Domains string
// NewName is the name 000239 gives it.
NewName string
}
DevRename is a site whose environment named dev has a domain, which migration 000239 is about to rename (#2608).
func PendingDevRenames ¶ added in v1.159.0
PendingDevRenames is each site whose dev environment has a domain and that 000239 will rename, read before the migrations run so the operator is told the one time it can be. None when the schema's version cannot be read (a new database), is dirty, or is one 000239 does not apply to: before the site tables exist, or once it has run.
type PublicLoss ¶ added in v1.159.0
PublicLoss is an environment public before 000245 with no domain, which 000245 makes answer only to someone signed in (#2619).
func PendingPublicLosses ¶ added in v1.159.0
PendingPublicLosses is each environment 000245 will stop answering anonymously, read before the migrations run so the operator is told the one time it can be. None when the schema's version cannot be read, is dirty, or is one 000245 does not apply to.