diff --git a/alembic/versions/0019_attachment_filename.py b/alembic/versions/0019_attachment_filename.py new file mode 100644 index 0000000..debb41e --- /dev/null +++ b/alembic/versions/0019_attachment_filename.py @@ -0,0 +1,25 @@ +"""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") diff --git a/frontend/src/components/Icon.vue b/frontend/src/components/Icon.vue index 6eee4de..1121e8f 100644 --- a/frontend/src/components/Icon.vue +++ b/frontend/src/components/Icon.vue @@ -26,6 +26,7 @@ const paths: Record = { download: '', upload: '', device: '', + paperclip: '', copy: '', }; diff --git a/frontend/src/components/NoteCard.vue b/frontend/src/components/NoteCard.vue index f292255..f8669db 100644 --- a/frontend/src/components/NoteCard.vue +++ b/frontend/src/components/NoteCard.vue @@ -1,5 +1,5 @@