:rocket: A lightweight, framework-agnostic database migration tool.
Changed
Fixed
Testing & Docs
io/ioutil
to io
and os
package by @Juneezee in https://github.com/amacneil/dbmate/pull/236
--migrations-table
(#178)+
character in passwords (#200)--migrations-table
flag to specify custom schema_migrations table (https://github.com/amacneil/dbmate/pull/178)search_path
URL parameter (https://github.com/amacneil/dbmate/pull/167, https://github.com/amacneil/dbmate/pull/169, https://github.com/amacneil/dbmate/pull/166)schema_migrations
table using latin1
charset to avoid index length limits with utf8mb4
(https://github.com/amacneil/dbmate/pull/172)Backwards compatibility note: If you are using PostgreSQL with the (previously undocumented) search_path
parameter in your URL, you will need to take action depending on the desired location of your schema_migrations
table:
Prior to dbmate v1.11, the
schema_migrations
table was always stored in thepublic
schema. Going forward, dbmate will always storeschema_migrations
in the first schema of yoursearch_path
.If you wish to adopt the new behavior, you need to manually move your schema migrations table to the first schema in your
search_path
:ALTER TABLE public.schema_migrations SET SCHEMA myschema
Alternatively, you can force dbmate to continue storing the migrations table in the public schema by using the
--migrations-table "public.schema_migrations"
CLI flag.If you are only using the default (public) schema and did not specify a
search_path
in your URL, no action is necessary.
--url
flag (https://github.com/amacneil/dbmate/pull/150)dbmate dump
) in docker image (https://github.com/amacneil/dbmate/pull/157)linux/arm64
build (https://github.com/amacneil/dbmate/pull/155)--verbose
output flag to print last insert ID and rows affected (https://github.com/amacneil/dbmate/pull/138)--wait-timeout
flag (https://github.com/amacneil/dbmate/pull/127)dbmate status
command to list applied and pending migrations (https://github.com/amacneil/dbmate/pull/120, https://github.com/amacneil/dbmate/pull/124)--wait
flag to all commands to wait for the database to be ready before proceeding (https://github.com/amacneil/dbmate/pull/112)postgres
images due to unset default password (https://github.com/amacneil/dbmate/pull/121)