From d8434cbffb94606b1551e636121d6806790db95d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 22 Jun 2026 13:26:21 +0200 Subject: [PATCH] :bug: Add missing migrations (#10363) --- backend/src/app/migrations.clj | 8 +++++++- .../app/migrations/sql/0150-mod-storage-object-table.sql | 1 + .../sql/0151-mod-file-tagged-object-thumbnail-table.sql | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 backend/src/app/migrations/sql/0150-mod-storage-object-table.sql create mode 100644 backend/src/app/migrations/sql/0151-mod-file-tagged-object-thumbnail-table.sql diff --git a/backend/src/app/migrations.clj b/backend/src/app/migrations.clj index 043502fc74..d57a91b666 100644 --- a/backend/src/app/migrations.clj +++ b/backend/src/app/migrations.clj @@ -484,7 +484,13 @@ :fn (mg/resource "app/migrations/sql/0148-add-variant-name-team-font-variant.sql")} {:name "0149-mod-file-library-rel-synced-at" - :fn (mg/resource "app/migrations/sql/0149-mod-file-library-rel-synced-at.sql")}]) + :fn (mg/resource "app/migrations/sql/0149-mod-file-library-rel-synced-at.sql")} + + {:name "0150-mod-storage-object-table" + :fn (mg/resource "app/migrations/sql/0150-mod-storage-object-table.sql")} + + {:name "0151-mod-file-tagged-object-thumbnail-table" + :fn (mg/resource "app/migrations/sql/0151-mod-file-tagged-object-thumbnail-table.sql")}]) (defn apply-migrations! [pool name migrations] diff --git a/backend/src/app/migrations/sql/0150-mod-storage-object-table.sql b/backend/src/app/migrations/sql/0150-mod-storage-object-table.sql new file mode 100644 index 0000000000..487fd66433 --- /dev/null +++ b/backend/src/app/migrations/sql/0150-mod-storage-object-table.sql @@ -0,0 +1 @@ +CREATE INDEX IF NOT EXISTS storage_object__metadata_upload_id__idx ON storage_object ((metadata->>'~:upload-id')) WHERE deleted_at IS NULL; diff --git a/backend/src/app/migrations/sql/0151-mod-file-tagged-object-thumbnail-table.sql b/backend/src/app/migrations/sql/0151-mod-file-tagged-object-thumbnail-table.sql new file mode 100644 index 0000000000..394c9ba31f --- /dev/null +++ b/backend/src/app/migrations/sql/0151-mod-file-tagged-object-thumbnail-table.sql @@ -0,0 +1 @@ +CREATE INDEX IF NOT EXISTS file_tagged_object_thumbnail__object_id__idx ON file_tagged_object_thumbnail (object_id);