0019_drop_issue_comment_state_refs.py
python
sha256:a10adeeb7a0169cb9900f9806ed7a973047258abb6283724fe55e8eb68ff3f0a
init: musehub initial commit
Human
171 days ago
| 1 | """Drop state_refs column from musehub_issue_comments. |
| 2 | |
| 3 | state_refs stored parsed musical context references (track:X, section:X, |
| 4 | beats:X-Y) — a music-domain feature removed when the project pivoted to a |
| 5 | general-purpose VCS. The column was always written as [] after the feature |
| 6 | was removed; dropping it cleans up the schema completely. |
| 7 | |
| 8 | Revision ID: 0019 |
| 9 | Revises: 0018 |
| 10 | """ |
| 11 | from __future__ import annotations |
| 12 | |
| 13 | import sqlalchemy as sa |
| 14 | from alembic import op |
| 15 | |
| 16 | revision = "0019" |
| 17 | down_revision = "0018" |
| 18 | branch_labels = None |
| 19 | depends_on = None |
| 20 | |
| 21 | |
| 22 | def upgrade() -> None: |
| 23 | op.drop_column("musehub_issue_comments", "state_refs") |
| 24 | |
| 25 | |
| 26 | def downgrade() -> None: |
| 27 | op.add_column( |
| 28 | "musehub_issue_comments", |
| 29 | sa.Column("state_refs", sa.JSON(), nullable=False, server_default="[]"), |
| 30 | ) |
File History
1 commit
sha256:a10adeeb7a0169cb9900f9806ed7a973047258abb6283724fe55e8eb68ff3f0a
init: musehub initial commit
Human
171 days ago