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.1.tar.gz
(17.3 kB
view details)
Built Distribution
File details
Details for the file edwh_migrate-0.5.1.tar.gz
.
File metadata
- Download URL: edwh_migrate-0.5.1.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 | 919fc2f8f892bd11d3618159f3951c730c13cc39a8208346264686544848b765 |
|
MD5 | 436409729841e6f807c47da0c9bd1018 |
|
BLAKE2b-256 | cc87ce60cd328b72ed609271f1ab5cee0ff1dfc1c0725af2bd89b5a98bb75aa4 |
File details
Details for the file edwh_migrate-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: edwh_migrate-0.5.1-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 | 6cb02d6798dd9d13e81bcf5148a4cf9fbd63d712bf8e3212dbe462ed0f40d889 |
|
MD5 | 14c9ea34f49a589e77ddae9417c2bec9 |
|
BLAKE2b-256 | db69879ff3f1c4cb9277c2a3d19cdc243860e04264a0848f45906ed6653436d0 |