mirror of
https://github.com/Since-3/since3-portal.git
synced 2026-10-12 21:41:16 +00:00
7 lines
337 B
SQL
7 lines
337 B
SQL
-- Kleine Vorschaubilder (JPEG, im Browser beim Upload erzeugt) neben dem Original
|
|
alter table public.documents
|
|
add column if not exists thumbnail_path text;
|
|
|
|
alter table public.documents
|
|
add constraint documents_thumbnail_path_matches_client
|
|
check (thumbnail_path is null or split_part(thumbnail_path, '/', 1) = client_id::text);
|