An open API service indexing awesome lists of open source software.

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

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 ...
```