Skip to main content

Liquibase migrations with django

Project description

License: BSD Liquibase license: Apache 2.0 Author: Marek Wywiał <onjinx@gmail.com>

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 package

Usage

Just run ./management.py liquibase update or ./management.py liquibase -h

To learn how to use liquibase look at liquibase documentation:

Configuration 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 works

Database 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 future

Development

Whole 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

liquimigrate-0.2.6.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liquimigrate-0.2.6-py2.6.egg (1.7 MB view details)

Uploaded Egg

File details

Details for the file liquimigrate-0.2.6.tar.gz.

File metadata

  • Download URL: liquimigrate-0.2.6.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for liquimigrate-0.2.6.tar.gz
Algorithm Hash digest
SHA256 e60a9ca15693d75a763789db7f427ae559d6e1015d941ad2e9946a4bb9689180
MD5 8c07b6403c59ac5726dcd59d36e30a94
BLAKE2b-256 6138d838370f19af0678dad1a999eb2d428ed95a02ade7e4d659af41b9867dfe

See more details on using hashes here.

File details

Details for the file liquimigrate-0.2.6-py2.6.egg.

File metadata

File hashes

Hashes for liquimigrate-0.2.6-py2.6.egg
Algorithm Hash digest
SHA256 ef50e3ca35f2b5978e76ae216bcbcc967ed23c112d251ebbe8bc23a809afdc5e
MD5 4b6327c67a1b5a613a17d64d88d6ab27
BLAKE2b-256 559b16bf2b174d97d7a82472ef79c592a5402343f460159991d9021da83ad0c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page