package
3.0.1+incompatible
Repository: https://github.com/mattes/migrate.git
Documentation: pkg.go.dev

# README

mysql

mysql://user:password@tcp(host:port)/dbname?query

URL QueryWithInstance ConfigDescription
x-migrations-tableMigrationsTableName of the migrations table
dbnameDatabaseNameThe name of the database to connect to
userThe user to sign in as
passwordThe user's password
hostThe host to connect to.
portThe port to bind to.
x-tls-caThe location of the root certificate file.
x-tls-certCert file location.
x-tls-keyKey file location.
x-tls-insecure-skip-verifyWhether or not to use SSL (true|false)

Upgrading from v1

  1. Write down the current migration version from schema_migrations
  2. DROP TABLE schema_migrations
  3. Wrap your existing migrations in transactions (BEGIN/COMMIT) if you use multiple statements within one migration.
  4. Download and install the latest migrate version.
  5. Force the current migration version with migrate force <current_version>.

# Functions

instance must have `multiStatements` set to true.

# Variables

# Structs