"""note_attachments.filename (any-file attachments — M6 1900) Revision ID: 0019 Revises: 0018 Create Date: 2026-07-23 Attachments broaden beyond images to any file; the original filename is recorded for the download name + display of non-image files. Nullable (old image rows have none — they render inline by mime anyway). """ from alembic import op import sqlalchemy as sa revision = "0019" down_revision = "0018" branch_labels = None depends_on = None def upgrade() -> None: op.add_column("note_attachments", sa.Column("filename", sa.Text(), nullable=True)) def downgrade() -> None: op.drop_column("note_attachments", "filename")