Db-migrator

Latest version: v1.1.0

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

Scan your dependencies

Page 2 of 3

0.1.3

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

- Separate cli tests into different test cases
- Change test config to use the travis database
- Change logger.warn to logger.warning
- Add test case for cli verbose option
- Add tests for ``dbmigrator list``
- Add CLI init test case for multiple contexts
- Add travis and coveralls badges to README
- Move cli.main import to base test case
- Refactor code for marking a migration as completed or not
- Add ``mark`` command for marking a migration as completed or not
- Add tests for the ``mark`` command
- Update README with example usage for the ``mark`` command

0.1.2

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

- :bug: Fix ``list`` to not explode when no migrations directories are given
- Log warning message for ``list`` if schema_migrations table doesn't exist
- Change ``--verbose`` to set the logger level to debug
- Add test for utils.timestamp
- Add test for utils.rollback_migration
- Add test for utils.run_migration
- Add test for utils.get_pending_migrations
- Add test for utils.get_migrations
- Add test for utils.import_migration
- Make ``dbmigrator generate`` generate pep8 compliant code
- Fix ``dbmigrator generate`` migrations directory lookup
- Add test for utils.with_cursor
- Add test for utils.get_settings_from_config
- Add integration tests with test packages
- Add pep8 to travis
- Add a logger for dbmigrator that writes to stdout
- Change version information option to ``-V``
- Sort migrations by their filename, not the full path

0.1.1

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

- Stop changing schema_migrations data if the table already exists
- Rewrite ``--version`` to use argparse version action
- Add unit test for ``--version``
- Add travis CI configuration file
- Fix default context (working directory) being a string instead of a list

0.1.0

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

- Allow multiple migrations directories / context to be specified
- Add --verbose which prints the configuration used by dbmigrator
- Use datetime ``utcnow`` instead of ``now`` for timestamps
- Add ``--version`` to show the version of db-migrator installed

0.0.7

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

- Add option ``--context`` to dbmigrator in order to load entry points
- Raise error if config file is specified but not found

0.0.6

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

- Fix missing migrations directory the "init" command

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.