Skip to content

v0.3.0

Choose a tag to compare

@monneyboi monneyboi released this 28 Sep 14:19
· 36 commits to main since this release
e9efc30

Breaking change: removes the public pravda.migrate(database_url) API and the migration tests.

Consumers now apply the packaged Alembic migrations from their own Alembic configuration, addressing the packaged scripts via the package-resource location:

[pravda]
script_location = pravda:migrations
$ alembic -n pravda upgrade head

Each environment tracks its own version table (pravda_alembic_version), so Pravda's history stays independent of the consumer's and the two upgrade commands coexist in one database, in either order. The database URL comes from the consumer's sqlalchemy.url or DATABASE_URL (see pravda/migrations/env.py). See the README "Database migrations" section for the full consumer setup.