Skip to content

Commit

Permalink
quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Nov 26, 2024
1 parent ad11282 commit 468412b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions core/src/stores/migrations/20241125_nodes_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);

Expand Down
6 changes: 3 additions & 3 deletions core/src/stores/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);",
];
Expand Down

0 comments on commit 468412b

Please sign in to comment.