s3 support

This commit is contained in:
onysd 2026-08-04 23:09:11 +03:00
parent fa5cfaf14d
commit 03f10b66ee
53 changed files with 2796 additions and 102 deletions

View file

@ -0,0 +1,11 @@
DROP INDEX IF EXISTS idx_photos_orphaned_at;
DROP INDEX IF EXISTS idx_documents_orphaned_at;
ALTER TABLE public.photos DROP COLUMN IF EXISTS orphaned_at;
ALTER TABLE public.documents DROP COLUMN IF EXISTS orphaned_at;
DROP TABLE IF EXISTS public.media_references;
DROP INDEX IF EXISTS idx_photos_owner_user_id;
DROP INDEX IF EXISTS idx_documents_owner_user_id;
ALTER TABLE public.photos DROP COLUMN IF EXISTS owner_user_id;
ALTER TABLE public.documents DROP COLUMN IF EXISTS owner_user_id;