Db-migrator

Latest version: v1.1.0

Safety actively analyzes 621309 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.1.0

------------------

- Add db-config-ini-key to CLI options
- Add ``--sort`` (version or applied) to ``dbmigrator list``
- Allow mark to accept multiple timestamps
- Set dbmigrator settings before running utils tests
- Add quiet switch
- Add tests for no migrations to rollback
- Convert most output to logging
- Explicitly close all postgres db connections

1.0.2

------------------

- create a savepoint around should_run - rollback on false, to restore db state
- Add ``__version__`` to dbmigrator

1.0.1

------------------

- Update minimum version of psycopg2 required

1.0.0

------------------

- Add "*" to indicate repeated migrations in ``list``
- Raise SystemExit when ``mark`` migration not found
- Add deferred migrations
- Add repeat conditional migrations
- Change print statement to logger.debug
- Reduce noise in tests when installing test packages
- Add CLI test for rollback
- Add CLI test for migrate
- Add super user database connections
- Move logger from __init__.py to utils.py
- Change python 3.4 to 3.5 in .travis.yml

0.2.0

------------------

- Add psycopg2 wait callback so ctrl-c stops a migration
- Implement mark a migration as deferred: ``mark -d``
- Add --wide option for ``list`` to display the full migration name
- Update command usage in README
- Add help message to dbmigrator commands
- Warn user with ``dbmigrator init --help`` if schema migrations doesn't exist
- Add CLI test for generating migrations

0.1.4

------------------
- Change ``dbmigrator list`` to list version and migration name separately

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.