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.2b1.tar.gz
(17.5 kB
view details)
Built Distribution
File details
Details for the file edwh_migrate-0.5.2b1.tar.gz
.
File metadata
- Download URL: edwh_migrate-0.5.2b1.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ef6363fd16748193c88d3be3bb7d56db5cdc00947b1c48b9804a7a6559b2ab |
|
MD5 | ac176c213af713bd18db87ebcd40e0e1 |
|
BLAKE2b-256 | ed987c38f82d80bef820cb751890da00a9c3966604dcd5ce370d57504604a74c |
File details
Details for the file edwh_migrate-0.5.2b1-py3-none-any.whl
.
File metadata
- Download URL: edwh_migrate-0.5.2b1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f77981268516d40fbb407daa493bc08fe34e02c7330bffe92e6744aa91449d31 |
|
MD5 | 59f4291aa91911d532d2bc9d456d1322 |
|
BLAKE2b-256 | fb06ceac1007f4e24a999a3aca9b87d439051451ee0e7a49767f25179d56dd15 |