Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigratePostgres ¶
MigratePostgres creates the schema_version table if needed and applies any pending migrations in order, each wrapped in its own transaction.
Multi-version upgrades: the runner always iterates the full pgMigrations slice in order and applies every version not yet recorded in schema_version. This guarantees a database at any past version (e.g. v1) is safely and completely brought to the latest version (e.g. v5) without skipping steps or corrupting data. Each migration runs in its own transaction; if one fails the database is left at the last successfully applied version.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.