Metadata-Version: 2.1
Name: fastack-migrate
Version: 0.4.2
Summary: Database migrations tool for Fastack
Home-page: https://github.com/fastack-dev/fastack-migrate
License: MIT
Author: aprilahijriyan
Author-email: 37798612+aprilahijriyan@users.noreply.github.com
Maintainer: aprilahijriyan
Maintainer-email: 37798612+aprilahijriyan@users.noreply.github.com
Requires-Python: >=3.7,<3.10
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: alembic (>=1.7.5,<2.0.0)
Requires-Dist: fastack (>=4.5.0,<5.0.0)
Requires-Dist: fastack-sqlmodel (>=0.4.0,<0.5.0)
Project-URL: Bug Tracker, https://github.com/fastack-dev/fastack-migrate/issues
Project-URL: Repository, https://github.com/fastack-dev/fastack-migrate
Description-Content-Type: text/markdown

# fastack-migrate

fastack-migrate is a database migration tool for [fastack](https://github.com/fastack-dev/fastack).

This is a fork of [flask-migrate](https://github.com/miguelgrinberg/Flask-Migrate)!

# Usage

Install plugin:

```
pip install -U fastack-migrate
```

Add the plugin to your project configuration:

```python
PLUGINS = [
    "fastack_sqlmodel",
    "fastack_migrate",
    ...
]
```

And initialize your project with alembic template:

```
fastack db init
```

Then check if there are any changes in ``app.models``:

```
fastack db migrate
```

Update all changes in ``app.models``:

```
fastack db upgrade
```

For more, please visit https://flask-migrate.readthedocs.io/en/latest/

