Skip to content
Snippets Groups Projects
Commit 2ab633fd authored by Lukáš Paukert's avatar Lukáš Paukert
Browse files

Fixed create script for DB

parent 76ae4339
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ CREATE TABLE TermDocumentOccurrence ...@@ -16,6 +16,7 @@ CREATE TABLE TermDocumentOccurrence
Term_id INTEGER UNSIGNED NOT NULL, Term_id INTEGER UNSIGNED NOT NULL,
Document_id INTEGER UNSIGNED NOT NULL, Document_id INTEGER UNSIGNED NOT NULL,
count INTEGER UNSIGNED NOT NULL, count INTEGER UNSIGNED NOT NULL,
weight DOUBLE,
FOREIGN KEY (Document_id) REFERENCES Document (id), FOREIGN KEY (Document_id) REFERENCES Document (id),
FOREIGN KEY (Term_id) REFERENCES Term (id), FOREIGN KEY (Term_id) REFERENCES Term (id),
UNIQUE (Term_id, Document_id) ON CONFLICT REPLACE UNIQUE (Term_id, Document_id) ON CONFLICT REPLACE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment