Skip to main content

Helps migrating database schema changes using pydal.

Project description

Educationwarehouse's Migrate

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install edwh-migrate

Documentation

Environment variables

  • MIGRATE_URI: regular postgres://user:password@host:port/database or sqlite:///path/to/database URI
  • DATABASE_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


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.2b3.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

edwh_migrate-0.5.2b3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file edwh_migrate-0.5.2b3.tar.gz.

File metadata

  • Download URL: edwh_migrate-0.5.2b3.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.1

File hashes

Hashes for edwh_migrate-0.5.2b3.tar.gz
Algorithm Hash digest
SHA256 7580f14155ccb0a1b3b1f8a86ac4ef0bf33d23f7a7e10ba0f89cb8ee1e1f5ea7
MD5 b4779c2a1b59c3c595cac068a0cce8c4
BLAKE2b-256 6cff9ee08fb25b699a08974697f42d5bdbafa663bc3e2bbd735106522f19d439

See more details on using hashes here.

File details

Details for the file edwh_migrate-0.5.2b3-py3-none-any.whl.

File metadata

File hashes

Hashes for edwh_migrate-0.5.2b3-py3-none-any.whl
Algorithm Hash digest
SHA256 2355a43a4615d0a397505940f2942fa7e2b21912d4afadd5e4468913afa28cb2
MD5 c3e748c8f2a0f58eef294cf9ce4c904f
BLAKE2b-256 e9a141b36c393a9bfe7712d5d9769725438a7e97c75b8e605a15e160882d80fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page