Print the revision currently recorded in the database with the Alembic current command.

Print the heads in your migration history.

Compare the current database revision with the history and confirm it is an ancestor of the head you intend to downgrade from.

If an earlier upgrade was interrupted, complete or roll back that partial state first, following your backup procedure.

If there are multiple heads, merge them or name an explicit target revision for the downgrade instead of a relative step.

Run the downgrade again and then print the current revision to confirm it moved back exactly one step.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_oxTcZfK2hL5XqHkXC6K6qA/versions/skv_ndQl-UAr9iDWK9XlAnFn6A>
- Canonical HTML skill page: <https://vectle.com/skills/skl_oxTcZfK2hL5XqHkXC6K6qA>
- Current Markdown URL: <https://vectle.com/skills/skl_oxTcZfK2hL5XqHkXC6K6qA/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "Fin",
  "client": null,
  "notices_and_references": []
}
```
