https://github.com/dusktreader/ambix
toolkit for reordering alembic scripts
https://github.com/dusktreader/ambix
Last synced: about 1 year ago
JSON representation
toolkit for reordering alembic scripts
- Host: GitHub
- URL: https://github.com/dusktreader/ambix
- Owner: dusktreader
- License: mit
- Created: 2017-06-09T22:44:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-23T21:17:08.000Z (about 5 years ago)
- Last Synced: 2025-03-26T22:44:21.494Z (about 1 year ago)
- Language: Python
- Size: 126 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ambix
## alembic history cleaning tool
The ambix tool is intended to be used to clean up alembic histories. It can
flatten badly branched alembic histories by using a toplogical sort. It can
also delete a migration with a specific revision.
## WARNING
The ambix tool is able to re-write your alembic python scripts and delete them.
Use mindfully, and make sure that you have used version control or some other
mechanism to backup your migration folder before you use ambix.
## Requirements
- Python 3.7+
## Installing
Install using pip:
```bash
$ pip install ambix
```
## Using
To flatten alembic migrations, run the following command:
```bash
$ ambix-flatten
```
To delete a specific revision, run the following command:
```bash
$ ambix-prune
```
To rebase a migration on different bases, run the following command:
```bash
$ ambix-rebase ...
```