summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-12-10 11:10:18 +0100
committerSimon Rettberg2018-12-10 11:10:18 +0100
commita9b692cae36e56ec986ed43c5d1ad2c032f4d0f9 (patch)
treeb042e9f20275ff009e86c641e465b6720b6a884a
parent[server] ADD CLASS! FINISH WRITING!t push (diff)
downloadtutor-module-a9b692cae36e56ec986ed43c5d1ad2c032f4d0f9.tar.gz
tutor-module-a9b692cae36e56ec986ed43c5d1ad2c032f4d0f9.tar.xz
tutor-module-a9b692cae36e56ec986ed43c5d1ad2c032f4d0f9.zip
[server] Add scriptname index
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Updater.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Updater.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Updater.java
index 26bb1856..e3c2e874 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Updater.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Updater.java
@@ -266,7 +266,8 @@ public class Updater {
+ " passcreds tinyint(1) NOT NULL,"
+ " isglobal tinyint(1) NOT NULL COMMENT 'Whether to apply this script to all lectures',"
+ " PRIMARY KEY (runscriptid),"
- + " KEY isglobal (isglobal)"
+ + " KEY isglobal (isglobal),"
+ + " KEY scriptname (scriptname)"
+ ") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci")
.executeUpdate();
LOGGER.info("Updated database: Created table presetrunscript");