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
-
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.4.0.tar.gz
(25.8 kB
view hashes)
Built Distribution
Close
Hashes for edwh_migrate-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a5a38641ea4354eaf59c05c7f49542c434301d6506d0012cee0aae3bd164619 |
|
MD5 | cdbdc19a8a0b722b8b5613b395eb6787 |
|
BLAKE2b-256 | f0857a99944cfe1374ed3440ec2f445d7c9f246baa3bd53c4acfcc176996dc69 |