"""drop notes.kind — a checklist is something a note has Revision ID: 0025 Revises: 0024 Create Date: 2026-08-22 A note is a body plus optional checkable items. Items are rows in their own table, so a `kind = 'list'` note keeps every one. """ from alembic import op import sqlalchemy as sa revision = "0025" down_revision = "0024" branch_labels = None depends_on = None def upgrade() -> None: op.drop_column("notes", "kind") def downgrade() -> None: # server_default so existing rows get a value. Every note comes back as 'text': # nothing records which were lists. op.add_column("notes", sa.Column("kind", sa.Text(), nullable=False, server_default="text"))