mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 06:28:34 +01:00
Thumbnails (#797)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: tonya <tonya@tokia.dev>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
-- +goose Up
|
||||
alter table public.attachments
|
||||
alter column item_attachments drop not null;
|
||||
|
||||
alter table public.attachments
|
||||
add attachment_thumbnail uuid;
|
||||
|
||||
alter table public.attachments
|
||||
add constraint attachments_attachments_thumbnail
|
||||
foreign key (attachment_thumbnail) references public.attachments (id);
|
||||
|
||||
alter table public.attachments
|
||||
add constraint attachments_no_self_reference
|
||||
check (id != attachment_thumbnail);
|
||||
Reference in New Issue
Block a user