liquimigrate

Liquibase migrations with Django
Download

liquimigrate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Marek Wywial
  • Publisher web site:
  • http://i-dotcom.pl

liquimigrate Tags


liquimigrate Description

Liquibase migrations with Django liquimigrate is a module that provides liquibase migrations with Django.Quick start- install liquimigrate, python setup.py install- add 'liquimigrate' to INSTALLED_APPS- configure LIQUIMIGRATE_CHANGELOG_FILE = os.path.join(os.path.dirname(__file__), "migrations", "migrations.xml") in settings- ensure that you have java on your path, liquibase and java drivers are embedded into packageUsageJust run ./management.py liquibase update or ./management.py liquibase -hTo learn how to use liquibase look at liquibase documentation: http://www.liquibase.org/quickstartConfiguration settings- LIQUIMIGRATE_CHANGELOG_FILE - path to change log file f.e. 'os.path.join(os.path.dirname(__file__), "migrations", "migrations.xml")'- LIQUIMIGRATE_DATABASE - selected database - default 'default'How it worksDatabase settings are got from DATEBASES, from key 'default' or key configured in settings.py as LIQUIMIGRATE_DATABASE.Changelog path are got from LIQUIMIGRATE_CHANGELOG_FILE or from command line (check -h).Supported drivers:- postgresql- mysql- more in futureDevelopmentWhole command code is put in:- liquimigrate/management/commands/liquibase.py- java connectors are stored in liquimigrate/vendor/connectors- available drivers mapping is stored in liquimigrate/__init__.py- mapping to create db url for drivers is stored in liquimigrate/management/commands/liquibase.py in DB_DEFAULTS Requirements: · Python


liquimigrate Related Software