Skip to content
Snippets Groups Projects
Commit 61330fc2 authored by Martin Mareš's avatar Martin Mareš
Browse files

DB: Index na hledání diplomů podle uživatele

Index k primárnímu klíči vyžaduje znát i certificate_set.
parent e78e13ec
Branches
No related tags found
1 merge request!137Sazba diplomů
...@@ -544,6 +544,8 @@ CREATE TABLE certificates ( ...@@ -544,6 +544,8 @@ CREATE TABLE certificates (
UNIQUE (cert_set_id, user_id, type) UNIQUE (cert_set_id, user_id, type)
); );
CREATE INDEX certificates_user_id_index ON certificates (user_id);
-- Odeslané mailové notifikace -- Odeslané mailové notifikace
CREATE TABLE sent_email ( CREATE TABLE sent_email (
......
...@@ -41,3 +41,5 @@ CREATE TABLE certificates ( ...@@ -41,3 +41,5 @@ CREATE TABLE certificates (
page_number int NOT NULL, page_number int NOT NULL,
UNIQUE (cert_set_id, user_id, type) UNIQUE (cert_set_id, user_id, type)
); );
CREATE INDEX certificates_user_id_index ON certificates (user_id);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment