penpot/backend/src/app/migrations/sql/0068-mod-storage-object-table.sql
2022-03-03 16:05:52 +01:00

4 lines
161 B
SQL

CREATE INDEX storage_object__hash_backend_bucket__idx
ON storage_object ((metadata->>'~:hash'), (metadata->>'~:bucket'), backend)
WHERE deleted_at IS NULL;