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

- 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.3.0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

edwh_migrate-0.3.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file edwh_migrate-0.3.0.tar.gz.

File metadata

  • Download URL: edwh_migrate-0.3.0.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.0

File hashes

Hashes for edwh_migrate-0.3.0.tar.gz
Algorithm Hash digest
SHA256 07965a1260d1ebfe4d2f2fab7cf5b1bbec8d2319445586cc0e5aa324db67820c
MD5 10d8ece443502bc9f10b25b7f7aba2ab
BLAKE2b-256 670fb4973a4a5b683aaaffb3fdebd514aaed5cfb97dcec66f8d51c144d680b72

See more details on using hashes here.

File details

Details for the file edwh_migrate-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for edwh_migrate-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 320419672724dc315f58facb67b3812e6345e2916f3cca91c08cc55a729419f6
MD5 ff6bec1f4066b8371e3b45ee8d7e9467
BLAKE2b-256 5d8e9a7a96e0975365c9b2df7d8755ba4200748bc9caa647f54dc2e8d341eb11

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