From c16ee19c10793b5826317e04d068434c039fb118 Mon Sep 17 00:00:00 2001 From: Thomas Draier Date: Fri, 9 Aug 2024 11:19:10 +0200 Subject: [PATCH] [front] fix: Remove duplicate constraint (#6720) --- front/migrations/db/migration_56.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 front/migrations/db/migration_56.sql diff --git a/front/migrations/db/migration_56.sql b/front/migrations/db/migration_56.sql new file mode 100644 index 000000000000..e03e6a6b429a --- /dev/null +++ b/front/migrations/db/migration_56.sql @@ -0,0 +1,8 @@ +ALTER TABLE "agent_data_source_configurations" +DROP CONSTRAINT IF EXISTS "agent_data_source_configurations_dataSourceViewId_fkey"; + +ALTER TABLE "agent_data_source_configurations" +DROP CONSTRAINT IF EXISTS "agent_data_source_configurations_dataSourceViewId_fkey1"; + +ALTER TABLE "agent_data_source_configurations" +ADD FOREIGN KEY ("dataSourceViewId") REFERENCES "data_source_views" ("id") ON DELETE CASCADE ON UPDATE CASCADE; \ No newline at end of file