from __future__ import annotations """Rename muse_commits.metadata → commit_metadata. The column was named 'metadata' in the DB but 'commit_metadata' in the ORM to avoid collision with SQLAlchemy's DeclarativeBase.metadata attribute. This migration aligns the DB column name with the Python attribute name, removing the ORM alias. Revision ID: 0029 Revises: 0028 Create Date: 2026-04-07 """ from alembic import op revision = "0029" down_revision = "0028" branch_labels = None depends_on = None def upgrade() -> None: op.alter_column("muse_commits", "metadata", new_column_name="commit_metadata") def downgrade() -> None: op.alter_column("muse_commits", "commit_metadata", new_column_name="metadata")