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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for edwh_migrate-0.5.2b1.tar.gz
Algorithm Hash digest
SHA256 d4ef6363fd16748193c88d3be3bb7d56db5cdc00947b1c48b9804a7a6559b2ab
MD5 ac176c213af713bd18db87ebcd40e0e1
BLAKE2b-256 ed987c38f82d80bef820cb751890da00a9c3966604dcd5ce370d57504604a74c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edwh_migrate-0.5.2b1-py3-none-any.whl
Algorithm Hash digest
SHA256 f77981268516d40fbb407daa493bc08fe34e02c7330bffe92e6744aa91449d31
MD5 59f4291aa91911d532d2bc9d456d1322
BLAKE2b-256 fb06ceac1007f4e24a999a3aca9b87d439051451ee0e7a49767f25179d56dd15

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