Liquibase migrations with django
Project description
Overview
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_FILES = { ‘default’: 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_FILES - dictionary with paths to change log files f.e. ‘os.path.join(os.path.dirname(__file__), “migrations”, “migrations.xml”)’ for every database connection you need to maintain using liquimigrate
old method is still supported: 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_FILES 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file liquimigrate-0.4.0.tar.gz.
File metadata
- Download URL: liquimigrate-0.4.0.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dc8a68cd31a19184afd3453788c983b3b3d39c48d2b2c526a1153fb4c8edeef
|
|
| MD5 |
207a786bc0bc8517f9779d3d8f4cc318
|
|
| BLAKE2b-256 |
bc076f542188e6ece74fa04b33195567d2c070c8b003c337afa04fa9494efaec
|
File details
Details for the file liquimigrate-0.4.0-py2.7.egg.
File metadata
- Download URL: liquimigrate-0.4.0-py2.7.egg
- Upload date:
- Size: 1.7 MB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a3d923108d2615e598cabd75f97ef801148de002010191f724b8d3080cdd949
|
|
| MD5 |
7cc7fac3a8f7c9c84a603cb87ba0aa7d
|
|
| BLAKE2b-256 |
33e344dcb5037b75e529e2704f8b11182d94ce055d152f578220c137dfb09c5c
|