Alembic Workflow
Lariba Cloud uses Alembic to manage PostgreSQL schema migrations.
Run Alembic from the backend environment where the project dependencies are installed.
Inspect migration heads
alembic headsThis reads the migration graph and does not apply migrations.
Inspect the current database revision
alembic currentThis connects to the configured database and reports its applied revision.
Upgrade a local development database
When the configured database is the intended local development database:
alembic upgrade headThis changes the database schema. Verify the target database before running it.
Safety
Do not run upgrade, downgrade, or stamp operations against an environment unless you have confirmed that environment is the intended target.
Do not use a stamp operation to hide an unexplained migration mismatch.
Next step
Continue with Developer Golden Path.