- Fix error message for invalid backends
- Fix validation of unique backends
- Fix error when
--(un)safe
or--(no)privileges
were not passed as arguments. - Replace
psycopg2-binary
dependency bypsycopg2
- Added support for glob pattern lists for
schema.filename
andmigration.filename
. Plain strings are still supported. - Add support for interpolated environment variables within config files.
- Deprecate
migrations.directory
configuration option. - Update
tomlkit
to version0.11
- Update locked dependency versions
- Fix "
TypeError: dict is not a sequence" error when the schema or migration files contain percent characters (
%`).
- Fix "A value is required for bind parameter ..." error caused
by SQL files containing code looking like SQLAlchemy parameters
(
:<params>
).
- Add support for
\*\*
in glob pattern - Improve output of SQL errors
- Add default config for
migra
config section
- Fix
privileges
configuration option
- Add
migra.safe
andmigra.permission
totusker.toml
- Add
--safe
and--unsafe
arguments - Add
--without-privileges
argument - Update
tomlkit
to version0.10
- Update locked dependency versions
- Do not filter by
.sql
extension when using themigrations.filename
setting.
- Add
migrations.filename
setting which supports aglob
pattern - Fix error messages for invalid configurations
- Increase minimum
python
version to3.6
- Update
migra
to version3.0
- Update
tomlkit
to version0.7
- Update
sqlalchemy
to version1.4
- Update
psycopg2
to version2.9
- Fix quoting of database names
- Add support for mixing url with other database settings
- Fix transaction handling
- Execute files specified by
glob
pattern in sorted order
- Add
--version
argument - Add
glob
pattern support forschema.filename
setting
- Replace f-Strings by .format() calls. This fixes Python 3.5 support.
- Add support for
database.schema
config option
- Add
--with-privileges
option todiff
andcheck
commands.
- Add
from
andto
argument todiff
command which makes it possible to compare a schema file, migration files and an existing database. - Add
--reverse
option todiff
command. - Add
check
command
- Fix closing of DB connections
- Escape schema and migration SQL before execution
- First release