Skip to main content
The Migrations service provides read-only access to the database migration status and history. It’s useful for monitoring the current state of your SnackBase deployment and tracking schema changes.

Overview

Migration operations require superadmin authentication. This service only provides read access to migration information. Actual migrations are run server-side.

List Migrations

Get all available Alembic migrations with their application status:
Each migration includes:

Get Current Migration

Get the currently applied database revision:
Returns null if no migrations have been applied yet.

Get Migration History

Get the complete migration history in chronological order:
This shows all migrations that have been applied to the database, in the order they were applied.

Use Cases

Version Check

Check if the database is up to date:

Health Monitoring

Include migration status in health checks:

Display Status

Show migration information in an admin dashboard:

Next Steps