From 65e09a705f0059ae7eb819c955bb2222b5adfa76 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 20 Feb 2024 23:28:42 +0100 Subject: [PATCH] fix: accept multiple dependency map importer for python --- .../migrations/20240220222323_remove_unique_index.down.sql | 1 + backend/migrations/20240220222323_remove_unique_index.up.sql | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 backend/migrations/20240220222323_remove_unique_index.down.sql create mode 100644 backend/migrations/20240220222323_remove_unique_index.up.sql diff --git a/backend/migrations/20240220222323_remove_unique_index.down.sql b/backend/migrations/20240220222323_remove_unique_index.down.sql new file mode 100644 index 0000000000..d2f607c5b8 --- /dev/null +++ b/backend/migrations/20240220222323_remove_unique_index.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/backend/migrations/20240220222323_remove_unique_index.up.sql b/backend/migrations/20240220222323_remove_unique_index.up.sql new file mode 100644 index 0000000000..18fff0ce7c --- /dev/null +++ b/backend/migrations/20240220222323_remove_unique_index.up.sql @@ -0,0 +1,4 @@ +-- Add up migration script here +DROP INDEX dependency_map_imported_path_idx; + +CREATE INDEX IF NOT EXISTS dependency_map_imported_path_idx ON dependency_map (workspace_id, imported_path);