Helps migrating database schema changes using pydal.
Project description
Educationwarehouse's Migrate
Table of Contents
Installation
pip install edwh-migrate
Documentation
Environment variables
MIGRATE_URI
: regularpostgres://user:password@host:port/database
orsqlite:///path/to/database
URIDATABASE_TO_RESTORE
: path to a (compressed) SQL file to restore..xz
,.gz
and.sql
are supported.MIGRATE_CAT_COMMAND
: for unsupported compression formats, this command decompresses the file and produces sql on the stdout.SCHEMA_VERSION
: Used in case of schema versioning. Set by another process.REDIS_HOST
: If set, all keys of the redis database 0 will be removed.
License
edwh-migrate
is distributed under the terms of the MIT license.
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
edwh_migrate-0.5.0.tar.gz
(17.3 kB
view details)
Built Distribution
File details
Details for the file edwh_migrate-0.5.0.tar.gz
.
File metadata
- Download URL: edwh_migrate-0.5.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3da765d610acaa9c6d79a850046838d29435a0f85e59baa6aa2d8eb680f29fe6 |
|
MD5 | b7996b1c7e5676213d4810fbb7905876 |
|
BLAKE2b-256 | f4c6c57eb009297f8e83290e34da002acad216951ef754e014b4b78eca3e905f |
File details
Details for the file edwh_migrate-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: edwh_migrate-0.5.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a470386e974ae8c9b8568cd1bb2d73ece5991b6c1c28617e8aa4cc52120fd129 |
|
MD5 | 1fef46ac4bfbb841fcf54e519b97b76a |
|
BLAKE2b-256 | 6e9a6cab6d532682cadf82924bdeb4dc3ec8a8fbecaa1180dfe7bc5aa5314921 |