From 468412becda73ba69711fcb14a09bb69decfb9c1 Mon Sep 17 00:00:00 2001 From: filou Date: Tue, 26 Nov 2024 21:09:45 +0100 Subject: [PATCH] quotes --- core/src/stores/migrations/20241125_nodes_table.sql | 6 +++--- core/src/stores/store.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/stores/migrations/20241125_nodes_table.sql b/core/src/stores/migrations/20241125_nodes_table.sql index 084891f0ba51..7fac3f597bbc 100644 --- a/core/src/stores/migrations/20241125_nodes_table.sql +++ b/core/src/stores/migrations/20241125_nodes_table.sql @@ -27,9 +27,9 @@ CREATE TABLE data_sources_nodes ( FOREIGN KEY("table") REFERENCES tables(id), FOREIGN KEY(folder) REFERENCES data_sources_folders(id), CONSTRAINT data_sources_nodes_document_id_table_id_folder_id_check CHECK ( - (document IS NOT NULL AND table IS NULL AND folder IS NULL) OR - (document IS NULL AND table IS NOT NULL AND folder IS NULL) OR - (document IS NULL AND table IS NULL AND folder IS NOT NULL) + (document IS NOT NULL AND "table" IS NULL AND folder IS NULL) OR + (document IS NULL AND "table" IS NOT NULL AND folder IS NULL) OR + (document IS NULL AND "table" IS NULL AND folder IS NOT NULL) ) ); diff --git a/core/src/stores/store.rs b/core/src/stores/store.rs index ac8897ce33ab..a8ad0ef4d322 100644 --- a/core/src/stores/store.rs +++ b/core/src/stores/store.rs @@ -523,9 +523,9 @@ pub const POSTGRES_TABLES: [&'static str; 16] = [ FOREIGN KEY(\"table\") REFERENCES tables(id), FOREIGN KEY(folder) REFERENCES data_sources_folders(id), CONSTRAINT data_sources_nodes_document_id_table_id_folder_id_check CHECK ( - (document IS NOT NULL AND table IS NULL AND folder IS NULL) OR - (document IS NULL AND table IS NOT NULL AND folder IS NULL) OR - (document IS NULL AND table IS NULL AND folder IS NOT NULL) + (document IS NOT NULL AND \"table\" IS NULL AND folder IS NULL) OR + (document IS NULL AND \"table\" IS NOT NULL AND folder IS NULL) OR + (document IS NULL AND \"table\" IS NULL AND folder IS NOT NULL) ) );", ];