Repository navigation
v0.3.0
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 headEach 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.