https://github.com/fastack-dev/fastack-migrate
https://github.com/fastack-dev/fastack-migrate
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/fastack-dev/fastack-migrate
- Owner: fastack-dev
- License: mit
- Created: 2021-12-20T11:12:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-14T16:51:55.000Z (over 1 year ago)
- Last Synced: 2024-11-06T08:06:38.750Z (over 1 year ago)
- Language: Python
- Size: 95.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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/