Metadata-Version: 2.1
Name: edwh-migrate
Version: 0.5.2b1
Summary: Helps migrating database schema changes using pydal. 
Project-URL: Documentation, https://github.com/educationwarehouse/migrate#readme
Project-URL: Issues, https://github.com/educationwarehouse/migrate/issues
Project-URL: Source, https://github.com/educationwarehouse/migrate
Author-email: Remco <remco@educationwarehouse.nl>
License-Expression: MIT
License-File: LICENSE.txt
Keywords: database-migration,migrate,postgresql,pydal,schema-change
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Requires-Dist: plumbum
Requires-Dist: psycopg2-binary
Requires-Dist: pydal>=20221110.1
Requires-Dist: redis
Provides-Extra: dev
Requires-Dist: black; extra == 'dev'
Requires-Dist: hatch; extra == 'dev'
Requires-Dist: python-semantic-release; extra == 'dev'
Description-Content-Type: text/markdown

# Educationwarehouse's Migrate

[![PyPI - Version](https://img.shields.io/pypi/v/edwh-migrate.svg)](https://pypi.org/project/edwh-migrate)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/edwh-migrate.svg)](https://pypi.org/project/edwh-migrate)

-----

**Table of Contents**

- [Installation](#installation)
- [Documentation](#documentation)
- [License](#license)

## Installation

```console
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](https://spdx.org/licenses/MIT.html) license.
