adriangb / asyncpg-trek

Simple migrations system for asyncpg
MIT License
8 stars 2 forks source link

More complete version management #3

Open adriangb opened 1 year ago

adriangb commented 1 year ago

While there's a lot of things, I don't like about Alembic I do think they have a pretty solid data model for versions: https://alembic.sqlalchemy.org/en/latest/branches.html. It'd be really interesting to see what concepts we can pick up from them, maybe while still keeping migrations as edges not vertices.

euri10 commented 1 year ago

topological sort ?

adriangb commented 1 year ago

Well a topological sort is probably needed somewhere. But really I think the interesting bits are around creating branches, the concept of HEAD revision, branch merging, having multiple "down" revisions, etc.