Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
61330fc2
Commit
61330fc2
authored
6 months ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
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
Branches containing commit
No related tags found
1 merge request
!137
Sazba diplomů
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
db/db.ddl
+2
-0
2 additions, 0 deletions
db/db.ddl
db/upgrade-20250117.sql
+2
-0
2 additions, 0 deletions
db/upgrade-20250117.sql
with
4 additions
and
0 deletions
db/db.ddl
+
2
−
0
View file @
61330fc2
...
@@ -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 (
...
...
This diff is collapsed.
Click to expand it.
db/upgrade-20250117.sql
+
2
−
0
View file @
61330fc2
...
@@ -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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment