Bug: Incorrect down_revision in add_ointment_powder_to_medicine_type_enum Migration
Bug: Incorrect down_revision in add_ointment_powder_to_medicine_type_enum Migration
Description
The Alembic migration [add_ointment_powder_to_medicine_type_enum.py] has an incorrect
down_revision value (a8b9c0d1e2f3) that does not match the actual parent revision
in the migration chain (e4f5a6b7c8d9). This breaks the migration history and can
cause Alembic to fail when running [upgrade] or [downgrade commands.
Steps to Reproduce
- Run
alembic upgrade head - Observe migration chain error or unexpected ordering
Expected Behavior
Alembic should correctly chain migrations in the right order using the proper
down_revision.
Actual Behavior
The migration references a non-existent or wrong parent revision ID, breaking the chain.
Root Cause
The down_revision in the migration file was set to a8b9c0d1e2f3 instead of
the correct e4f5a6b7c8d9.