From 34d32615f85b0961e1bd784227bc75d58206b2de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Noack?= <noack@data-quest.de>
Date: Mon, 21 Nov 2022 15:48:38 +0000
Subject: Resolve #1430 "Release 5.2"

Closes #1430

Merge request studip/studip!1183
---
 config/config_defaults.inc.php    |    6 +-
 db/studip.sql                     | 3591 +++++++++++++++++++------------------
 db/studip_default_data.sql        |   99 +-
 db/studip_demo_data.sql           |   36 +-
 db/studip_mvv_demo_data.sql       |    2 +
 db/studip_resources_demo_data.sql |   49 +-
 public/history.txt                |   25 +
 7 files changed, 1970 insertions(+), 1838 deletions(-)

diff --git a/config/config_defaults.inc.php b/config/config_defaults.inc.php
index f5f5187..e9ac59e 100644
--- a/config/config_defaults.inc.php
+++ b/config/config_defaults.inc.php
@@ -218,11 +218,11 @@ $MAIL_ABUSE = "";                                   //mail adress to reply to in
 $MAIL_BULK_DELIVERY = FALSE;                        //try to improve the message queueing rate (experimental, does not work for php transport)
 
 $MAIL_VALIDATE_HOST = TRUE;                             //check for valid mail host when user enters email adress
-$MAIL_VALIDATE_BOX = TRUE;                              //check for valid mail account when user enters email adress; set to false if the webserver got no valid MX record
+$MAIL_VALIDATE_BOX = FALSE;                              //check for valid mail account when user enters email adress; set to false if the webserver got no valid MX record
 
 $MESSAGING_FORWARD_AS_EMAIL = TRUE;                         //enable to forward every internal message to the user-mail (the user is able to deactivate this function in his personal settings)
-$MESSAGING_FORWARD_DEFAULT = 1;                             //the default setting: if 1, the user has to switch it on; if 2, every message will be forwarded; if 3 every message will be forwarded on request of the sender
-$MESSAGING_FORWARD_USE_REPLYTO = FALSE;                     //send forwarded messages as system user and add reply-to header
+$MESSAGING_FORWARD_DEFAULT = 2;                             //the default setting: if 1, the user has to switch it on; if 2, every message will be forwarded; if 3 every message will be forwarded on request of the sender
+$MESSAGING_FORWARD_USE_REPLYTO = TRUE;                     //send forwarded messages as system user and add reply-to header
 
 $ENABLE_EMAIL_TO_STATUSGROUP = TRUE;                                // enable to send messages to whole status groups
 
diff --git a/db/studip.sql b/db/studip.sql
index 1d65c16..a486ebe 100644
--- a/db/studip.sql
+++ b/db/studip.sql
@@ -1,13 +1,13 @@
--- MySQL dump 10.19  Distrib 10.3.31-MariaDB, for debian-linux-gnu (x86_64)
+-- MySQL dump 10.13  Distrib 8.0.31, for Linux (x86_64)
 --
--- Host: localhost    Database: studip_51
+-- Host: localhost    Database: studip_52
 -- ------------------------------------------------------
--- Server version	10.3.31-MariaDB-0+deb10u1
+-- Server version	8.0.31-0ubuntu0.22.04.1
 
 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8mb4 */;
+/*!50503 SET NAMES utf8mb4 */;
 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
 /*!40103 SET TIME_ZONE='+00:00' */;
 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
@@ -21,22 +21,22 @@
 
 DROP TABLE IF EXISTS `Institute`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `Institute` (
   `Institut_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `Name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `Name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `fakultaets_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `Strasse` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `Plz` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'http://www.studip.de',
-  `telefon` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `fax` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `lit_plugin_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `srienabled` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `Strasse` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `Plz` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'http://www.studip.de',
+  `telefon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `fax` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `type` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `lit_plugin_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `srienabled` tinyint unsigned NOT NULL DEFAULT '0',
   `lock_rule` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   PRIMARY KEY (`Institut_id`),
   KEY `fakultaets_id` (`fakultaets_id`)
@@ -49,16 +49,16 @@ CREATE TABLE `Institute` (
 
 DROP TABLE IF EXISTS `abschluss`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `abschluss` (
   `abschluss_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `name_kurz` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `beschreibung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `name_kurz` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `beschreibung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`abschluss_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -69,19 +69,19 @@ CREATE TABLE `abschluss` (
 
 DROP TABLE IF EXISTS `activities`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `activities` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `object_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `object_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `context` enum('system','course','institute','user') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `context_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `provider` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `actor_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `actor_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `actor_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `actor_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `verb` enum('answered','attempted','attended','completed','created','deleted','edited','experienced','failed','imported','interacted','passed','shared','sent','voided') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'experienced',
-  `content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `object_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `object_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`),
   KEY `context_id` (`context_id`),
   KEY `mkdate` (`mkdate`),
@@ -96,12 +96,12 @@ CREATE TABLE `activities` (
 
 DROP TABLE IF EXISTS `admission_condition`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `admission_condition` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `filter_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `conditiongroup_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`,`filter_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -112,10 +112,10 @@ CREATE TABLE `admission_condition` (
 
 DROP TABLE IF EXISTS `admission_conditiongroup`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `admission_conditiongroup` (
   `conditiongroup_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `quota` int(11) NOT NULL,
+  `quota` int NOT NULL,
   PRIMARY KEY (`conditiongroup_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -126,15 +126,15 @@ CREATE TABLE `admission_conditiongroup` (
 
 DROP TABLE IF EXISTS `admission_seminar_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `admission_seminar_user` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `status` enum('awaiting','accepted') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned DEFAULT NULL,
-  `position` int(5) DEFAULT NULL,
-  `comment` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned DEFAULT NULL,
+  `position` int DEFAULT NULL,
+  `comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `visible` enum('yes','no','unknown') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'unknown',
   PRIMARY KEY (`user_id`,`seminar_id`),
   KEY `seminar_id` (`seminar_id`,`status`)
@@ -147,14 +147,14 @@ CREATE TABLE `admission_seminar_user` (
 
 DROP TABLE IF EXISTS `admissionfactor`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `admissionfactor` (
   `list_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `factor` float NOT NULL DEFAULT 1,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `factor` float NOT NULL DEFAULT '1',
   `owner_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`list_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -165,47 +165,32 @@ CREATE TABLE `admissionfactor` (
 
 DROP TABLE IF EXISTS `admissionrule_compat`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `admissionrule_compat` (
   `rule_type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `compat_rule_type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_type`,`compat_rule_type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
--- Table structure for table `admissionrule_inst`
---
-
-DROP TABLE IF EXISTS `admissionrule_inst`;
-/*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `admissionrule_inst` (
-  `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `institute_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  PRIMARY KEY (`rule_id`,`institute_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
 -- Table structure for table `admissionrules`
 --
 
 DROP TABLE IF EXISTS `admissionrules`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `admissionrules` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `ruletype` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `active` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `ruletype` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `active` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`id`),
   UNIQUE KEY `ruletype` (`ruletype`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -214,12 +199,12 @@ CREATE TABLE `admissionrules` (
 
 DROP TABLE IF EXISTS `[REDACTED];
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `[REDACTED] (
   `route_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `consumer_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `method` char(6) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `granted` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `granted` tinyint unsigned NOT NULL DEFAULT '0',
   UNIQUE KEY `route_id` (`route_id`,`consumer_id`,`method`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -230,26 +215,26 @@ CREATE TABLE `[REDACTED] (
 
 DROP TABLE IF EXISTS `api_consumers`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `api_consumers` (
   `consumer_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `consumer_type` enum('http','studip','oauth') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'studip',
-  `auth_key` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `auth_secret` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `active` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `system` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `auth_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `auth_secret` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `active` tinyint unsigned NOT NULL DEFAULT '0',
+  `system` tinyint unsigned NOT NULL DEFAULT '0',
   `type` enum('website','mobile','desktop') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT 'website',
-  `title` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `contact` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `callback` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `title` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `contact` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `callback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `commercial` tinyint(1) DEFAULT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `priority` int(11) unsigned NOT NULL DEFAULT 0,
-  `notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `priority` int unsigned NOT NULL DEFAULT '0',
+  `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`consumer_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -260,11 +245,11 @@ CREATE TABLE `api_consumers` (
 
 DROP TABLE IF EXISTS `[REDACTED];
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `[REDACTED] (
-  `oauth_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
+  `oauth_id` int unsigned NOT NULL AUTO_INCREMENT,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`oauth_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -275,13 +260,13 @@ CREATE TABLE `[REDACTED] (
 
 DROP TABLE IF EXISTS `[REDACTED];
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `[REDACTED] (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `consumer_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `granted` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `granted` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`user_id`,`consumer_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -292,25 +277,25 @@ CREATE TABLE `[REDACTED] (
 
 DROP TABLE IF EXISTS `archiv`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `archiv` (
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `untertitel` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `beschreibung` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `start_time` int(11) unsigned NOT NULL DEFAULT 0,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `untertitel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `beschreibung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `start_time` int unsigned NOT NULL DEFAULT '0',
   `semester` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `heimat_inst_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `institute` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `dozenten` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `fakultaet` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `dump` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
+  `institute` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `dozenten` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `fakultaet` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `dump` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `archiv_file_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `archiv_protected_file_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `forumdump` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `wikidump` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `studienbereiche` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `forumdump` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `wikidump` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `studienbereiche` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `VeranstaltungsNummer` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   PRIMARY KEY (`seminar_id`),
   KEY `heimat_inst_id` (`heimat_inst_id`)
@@ -323,7 +308,7 @@ CREATE TABLE `archiv` (
 
 DROP TABLE IF EXISTS `archiv_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `archiv_user` (
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -339,17 +324,17 @@ CREATE TABLE `archiv_user` (
 
 DROP TABLE IF EXISTS `auth_extern`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `auth_extern` (
   `studip_user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `external_user_id` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `external_user_name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `external_user_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `external_user_password` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `external_user_token` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `external_user_token_valid_until` int(11) NOT NULL DEFAULT 0,
+  `external_user_token_valid_until` int NOT NULL DEFAULT '0',
   `external_user_category` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `external_user_system_type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `external_user_type` smallint(6) NOT NULL DEFAULT 0,
+  `external_user_type` smallint NOT NULL DEFAULT '0',
   PRIMARY KEY (`studip_user_id`,`external_user_system_type`,`external_user_type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -360,19 +345,19 @@ CREATE TABLE `auth_extern` (
 
 DROP TABLE IF EXISTS `auth_user_md5`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `auth_user_md5` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `username` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `password` varbinary(64) NOT NULL DEFAULT '',
   `perms` enum('user','autor','tutor','dozent','admin','root') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'user',
-  `Vorname` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `Nachname` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `Email` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `Vorname` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `Nachname` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `Email` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `validation_key` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `auth_plugin` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT 'standard',
-  `locked` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `lock_comment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `auth_plugin` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'standard',
+  `locked` tinyint unsigned NOT NULL DEFAULT '0',
+  `lock_comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `locked_by` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `visible` enum('global','always','yes','unknown','no','never') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'unknown',
   PRIMARY KEY (`user_id`),
@@ -387,11 +372,11 @@ CREATE TABLE `auth_user_md5` (
 
 DROP TABLE IF EXISTS `auto_insert_sem`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `auto_insert_sem` (
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `status` enum('autor','tutor','dozent') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'autor',
-  `domain_id` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `domain_id` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   PRIMARY KEY (`seminar_id`,`status`,`domain_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -402,11 +387,11 @@ CREATE TABLE `auto_insert_sem` (
 
 DROP TABLE IF EXISTS `auto_insert_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `auto_insert_user` (
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`seminar_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -417,15 +402,15 @@ CREATE TABLE `auto_insert_user` (
 
 DROP TABLE IF EXISTS `aux_lock_rules`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `aux_lock_rules` (
   `lock_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `attributes` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `sorting` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `attributes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `sorting` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`lock_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -436,21 +421,21 @@ CREATE TABLE `aux_lock_rules` (
 
 DROP TABLE IF EXISTS `banner_ads`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `banner_ads` (
   `ad_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `banner_path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `alttext` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `banner_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `alttext` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `target_type` enum('url','seminar','inst','user','none') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'url',
-  `target` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `startdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `enddate` int(11) unsigned NOT NULL DEFAULT 0,
-  `priority` int(11) unsigned NOT NULL DEFAULT 0,
-  `views` int(11) unsigned NOT NULL DEFAULT 0,
-  `clicks` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `target` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `startdate` int unsigned NOT NULL DEFAULT '0',
+  `enddate` int unsigned NOT NULL DEFAULT '0',
+  `priority` int unsigned NOT NULL DEFAULT '0',
+  `views` int unsigned NOT NULL DEFAULT '0',
+  `clicks` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`ad_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -461,10 +446,10 @@ CREATE TABLE `banner_ads` (
 
 DROP TABLE IF EXISTS `banner_roles`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `banner_roles` (
   `ad_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `roleid` int(10) NOT NULL,
+  `roleid` int NOT NULL,
   PRIMARY KEY (`ad_id`,`roleid`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -475,16 +460,16 @@ CREATE TABLE `banner_roles` (
 
 DROP TABLE IF EXISTS `blubber_comments`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `blubber_comments` (
   `comment_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `thread_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `external_contact` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `network` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
+  `external_contact` tinyint unsigned NOT NULL DEFAULT '0',
+  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `network` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`comment_id`),
   KEY `thread_id` (`thread_id`),
   KEY `user_id` (`user_id`)
@@ -497,11 +482,11 @@ CREATE TABLE `blubber_comments` (
 
 DROP TABLE IF EXISTS `blubber_events_queue`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `blubber_events_queue` (
   `event_type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `item_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`event_type`,`item_id`,`mkdate`),
   KEY `item_id` (`item_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -513,11 +498,11 @@ CREATE TABLE `blubber_events_queue` (
 
 DROP TABLE IF EXISTS `blubber_follower`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `blubber_follower` (
   `studip_user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `external_contact_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `left_follows_right` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `left_follows_right` tinyint unsigned NOT NULL DEFAULT '0',
   KEY `studip_user_id` (`studip_user_id`),
   KEY `external_contact_id` (`external_contact_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -529,13 +514,13 @@ CREATE TABLE `blubber_follower` (
 
 DROP TABLE IF EXISTS `blubber_mentions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `blubber_mentions` (
-  `mention_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
+  `mention_id` int unsigned NOT NULL AUTO_INCREMENT,
   `thread_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `external_contact` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
+  `external_contact` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`mention_id`),
   UNIQUE KEY `unique_users_per_topic` (`thread_id`,`user_id`,`external_contact`),
   KEY `topic_id` (`thread_id`),
@@ -549,10 +534,10 @@ CREATE TABLE `blubber_mentions` (
 
 DROP TABLE IF EXISTS `blubber_tags`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `blubber_tags` (
   `topic_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `tag` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `tag` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`topic_id`,`tag`),
   KEY `tag` (`tag`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -564,20 +549,20 @@ CREATE TABLE `blubber_tags` (
 
 DROP TABLE IF EXISTS `blubber_threads`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `blubber_threads` (
   `thread_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `context_type` enum('public','private','course','institute') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'public',
   `context_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `external_contact` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `display_class` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `visible_in_stream` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `commentable` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `metadata` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
+  `external_contact` tinyint unsigned NOT NULL DEFAULT '0',
+  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `display_class` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `visible_in_stream` tinyint unsigned NOT NULL DEFAULT '0',
+  `commentable` tinyint unsigned NOT NULL DEFAULT '0',
+  `metadata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `chdate` int unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`thread_id`),
   KEY `context_type` (`context_type`),
   KEY `context_id` (`context_id`),
@@ -591,14 +576,14 @@ CREATE TABLE `blubber_threads` (
 
 DROP TABLE IF EXISTS `blubber_threads_followstates`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `blubber_threads_followstates` (
   `thread_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `state` enum('followed','unfollowed') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'unfollowed',
-  `mkdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`thread_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -607,11 +592,11 @@ CREATE TABLE `blubber_threads_followstates` (
 
 DROP TABLE IF EXISTS `cache`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cache` (
   `cache_key` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `content` mediumblob NOT NULL,
-  `expires` int(11) unsigned NOT NULL,
+  `expires` int unsigned NOT NULL,
   PRIMARY KEY (`cache_key`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -622,13 +607,13 @@ CREATE TABLE `cache` (
 
 DROP TABLE IF EXISTS `cache_operations`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cache_operations` (
-  `cache_key` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `cache_key` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `operation` char(6) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `parameters` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`cache_key`(200),`operation`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -639,15 +624,15 @@ CREATE TABLE `cache_operations` (
 
 DROP TABLE IF EXISTS `cache_types`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cache_types` (
-  `cache_id` int(11) NOT NULL AUTO_INCREMENT,
-  `class_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `chdate` int(11) DEFAULT NULL,
-  `mkdate` int(11) DEFAULT NULL,
+  `cache_id` int NOT NULL AUTO_INCREMENT,
+  `class_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `chdate` int DEFAULT NULL,
+  `mkdate` int DEFAULT NULL,
   PRIMARY KEY (`cache_id`),
   UNIQUE KEY `class_name` (`class_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -656,13 +641,13 @@ CREATE TABLE `cache_types` (
 
 DROP TABLE IF EXISTS `calendar_event`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `calendar_event` (
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `event_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `group_status` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `group_status` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`range_id`,`event_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -673,13 +658,13 @@ CREATE TABLE `calendar_event` (
 
 DROP TABLE IF EXISTS `calendar_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `calendar_user` (
   `owner_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `permission` int(2) NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `permission` int NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`owner_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -690,18 +675,18 @@ CREATE TABLE `calendar_user` (
 
 DROP TABLE IF EXISTS `clipboard_items`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `clipboard_items` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `clipboard_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `clipboard_id` int NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'SimpleORMap',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
   KEY `clipboard_id` (`clipboard_id`),
   KEY `range` (`range_id`,`range_type`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -710,18 +695,18 @@ CREATE TABLE `clipboard_items` (
 
 DROP TABLE IF EXISTS `clipboards`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `clipboards` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `id` int NOT NULL AUTO_INCREMENT,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `name` varchar(256) NOT NULL DEFAULT '',
   `handler` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'Clipboard',
   `allowed_item_class` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'StudipItem',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
   KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -730,15 +715,15 @@ CREATE TABLE `clipboards` (
 
 DROP TABLE IF EXISTS `colour_values`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `colour_values` (
   `colour_id` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `description` varchar(256) NOT NULL DEFAULT '',
   `value` varchar(8) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'ffffffff',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`colour_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -747,14 +732,14 @@ CREATE TABLE `colour_values` (
 
 DROP TABLE IF EXISTS `comments`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `comments` (
   `comment_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `object_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`comment_id`),
   KEY `object_id` (`object_id`),
   KEY `user_id` (`user_id`)
@@ -767,15 +752,15 @@ CREATE TABLE `comments` (
 
 DROP TABLE IF EXISTS `conditionaladmissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `conditionaladmissions` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `message` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `start_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `end_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `conditions_stopped` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `start_time` int unsigned NOT NULL DEFAULT '0',
+  `end_time` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `conditions_stopped` tinyint unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -786,16 +771,16 @@ CREATE TABLE `conditionaladmissions` (
 
 DROP TABLE IF EXISTS `config`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `config` (
   `field` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `value` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `type` enum('boolean','integer','string','array','i18n') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'string',
   `range` enum('global','range','user','course','institute') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'global',
-  `section` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `section` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   PRIMARY KEY (`field`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -806,14 +791,14 @@ CREATE TABLE `config` (
 
 DROP TABLE IF EXISTS `config_values`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `config_values` (
   `field` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `value` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `comment` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`field`,`range_id`),
   KEY `field` (`field`,`value`(10)),
   KEY `range_id` (`range_id`)
@@ -826,22 +811,22 @@ CREATE TABLE `config_values` (
 
 DROP TABLE IF EXISTS `consultation_blocks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `consultation_blocks` (
-  `block_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
+  `block_id` int unsigned NOT NULL AUTO_INCREMENT,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_type` enum('user','course','institute') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `start` int(11) unsigned NOT NULL,
-  `end` int(11) unsigned NOT NULL,
-  `room` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `calendar_events` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'Create events for slots',
-  `show_participants` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `start` int unsigned NOT NULL,
+  `end` int unsigned NOT NULL,
+  `room` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `calendar_events` tinyint unsigned NOT NULL DEFAULT '0' COMMENT 'Create events for slots',
+  `show_participants` tinyint unsigned NOT NULL DEFAULT '0',
   `require_reason` enum('no','optional','yes') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'optional',
-  `confirmation_text` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `note` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `size` tinyint(2) unsigned NOT NULL DEFAULT 1 COMMENT 'How many people may book a slot',
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `confirmation_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `size` tinyint unsigned NOT NULL DEFAULT '1' COMMENT 'How many people may book a slot',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`block_id`),
   KEY `range` (`range_id`,`range_type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -853,15 +838,15 @@ CREATE TABLE `consultation_blocks` (
 
 DROP TABLE IF EXISTS `consultation_bookings`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `consultation_bookings` (
-  `booking_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-  `slot_id` int(11) unsigned NOT NULL,
+  `booking_id` int unsigned NOT NULL AUTO_INCREMENT,
+  `slot_id` int unsigned NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `reason` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `student_event_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`booking_id`),
   KEY `block_id` (`slot_id`),
   KEY `user_id` (`user_id`)
@@ -874,14 +859,14 @@ CREATE TABLE `consultation_bookings` (
 
 DROP TABLE IF EXISTS `consultation_events`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `consultation_events` (
-  `slot_id` int(11) unsigned NOT NULL,
+  `slot_id` int unsigned NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `event_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`slot_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -890,12 +875,12 @@ CREATE TABLE `consultation_events` (
 
 DROP TABLE IF EXISTS `consultation_responsibilities`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `consultation_responsibilities` (
-  `block_id` int(11) unsigned NOT NULL,
+  `block_id` int unsigned NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_type` enum('user','institute','statusgroup') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`block_id`,`range_id`,`range_type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -906,15 +891,15 @@ CREATE TABLE `consultation_responsibilities` (
 
 DROP TABLE IF EXISTS `consultation_slots`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `consultation_slots` (
-  `slot_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-  `block_id` int(11) unsigned NOT NULL,
-  `start_time` int(11) unsigned NOT NULL,
-  `end_time` int(11) unsigned NOT NULL,
-  `note` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `slot_id` int unsigned NOT NULL AUTO_INCREMENT,
+  `block_id` int unsigned NOT NULL,
+  `start_time` int unsigned NOT NULL,
+  `end_time` int unsigned NOT NULL,
+  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`slot_id`),
   KEY `block_id` (`block_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -926,11 +911,11 @@ CREATE TABLE `consultation_slots` (
 
 DROP TABLE IF EXISTS `contact`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `contact` (
   `owner_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`owner_id`,`user_id`),
   KEY `user_id` (`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -942,18 +927,18 @@ CREATE TABLE `contact` (
 
 DROP TABLE IF EXISTS `content_terms_of_use_entries`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `content_terms_of_use_entries` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `position` int(10) unsigned NOT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `student_description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `download_condition` tinyint(2) NOT NULL,
-  `icon` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `is_default` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `position` int unsigned NOT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `student_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `download_condition` tinyint NOT NULL,
+  `icon` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `is_default` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -964,16 +949,16 @@ CREATE TABLE `content_terms_of_use_entries` (
 
 DROP TABLE IF EXISTS `coursememberadmissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `coursememberadmissions` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `start_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `end_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `courses` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
-  `modus` tinyint(1) NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `start_time` int unsigned NOT NULL DEFAULT '0',
+  `end_time` int unsigned NOT NULL DEFAULT '0',
+  `courses` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
+  `modus` tinyint(1) NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -984,11 +969,11 @@ CREATE TABLE `coursememberadmissions` (
 
 DROP TABLE IF EXISTS `courseset_factorlist`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `courseset_factorlist` (
   `set_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `factorlist_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`set_id`,`factorlist_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -999,12 +984,12 @@ CREATE TABLE `courseset_factorlist` (
 
 DROP TABLE IF EXISTS `courseset_institute`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `courseset_institute` (
   `set_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `institute_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`set_id`,`institute_id`),
   KEY `institute_id` (`institute_id`,`set_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1016,12 +1001,12 @@ CREATE TABLE `courseset_institute` (
 
 DROP TABLE IF EXISTS `courseset_rule`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `courseset_rule` (
   `set_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
+  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`set_id`,`rule_id`),
   KEY `type` (`set_id`,`type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1033,17 +1018,17 @@ CREATE TABLE `courseset_rule` (
 
 DROP TABLE IF EXISTS `coursesets`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `coursesets` (
   `set_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `infotext` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `algorithm` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `algorithm_run` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `private` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `infotext` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `algorithm` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `algorithm_run` tinyint unsigned NOT NULL DEFAULT '0',
+  `private` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`set_id`),
   KEY `set_user` (`user_id`,`set_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1055,15 +1040,15 @@ CREATE TABLE `coursesets` (
 
 DROP TABLE IF EXISTS `coursewizardsteps`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `coursewizardsteps` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `classname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `classname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `number` tinyint(1) NOT NULL,
-  `enabled` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `enabled` tinyint unsigned NOT NULL DEFAULT '1',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
   UNIQUE KEY `classname` (`classname`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1075,14 +1060,14 @@ CREATE TABLE `coursewizardsteps` (
 
 DROP TABLE IF EXISTS `cronjobs_logs`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cronjobs_logs` (
   `log_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `schedule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `scheduled` int(11) unsigned NOT NULL,
-  `executed` int(11) unsigned NOT NULL,
-  `exception` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `output` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `scheduled` int unsigned NOT NULL,
+  `executed` int unsigned NOT NULL,
+  `exception` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `output` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `duration` float NOT NULL,
   PRIMARY KEY (`log_id`),
   KEY `schedule_id` (`schedule_id`)
@@ -1095,27 +1080,27 @@ CREATE TABLE `cronjobs_logs` (
 
 DROP TABLE IF EXISTS `cronjobs_schedules`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cronjobs_schedules` (
   `schedule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `task_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `active` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `description` varchar(4096) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `parameters` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `active` tinyint unsigned NOT NULL DEFAULT '0',
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `description` varchar(4096) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `priority` enum('low','normal','high') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'normal',
   `type` enum('periodic','once') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'periodic',
-  `minute` tinyint(2) DEFAULT NULL,
-  `hour` tinyint(2) DEFAULT NULL,
-  `day` tinyint(2) DEFAULT NULL,
-  `month` tinyint(2) DEFAULT NULL,
-  `day_of_week` tinyint(1) unsigned DEFAULT NULL,
-  `next_execution` int(11) unsigned NOT NULL DEFAULT 0,
-  `last_execution` int(11) unsigned DEFAULT NULL,
-  `last_result` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `execution_count` bigint(20) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `minute` tinyint DEFAULT NULL,
+  `hour` tinyint DEFAULT NULL,
+  `day` tinyint DEFAULT NULL,
+  `month` tinyint DEFAULT NULL,
+  `day_of_week` tinyint unsigned DEFAULT NULL,
+  `next_execution` int unsigned NOT NULL DEFAULT '0',
+  `last_execution` int unsigned DEFAULT NULL,
+  `last_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `execution_count` bigint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`schedule_id`),
   KEY `task_id` (`task_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1127,16 +1112,16 @@ CREATE TABLE `cronjobs_schedules` (
 
 DROP TABLE IF EXISTS `cronjobs_tasks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cronjobs_tasks` (
   `task_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `filename` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `class` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `active` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `execution_count` bigint(20) unsigned NOT NULL DEFAULT 0,
-  `assigned_count` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `filename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `active` tinyint unsigned NOT NULL DEFAULT '0',
+  `execution_count` bigint unsigned NOT NULL DEFAULT '0',
+  `assigned_count` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`task_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1147,14 +1132,14 @@ CREATE TABLE `cronjobs_tasks` (
 
 DROP TABLE IF EXISTS `cw_block_comments`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_block_comments` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `block_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `block_id` int NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `comment` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `comment` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_block_id` (`block_id`),
   KEY `index_user_id` (`user_id`)
@@ -1167,14 +1152,14 @@ CREATE TABLE `cw_block_comments` (
 
 DROP TABLE IF EXISTS `cw_block_feedbacks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_block_feedbacks` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `block_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `block_id` int NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `feedback` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `feedback` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_block_id` (`block_id`),
   KEY `index_user_id` (`user_id`)
@@ -1187,19 +1172,19 @@ CREATE TABLE `cw_block_feedbacks` (
 
 DROP TABLE IF EXISTS `cw_blocks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_blocks` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `container_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `container_id` int NOT NULL,
   `owner_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `edit_blocker_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `position` int(11) NOT NULL,
+  `position` int NOT NULL,
   `block_type` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `visible` tinyint(1) NOT NULL,
-  `payload` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `payload` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_container_id` (`container_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
@@ -1211,12 +1196,12 @@ CREATE TABLE `cw_blocks` (
 
 DROP TABLE IF EXISTS `cw_bookmarks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_bookmarks` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `element_id` int(11) NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `element_id` int NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`user_id`,`element_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1227,39 +1212,60 @@ CREATE TABLE `cw_bookmarks` (
 
 DROP TABLE IF EXISTS `cw_containers`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_containers` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `structural_element_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `structural_element_id` int NOT NULL,
   `owner_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `edit_blocker_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `position` int(11) NOT NULL,
-  `site` int(11) NOT NULL,
+  `position` int NOT NULL,
+  `site` int NOT NULL,
   `container_type` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `visible` tinyint(1) NOT NULL,
-  `payload` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `payload` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_structural_element_id` (`structural_element_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
+-- Table structure for table `cw_public_links`
+--
+
+DROP TABLE IF EXISTS `cw_public_links`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `cw_public_links` (
+  `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+  `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+  `structural_element_id` int NOT NULL,
+  `password` varbinary(64) NOT NULL,
+  `expire_date` int NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
+  PRIMARY KEY (`id`),
+  KEY `index_user_id` (`user_id`),
+  KEY `index_structural_element_id` (`structural_element_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
 -- Table structure for table `cw_structural_element_comments`
 --
 
 DROP TABLE IF EXISTS `cw_structural_element_comments`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_structural_element_comments` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `structural_element_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `structural_element_id` int NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `comment` mediumtext NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `comment` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_structural_element_id` (`structural_element_id`),
   KEY `index_user_id` (`user_id`)
@@ -1272,14 +1278,14 @@ CREATE TABLE `cw_structural_element_comments` (
 
 DROP TABLE IF EXISTS `cw_structural_element_feedbacks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_structural_element_feedbacks` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `structural_element_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `structural_element_id` int NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `feedback` mediumtext NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `feedback` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_structural_element_id` (`structural_element_id`),
   KEY `index_user_id` (`user_id`)
@@ -1292,29 +1298,31 @@ CREATE TABLE `cw_structural_element_feedbacks` (
 
 DROP TABLE IF EXISTS `cw_structural_elements`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_structural_elements` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `parent_id` int(11) DEFAULT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `parent_id` int DEFAULT NULL,
+  `is_link` tinyint(1) NOT NULL,
+  `target_id` int DEFAULT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_type` enum('course','user') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `owner_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `edit_blocker_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `position` int(11) NOT NULL,
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `position` int NOT NULL,
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `image_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `purpose` enum('content','draft','task','template','oer','other','portfolio') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `payload` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
+  `payload` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `public` tinyint(1) NOT NULL,
-  `release_date` int(11) NOT NULL,
-  `withdraw_date` int(11) NOT NULL,
-  `read_approval` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `write_approval` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `copy_approval` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `external_relations` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `release_date` int NOT NULL,
+  `withdraw_date` int NOT NULL,
+  `read_approval` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `write_approval` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `copy_approval` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `external_relations` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_parent_id` (`parent_id`),
   KEY `index_range_id` (`range_id`)
@@ -1327,14 +1335,14 @@ CREATE TABLE `cw_structural_elements` (
 
 DROP TABLE IF EXISTS `cw_task_feedbacks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_task_feedbacks` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `task_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `task_id` int NOT NULL,
   `lecturer_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `content` mediumtext NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `content` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_task_id` (`task_id`),
   KEY `index_lecturer_id` (`lecturer_id`)
@@ -1347,17 +1355,17 @@ CREATE TABLE `cw_task_feedbacks` (
 
 DROP TABLE IF EXISTS `cw_task_groups`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_task_groups` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `id` int NOT NULL AUTO_INCREMENT,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `lecturer_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `target_id` int(11) NOT NULL,
-  `task_template_id` int(11) NOT NULL,
+  `target_id` int NOT NULL,
+  `task_template_id` int NOT NULL,
   `solver_may_add_blocks` tinyint(1) NOT NULL,
-  `title` varchar(255) NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_seminar_id` (`seminar_id`),
   KEY `index_lecturer_id` (`lecturer_id`)
@@ -1370,20 +1378,20 @@ CREATE TABLE `cw_task_groups` (
 
 DROP TABLE IF EXISTS `cw_tasks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_tasks` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `task_group_id` int(11) NOT NULL,
-  `structural_element_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `task_group_id` int NOT NULL,
+  `structural_element_id` int NOT NULL,
   `solver_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `solver_type` enum('autor','group') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `submission_date` int(11) NOT NULL,
+  `submission_date` int NOT NULL,
   `submitted` tinyint(1) NOT NULL,
   `renewal` enum('pending','granted','declined') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `renewal_date` int(11) NOT NULL,
-  `feedback_id` int(11) DEFAULT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `renewal_date` int NOT NULL,
+  `feedback_id` int DEFAULT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`),
   KEY `index_task_group_id` (`task_group_id`),
   KEY `index_structural_element_id` (`structural_element_id`),
@@ -1397,14 +1405,14 @@ CREATE TABLE `cw_tasks` (
 
 DROP TABLE IF EXISTS `cw_templates`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_templates` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `name` varchar(255) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
   `purpose` enum('content','template','oer','portfolio','draft','other') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `structure` mediumtext NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `structure` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1415,13 +1423,13 @@ CREATE TABLE `cw_templates` (
 
 DROP TABLE IF EXISTS `cw_user_data_fields`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_user_data_fields` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `block_id` int(11) NOT NULL,
-  `payload` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `block_id` int NOT NULL,
+  `payload` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`user_id`,`block_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1432,13 +1440,13 @@ CREATE TABLE `cw_user_data_fields` (
 
 DROP TABLE IF EXISTS `cw_user_progresses`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `cw_user_progresses` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `block_id` int(11) NOT NULL,
+  `block_id` int NOT NULL,
   `grade` float NOT NULL,
-  `mkdate` int(11) NOT NULL,
-  `chdate` int(11) NOT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
   PRIMARY KEY (`user_id`,`block_id`),
   KEY `block_id` (`block_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
@@ -1450,25 +1458,25 @@ CREATE TABLE `cw_user_progresses` (
 
 DROP TABLE IF EXISTS `datafields`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `datafields` (
   `datafield_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `object_type` enum('sem','inst','user','userinstrole','usersemdata','roleinstdata','moduldeskriptor','modulteildeskriptor','studycourse') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `object_class` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `object_type` enum('sem','inst','user','userinstrole','usersemdata','roleinstdata','moduldeskriptor','modulteildeskriptor','studycourse') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `object_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `edit_perms` enum('user','autor','tutor','dozent','admin','root') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `view_perms` enum('all','user','autor','tutor','dozent','admin','root') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `institut_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `priority` tinyint(3) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
-  `type` enum('bool','textline','textlinei18n','textarea','textareai18n','textmarkup','textmarkupi18n','selectbox','date','time','email','phone','radio','combo','link','selectboxmultiple') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'textline',
-  `typeparam` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `is_required` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `default_value` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `is_userfilter` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `system` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `priority` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
+  `type` enum('bool','textline','textlinei18n','textarea','textareai18n','textmarkup','textmarkupi18n','selectbox','date','time','email','phone','radio','combo','link','selectboxmultiple') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'textline',
+  `typeparam` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `is_required` tinyint unsigned NOT NULL DEFAULT '0',
+  `default_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `is_userfilter` tinyint unsigned NOT NULL DEFAULT '0',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `system` tinyint unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`datafield_id`),
   KEY `object_type` (`object_type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1480,13 +1488,13 @@ CREATE TABLE `datafields` (
 
 DROP TABLE IF EXISTS `datafields_entries`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `datafields_entries` (
   `datafield_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   `sec_range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `lang` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   PRIMARY KEY (`datafield_id`,`range_id`,`sec_range_id`,`lang`) USING BTREE,
@@ -1502,15 +1510,15 @@ CREATE TABLE `datafields_entries` (
 
 DROP TABLE IF EXISTS `deputies`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `deputies` (
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `gruppe` tinyint(4) NOT NULL DEFAULT 0,
-  `notification` int(10) NOT NULL DEFAULT 0,
-  `edit_about` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `gruppe` tinyint NOT NULL DEFAULT '0',
+  `notification` int NOT NULL DEFAULT '0',
+  `edit_about` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`range_id`,`user_id`),
   KEY `user_id` (`user_id`,`range_id`,`edit_about`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1522,16 +1530,16 @@ CREATE TABLE `deputies` (
 
 DROP TABLE IF EXISTS `etask_assignment_attempts`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `etask_assignment_attempts` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `assignment_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `assignment_id` int NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `start` int(11) unsigned DEFAULT NULL,
-  `end` int(11) unsigned DEFAULT NULL,
-  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `start` int unsigned DEFAULT NULL,
+  `end` int unsigned DEFAULT NULL,
+  `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1542,15 +1550,15 @@ CREATE TABLE `etask_assignment_attempts` (
 
 DROP TABLE IF EXISTS `etask_assignment_ranges`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `etask_assignment_ranges` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `assignment_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `assignment_id` int NOT NULL,
   `range_type` enum('course','global','group','institute','user') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`id`),
   UNIQUE KEY `assignment_id` (`assignment_id`,`range_type`,`range_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1562,19 +1570,19 @@ CREATE TABLE `etask_assignment_ranges` (
 
 DROP TABLE IF EXISTS `etask_assignments`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `etask_assignments` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `test_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `test_id` int NOT NULL,
   `range_type` enum('course','global','group','institute','user') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `type` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `start` int(11) unsigned DEFAULT NULL,
-  `end` int(11) unsigned DEFAULT NULL,
-  `active` tinyint(1) unsigned NOT NULL,
-  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `start` int unsigned DEFAULT NULL,
+  `end` int unsigned DEFAULT NULL,
+  `active` tinyint unsigned NOT NULL,
+  `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1585,20 +1593,20 @@ CREATE TABLE `etask_assignments` (
 
 DROP TABLE IF EXISTS `etask_responses`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `etask_responses` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `assignment_id` int(11) NOT NULL,
-  `task_id` int(11) NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `assignment_id` int NOT NULL,
+  `task_id` int NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `response` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `response` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `state` tinyint(1) DEFAULT NULL,
   `points` float DEFAULT NULL,
-  `feedback` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `feedback` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `grader_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1609,11 +1617,11 @@ CREATE TABLE `etask_responses` (
 
 DROP TABLE IF EXISTS `etask_task_tags`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `etask_task_tags` (
-  `task_id` int(11) NOT NULL,
+  `task_id` int NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `tag` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `tag` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`task_id`,`user_id`,`tag`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1624,17 +1632,17 @@ CREATE TABLE `etask_task_tags` (
 
 DROP TABLE IF EXISTS `etask_tasks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `etask_tasks` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `type` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `task` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `task` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1645,11 +1653,11 @@ CREATE TABLE `etask_tasks` (
 
 DROP TABLE IF EXISTS `etask_test_tags`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `etask_test_tags` (
-  `test_id` int(11) NOT NULL,
+  `test_id` int NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `tag` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `tag` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`test_id`,`user_id`,`tag`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1660,15 +1668,15 @@ CREATE TABLE `etask_test_tags` (
 
 DROP TABLE IF EXISTS `etask_test_tasks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `etask_test_tasks` (
-  `test_id` int(11) NOT NULL,
-  `task_id` int(11) NOT NULL,
-  `position` int(11) NOT NULL,
+  `test_id` int NOT NULL,
+  `task_id` int NOT NULL,
+  `position` int NOT NULL,
   `points` float DEFAULT NULL,
-  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`test_id`,`task_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1679,15 +1687,15 @@ CREATE TABLE `etask_test_tasks` (
 
 DROP TABLE IF EXISTS `etask_tests`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `etask_tests` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1698,20 +1706,20 @@ CREATE TABLE `etask_tests` (
 
 DROP TABLE IF EXISTS `eval`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `eval` (
   `eval_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `text` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `startdate` int(11) unsigned DEFAULT NULL,
-  `stopdate` int(11) unsigned DEFAULT NULL,
-  `timespan` int(11) unsigned DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `anonymous` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `visible` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `shared` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `startdate` int unsigned DEFAULT NULL,
+  `stopdate` int unsigned DEFAULT NULL,
+  `timespan` int unsigned DEFAULT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `anonymous` tinyint unsigned NOT NULL DEFAULT '1',
+  `visible` tinyint unsigned NOT NULL DEFAULT '1',
+  `shared` tinyint unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`eval_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1722,11 +1730,11 @@ CREATE TABLE `eval` (
 
 DROP TABLE IF EXISTS `eval_group_template`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `eval_group_template` (
   `evalgroup_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `group_type` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal',
+  `group_type` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal',
   PRIMARY KEY (`evalgroup_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1737,7 +1745,7 @@ CREATE TABLE `eval_group_template` (
 
 DROP TABLE IF EXISTS `eval_range`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `eval_range` (
   `eval_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -1751,21 +1759,21 @@ CREATE TABLE `eval_range` (
 
 DROP TABLE IF EXISTS `eval_templates`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `eval_templates` (
   `template_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `institution_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `show_questions` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `show_total_stats` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `show_graphics` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `show_questionblock_headline` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `show_group_headline` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `polscale_gfx_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'bars',
-  `likertscale_gfx_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'bars',
-  `mchoice_scale_gfx_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'bars',
-  `kurzbeschreibung` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `show_questions` tinyint unsigned NOT NULL DEFAULT '1',
+  `show_total_stats` tinyint unsigned NOT NULL DEFAULT '1',
+  `show_graphics` tinyint unsigned NOT NULL DEFAULT '1',
+  `show_questionblock_headline` tinyint unsigned NOT NULL DEFAULT '1',
+  `show_group_headline` tinyint unsigned NOT NULL DEFAULT '1',
+  `polscale_gfx_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'bars',
+  `likertscale_gfx_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'bars',
+  `mchoice_scale_gfx_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'bars',
+  `kurzbeschreibung` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   PRIMARY KEY (`template_id`),
   KEY `user_id` (`user_id`,`institution_id`,`name`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1777,7 +1785,7 @@ CREATE TABLE `eval_templates` (
 
 DROP TABLE IF EXISTS `eval_templates_eval`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `eval_templates_eval` (
   `eval_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `template_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -1792,7 +1800,7 @@ CREATE TABLE `eval_templates_eval` (
 
 DROP TABLE IF EXISTS `eval_templates_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `eval_templates_user` (
   `eval_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `template_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -1807,7 +1815,7 @@ CREATE TABLE `eval_templates_user` (
 
 DROP TABLE IF EXISTS `eval_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `eval_user` (
   `eval_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -1821,16 +1829,16 @@ CREATE TABLE `eval_user` (
 
 DROP TABLE IF EXISTS `evalanswer`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `evalanswer` (
   `evalanswer_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `parent_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `position` int(11) NOT NULL DEFAULT 0,
-  `text` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `value` int(11) NOT NULL DEFAULT 0,
-  `rows` tinyint(4) unsigned NOT NULL DEFAULT 0,
-  `counter` int(11) unsigned NOT NULL DEFAULT 0,
-  `residual` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `position` int NOT NULL DEFAULT '0',
+  `text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `value` int NOT NULL DEFAULT '0',
+  `rows` tinyint unsigned NOT NULL DEFAULT '0',
+  `counter` int unsigned NOT NULL DEFAULT '0',
+  `residual` tinyint unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`evalanswer_id`),
   KEY `parent_id` (`parent_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1842,11 +1850,11 @@ CREATE TABLE `evalanswer` (
 
 DROP TABLE IF EXISTS `evalanswer_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `evalanswer_user` (
   `evalanswer_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `evaldate` int(11) unsigned NOT NULL DEFAULT 0,
+  `evaldate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`evalanswer_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1857,15 +1865,15 @@ CREATE TABLE `evalanswer_user` (
 
 DROP TABLE IF EXISTS `evalgroup`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `evalgroup` (
   `evalgroup_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `parent_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `text` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 0,
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `position` int NOT NULL DEFAULT '0',
   `child_type` enum('EvaluationGroup','EvaluationQuestion') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'EvaluationGroup',
-  `mandatory` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `mandatory` tinyint unsigned NOT NULL DEFAULT '0',
   `template_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   PRIMARY KEY (`evalgroup_id`),
   KEY `parent_id` (`parent_id`)
@@ -1878,14 +1886,14 @@ CREATE TABLE `evalgroup` (
 
 DROP TABLE IF EXISTS `evalquestion`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `evalquestion` (
   `evalquestion_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `parent_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `type` enum('likertskala','multiplechoice','polskala') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'multiplechoice',
-  `position` int(11) NOT NULL DEFAULT 0,
-  `text` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `multiplechoice` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `position` int NOT NULL DEFAULT '0',
+  `text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `multiplechoice` tinyint unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`evalquestion_id`),
   KEY `parent_id` (`parent_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -1897,35 +1905,35 @@ CREATE TABLE `evalquestion` (
 
 DROP TABLE IF EXISTS `event_data`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `event_data` (
   `event_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `start` int(11) unsigned NOT NULL DEFAULT 0,
-  `end` int(11) unsigned NOT NULL DEFAULT 0,
-  `summary` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `uid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `start` int unsigned NOT NULL DEFAULT '0',
+  `end` int unsigned NOT NULL DEFAULT '0',
+  `summary` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `class` enum('PUBLIC','PRIVATE','CONFIDENTIAL') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'PRIVATE',
-  `categories` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `category_intern` tinyint(3) unsigned NOT NULL DEFAULT 0,
-  `priority` tinyint(3) unsigned NOT NULL DEFAULT 0,
-  `location` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `ts` int(11) unsigned NOT NULL DEFAULT 0,
-  `linterval` smallint(5) unsigned DEFAULT NULL,
-  `sinterval` smallint(5) unsigned DEFAULT NULL,
+  `categories` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `category_intern` tinyint unsigned NOT NULL DEFAULT '0',
+  `priority` tinyint unsigned NOT NULL DEFAULT '0',
+  `location` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `ts` int unsigned NOT NULL DEFAULT '0',
+  `linterval` smallint unsigned DEFAULT NULL,
+  `sinterval` smallint unsigned DEFAULT NULL,
   `wdays` varchar(7) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `month` tinyint(3) unsigned DEFAULT NULL,
-  `day` tinyint(3) unsigned DEFAULT NULL,
+  `month` tinyint unsigned DEFAULT NULL,
+  `day` tinyint unsigned DEFAULT NULL,
   `rtype` enum('SINGLE','DAILY','WEEKLY','MONTHLY','YEARLY') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'SINGLE',
-  `duration` smallint(5) unsigned NOT NULL DEFAULT 0,
-  `count` smallint(5) DEFAULT 0,
-  `expire` int(11) unsigned NOT NULL DEFAULT 0,
-  `exceptions` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `importdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `duration` smallint unsigned NOT NULL DEFAULT '0',
+  `count` smallint DEFAULT '0',
+  `expire` int unsigned NOT NULL DEFAULT '0',
+  `exceptions` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `importdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`event_id`),
   UNIQUE KEY `uid` (`uid`),
   KEY `autor_id` (`author_id`)
@@ -1938,20 +1946,19 @@ CREATE TABLE `event_data` (
 
 DROP TABLE IF EXISTS `ex_termine`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `ex_termine` (
   `termin_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `autor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `content` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `date` int(11) unsigned NOT NULL DEFAULT 0,
-  `end_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `date_typ` tinyint(4) NOT NULL DEFAULT 0,
-  `topic_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `raum` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `date` int unsigned NOT NULL DEFAULT '0',
+  `end_time` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `date_typ` tinyint NOT NULL DEFAULT '0',
+  `raum` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `metadate_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `resource_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   PRIMARY KEY (`termin_id`),
@@ -1967,16 +1974,16 @@ CREATE TABLE `ex_termine` (
 
 DROP TABLE IF EXISTS `extern_config`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `extern_config` (
   `config_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `config_type` int(4) NOT NULL DEFAULT 0,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `is_standard` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `config` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `config_type` int NOT NULL DEFAULT '0',
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `is_standard` tinyint unsigned NOT NULL DEFAULT '0',
+  `config` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`config_id`,`range_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1987,17 +1994,17 @@ CREATE TABLE `extern_config` (
 
 DROP TABLE IF EXISTS `external_users`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `external_users` (
   `external_contact_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `foreign_id` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `foreign_id` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `host_id` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `contact_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'anonymous',
-  `name` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `avatar_url` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `data` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `avatar_url` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `chdate` int unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`external_contact_id`),
   KEY `mail_identifier` (`foreign_id`),
   KEY `contact_type` (`contact_type`)
@@ -2010,17 +2017,17 @@ CREATE TABLE `external_users` (
 
 DROP TABLE IF EXISTS `fach`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `fach` (
   `fach_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `name_kurz` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `beschreibung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `schlagworte` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name_kurz` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `beschreibung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `schlagworte` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`fach_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2031,20 +2038,20 @@ CREATE TABLE `fach` (
 
 DROP TABLE IF EXISTS `feedback`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `feedback` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `id` int NOT NULL AUTO_INCREMENT,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `course_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `question` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mode` int(11) unsigned NOT NULL,
-  `results_visible` tinyint(1) unsigned NOT NULL,
-  `commentable` tinyint(1) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `question` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mode` int unsigned NOT NULL,
+  `results_visible` tinyint unsigned NOT NULL,
+  `commentable` tinyint unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`),
   KEY `user_id` (`user_id`),
   KEY `idx_range` (`range_id`,`range_type`),
@@ -2058,15 +2065,15 @@ CREATE TABLE `feedback` (
 
 DROP TABLE IF EXISTS `feedback_entries`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `feedback_entries` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `feedback_id` int(11) unsigned NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `feedback_id` int unsigned NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `comment` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `rating` tinyint(3) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `rating` tinyint unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`),
   KEY `feedback_id` (`feedback_id`),
   KEY `user_id` (`user_id`)
@@ -2079,18 +2086,18 @@ CREATE TABLE `feedback_entries` (
 
 DROP TABLE IF EXISTS `file_refs`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `file_refs` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `file_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `folder_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `downloads` int(10) unsigned NOT NULL DEFAULT 0,
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `downloads` int unsigned NOT NULL DEFAULT '0',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `content_terms_of_use_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
   KEY `file_id` (`file_id`),
   KEY `folder_id` (`folder_id`),
@@ -2104,18 +2111,18 @@ CREATE TABLE `file_refs` (
 
 DROP TABLE IF EXISTS `files`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `files` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mime_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `filetype` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT 'StandardFile',
-  `size` int(10) unsigned NOT NULL,
-  `metadata` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `author_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mime_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `filetype` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'StandardFile',
+  `size` int unsigned NOT NULL,
+  `metadata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `author_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2126,19 +2133,19 @@ CREATE TABLE `files` (
 
 DROP TABLE IF EXISTS `files_search_attributes`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `files_search_attributes` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `file_ref_user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `file_ref_mkdate` int(11) unsigned NOT NULL,
-  `file_ref_chdate` int(11) unsigned NOT NULL,
+  `file_ref_mkdate` int unsigned NOT NULL,
+  `file_ref_chdate` int unsigned NOT NULL,
   `folder_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `folder_range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `folder_range_type` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `folder_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `course_status` tinyint(4) unsigned DEFAULT NULL,
-  `semester_start` int(11) unsigned DEFAULT NULL,
-  `semester_end` int(11) unsigned DEFAULT NULL,
+  `folder_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `course_status` tinyint unsigned DEFAULT NULL,
+  `semester_start` int unsigned DEFAULT NULL,
+  `semester_end` int unsigned DEFAULT NULL,
   PRIMARY KEY (`id`),
   KEY `folder_range_id` (`folder_range_id`),
   KEY `folder_range_type` (`folder_range_type`),
@@ -2153,11 +2160,11 @@ CREATE TABLE `files_search_attributes` (
 
 DROP TABLE IF EXISTS `files_search_index`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `files_search_index` (
-  `FTS_DOC_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+  `FTS_DOC_ID` bigint unsigned NOT NULL AUTO_INCREMENT,
   `file_ref_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `text` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `relevance` float NOT NULL,
   PRIMARY KEY (`FTS_DOC_ID`),
   KEY `file_ref_id` (`file_ref_id`),
@@ -2171,19 +2178,19 @@ CREATE TABLE `files_search_index` (
 
 DROP TABLE IF EXISTS `folders`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `folders` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `parent_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `folder_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `data_content` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `folder_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `data_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`),
   KEY `range_id` (`range_id`),
   KEY `parent_id` (`parent_id`)
@@ -2196,7 +2203,7 @@ CREATE TABLE `folders` (
 
 DROP TABLE IF EXISTS `forum_abo_users`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `forum_abo_users` (
   `topic_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
@@ -2210,12 +2217,12 @@ CREATE TABLE `forum_abo_users` (
 
 DROP TABLE IF EXISTS `forum_categories`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `forum_categories` (
   `category_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `entry_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `pos` int(11) NOT NULL DEFAULT 0,
+  `entry_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `pos` int NOT NULL DEFAULT '0',
   PRIMARY KEY (`category_id`),
   KEY `seminar_id` (`seminar_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -2227,11 +2234,11 @@ CREATE TABLE `forum_categories` (
 
 DROP TABLE IF EXISTS `forum_categories_entries`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `forum_categories_entries` (
   `category_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `topic_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `pos` int(11) NOT NULL DEFAULT 0,
+  `pos` int NOT NULL DEFAULT '0',
   PRIMARY KEY (`category_id`,`topic_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2242,25 +2249,25 @@ CREATE TABLE `forum_categories_entries` (
 
 DROP TABLE IF EXISTS `forum_entries`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `forum_entries` (
   `topic_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `area` tinyint(4) NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
-  `latest_chdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `author` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `author_host` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `lft` int(11) NOT NULL,
-  `rgt` int(11) NOT NULL,
-  `depth` int(11) NOT NULL,
-  `anonymous` tinyint(4) NOT NULL DEFAULT 0,
-  `closed` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `sticky` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `area` tinyint NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
+  `latest_chdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned NOT NULL,
+  `author` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `author_host` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `lft` int NOT NULL,
+  `rgt` int NOT NULL,
+  `depth` int NOT NULL,
+  `anonymous` tinyint NOT NULL DEFAULT '0',
+  `closed` tinyint unsigned NOT NULL DEFAULT '0',
+  `sticky` tinyint unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`topic_id`),
   KEY `seminar_id` (`seminar_id`,`lft`),
   KEY `seminar_id_2` (`seminar_id`,`rgt`),
@@ -2274,7 +2281,7 @@ CREATE TABLE `forum_entries` (
 
 DROP TABLE IF EXISTS `forum_entries_issues`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `forum_entries_issues` (
   `topic_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `issue_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
@@ -2288,7 +2295,7 @@ CREATE TABLE `forum_entries_issues` (
 
 DROP TABLE IF EXISTS `forum_favorites`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `forum_favorites` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `topic_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
@@ -2302,7 +2309,7 @@ CREATE TABLE `forum_favorites` (
 
 DROP TABLE IF EXISTS `forum_likes`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `forum_likes` (
   `topic_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
@@ -2316,12 +2323,12 @@ CREATE TABLE `forum_likes` (
 
 DROP TABLE IF EXISTS `forum_visits`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `forum_visits` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `visitdate` int(11) unsigned NOT NULL,
-  `last_visitdate` int(11) unsigned NOT NULL,
+  `visitdate` int unsigned NOT NULL,
+  `last_visitdate` int unsigned NOT NULL,
   PRIMARY KEY (`user_id`,`seminar_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2332,15 +2339,15 @@ CREATE TABLE `forum_visits` (
 
 DROP TABLE IF EXISTS `global_resource_locks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `global_resource_locks` (
   `lock_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `begin` int(11) unsigned NOT NULL DEFAULT 0,
-  `end` int(11) unsigned NOT NULL DEFAULT 0,
+  `begin` int unsigned NOT NULL DEFAULT '0',
+  `end` int unsigned NOT NULL DEFAULT '0',
   `type` varchar(15) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`lock_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2351,14 +2358,14 @@ CREATE TABLE `global_resource_locks` (
 
 DROP TABLE IF EXISTS `globalsearch_buzzwords`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `globalsearch_buzzwords` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `rights` enum('user','autor','tutor','dozent','admin','root') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'user',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `buzzwords` varchar(2048) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `subtitle` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `url` varchar(2048) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `rights` enum('user','autor','tutor','dozent','admin','root') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'user',
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `buzzwords` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `subtitle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `url` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2369,18 +2376,18 @@ CREATE TABLE `globalsearch_buzzwords` (
 
 DROP TABLE IF EXISTS `grading_definitions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `grading_definitions` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `id` int NOT NULL AUTO_INCREMENT,
   `course_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `item` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `item` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `tool` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `category` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 0,
+  `category` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `position` int NOT NULL DEFAULT '0',
   `weight` float unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`),
   KEY `course_id` (`course_id`),
   KEY `tool` (`tool`)
@@ -2393,14 +2400,14 @@ CREATE TABLE `grading_definitions` (
 
 DROP TABLE IF EXISTS `grading_instances`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `grading_instances` (
-  `definition_id` int(11) NOT NULL AUTO_INCREMENT,
+  `definition_id` int NOT NULL AUTO_INCREMENT,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `rawgrade` decimal(6,5) unsigned NOT NULL,
-  `feedback` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `feedback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`definition_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2411,21 +2418,22 @@ CREATE TABLE `grading_instances` (
 
 DROP TABLE IF EXISTS `help_content`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `help_content` (
   `global_content_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `content_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `language` char(2) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'de',
-  `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `route` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `route` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `studip_version` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` tinyint(4) NOT NULL DEFAULT 1,
-  `custom` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `visible` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `author_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `installation_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `position` tinyint NOT NULL DEFAULT '1',
+  `custom` tinyint unsigned NOT NULL DEFAULT '0',
+  `visible` tinyint unsigned NOT NULL DEFAULT '1',
+  `author_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `installation_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `comment` text COLLATE utf8mb4_unicode_ci,
   PRIMARY KEY (`content_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2436,13 +2444,13 @@ CREATE TABLE `help_content` (
 
 DROP TABLE IF EXISTS `help_tour_audiences`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `help_tour_audiences` (
   `tour_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `type` enum('inst','sem','studiengang','abschluss','userdomain','tour') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`tour_id`,`range_id`,`type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2453,13 +2461,13 @@ CREATE TABLE `help_tour_audiences` (
 
 DROP TABLE IF EXISTS `help_tour_settings`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `help_tour_settings` (
   `tour_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `active` tinyint(1) unsigned NOT NULL,
+  `active` tinyint unsigned NOT NULL,
   `access` enum('standard','link','autostart','autostart_once') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`tour_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2470,21 +2478,21 @@ CREATE TABLE `help_tour_settings` (
 
 DROP TABLE IF EXISTS `help_tour_steps`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `help_tour_steps` (
   `tour_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `step` tinyint(4) NOT NULL DEFAULT 1,
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `tip` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `step` tinyint NOT NULL DEFAULT '1',
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `tip` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `orientation` enum('T','TL','TR','L','LT','LB','B','BL','BR','R','RT','RB') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'B',
-  `interactive` tinyint(1) unsigned NOT NULL,
-  `css_selector` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `route` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `action_prev` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `action_next` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `author_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL,
+  `interactive` tinyint unsigned NOT NULL,
+  `css_selector` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `route` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `action_prev` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `action_next` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `author_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`tour_id`,`step`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2495,14 +2503,14 @@ CREATE TABLE `help_tour_steps` (
 
 DROP TABLE IF EXISTS `help_tour_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `help_tour_user` (
   `tour_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `step_nr` int(11) NOT NULL,
-  `completed` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `step_nr` int NOT NULL,
+  `completed` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`tour_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2513,21 +2521,21 @@ CREATE TABLE `help_tour_user` (
 
 DROP TABLE IF EXISTS `help_tours`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `help_tours` (
   `global_tour_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `tour_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `type` enum('tour','wizard') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `roles` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `version` int(11) unsigned NOT NULL DEFAULT 1,
+  `roles` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `version` int unsigned NOT NULL DEFAULT '1',
   `language` char(2) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'de',
   `studip_version` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `installation_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'demo-installation',
-  `author_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL,
+  `installation_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'demo-installation',
+  `author_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`tour_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2538,13 +2546,13 @@ CREATE TABLE `help_tours` (
 
 DROP TABLE IF EXISTS `i18n`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `i18n` (
   `object_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `table` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `field` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `lang` varchar(5) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `value` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   PRIMARY KEY (`object_id`,`table`,`field`,`lang`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2555,14 +2563,14 @@ CREATE TABLE `i18n` (
 
 DROP TABLE IF EXISTS `institute_plan_columns`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `institute_plan_columns` (
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `column` int(4) NOT NULL,
+  `column` int NOT NULL,
   `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
-  `visible` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `visible` tinyint unsigned NOT NULL DEFAULT '1',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`range_id`,`column`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2573,15 +2581,15 @@ CREATE TABLE `institute_plan_columns` (
 
 DROP TABLE IF EXISTS `kategorien`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `kategorien` (
   `kategorie_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `priority` int(11) NOT NULL DEFAULT 0,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `priority` int NOT NULL DEFAULT '0',
   PRIMARY KEY (`kategorie_id`),
   KEY `priority` (`priority`),
   KEY `range_id` (`range_id`)
@@ -2594,20 +2602,20 @@ CREATE TABLE `kategorien` (
 
 DROP TABLE IF EXISTS `licenses`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `licenses` (
   `identifier` varchar(64) NOT NULL COMMENT 'According to SPDX standard if able.',
   `name` varchar(128) DEFAULT NULL,
   `link` varchar(256) DEFAULT NULL,
-  `default` tinyint(1) DEFAULT 0,
-  `description` text DEFAULT NULL,
+  `default` tinyint(1) DEFAULT '0',
+  `description` text,
   `twillo_licensekey` varchar(16) DEFAULT NULL,
   `twillo_cclicenseversion` varchar(8) DEFAULT NULL,
-  `chdate` int(11) DEFAULT NULL,
-  `mkdate` int(11) DEFAULT NULL,
+  `chdate` int DEFAULT NULL,
+  `mkdate` int DEFAULT NULL,
   PRIMARY KEY (`identifier`),
   KEY `default` (`default`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -2616,15 +2624,15 @@ CREATE TABLE `licenses` (
 
 DROP TABLE IF EXISTS `limitedadmissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `limitedadmissions` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `start_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `end_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `maxnumber` int(11) NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `start_time` int unsigned NOT NULL DEFAULT '0',
+  `end_time` int unsigned NOT NULL DEFAULT '0',
+  `maxnumber` int NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2635,17 +2643,17 @@ CREATE TABLE `limitedadmissions` (
 
 DROP TABLE IF EXISTS `lock_rules`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `lock_rules` (
   `lock_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `permission` enum('autor','tutor','dozent','admin','root') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'dozent',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `attributes` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `attributes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `object_type` enum('sem','inst','user') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'sem',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`lock_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2656,12 +2664,12 @@ CREATE TABLE `lock_rules` (
 
 DROP TABLE IF EXISTS `lockedadmissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `lockedadmissions` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2672,19 +2680,19 @@ CREATE TABLE `lockedadmissions` (
 
 DROP TABLE IF EXISTS `log_actions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `log_actions` (
   `action_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `info_template` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `active` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `expires` int(11) unsigned NOT NULL DEFAULT 0,
-  `filename` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `class` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `info_template` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `active` tinyint unsigned NOT NULL DEFAULT '1',
+  `expires` int unsigned NOT NULL DEFAULT '0',
+  `filename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `type` enum('core','plugin','file') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`action_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2695,19 +2703,19 @@ CREATE TABLE `log_actions` (
 
 DROP TABLE IF EXISTS `log_events`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `log_events` (
-  `event_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
+  `event_id` int unsigned NOT NULL AUTO_INCREMENT,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `action_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `affected_range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `coaffected_range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `info` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `dbg_info` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `dbg_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`event_id`),
   KEY `action_id` (`action_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -2716,17 +2724,17 @@ CREATE TABLE `log_events` (
 
 DROP TABLE IF EXISTS `loginbackgrounds`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `loginbackgrounds` (
-  `background_id` int(11) NOT NULL AUTO_INCREMENT,
-  `filename` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mobile` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `desktop` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `in_release` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `background_id` int NOT NULL AUTO_INCREMENT,
+  `filename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mobile` tinyint unsigned NOT NULL DEFAULT '1',
+  `desktop` tinyint unsigned NOT NULL DEFAULT '1',
+  `in_release` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`background_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -2735,18 +2743,18 @@ CREATE TABLE `loginbackgrounds` (
 
 DROP TABLE IF EXISTS `lti_data`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `lti_data` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `position` int(11) NOT NULL DEFAULT 0,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `position` int NOT NULL DEFAULT '0',
   `course_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `tool_id` int(11) NOT NULL DEFAULT 0,
-  `launch_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `options` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `tool_id` int NOT NULL DEFAULT '0',
+  `launch_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   PRIMARY KEY (`id`),
   KEY `course_id` (`course_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -2758,13 +2766,13 @@ CREATE TABLE `lti_data` (
 
 DROP TABLE IF EXISTS `lti_grade`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `lti_grade` (
-  `link_id` int(11) NOT NULL DEFAULT 0,
+  `link_id` int NOT NULL DEFAULT '0',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `score` float NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `score` float NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`link_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2775,19 +2783,19 @@ CREATE TABLE `lti_grade` (
 
 DROP TABLE IF EXISTS `lti_tool`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `lti_tool` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `launch_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `consumer_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `consumer_secret` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `custom_parameters` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `allow_custom_url` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `deep_linking` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `send_lis_person` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `launch_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `consumer_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `consumer_secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `custom_parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `allow_custom_url` tinyint unsigned NOT NULL DEFAULT '0',
+  `deep_linking` tinyint unsigned NOT NULL DEFAULT '0',
+  `send_lis_person` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   `oauth_signature_method` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'sha1',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -2799,16 +2807,16 @@ CREATE TABLE `lti_tool` (
 
 DROP TABLE IF EXISTS `mail_queue_entries`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mail_queue_entries` (
   `mail_queue_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mail` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `message_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `tries` int(11) unsigned NOT NULL,
-  `last_try` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `tries` int unsigned NOT NULL,
+  `last_try` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`mail_queue_id`),
   KEY `message_id` (`message_id`),
   KEY `user_id` (`user_id`)
@@ -2821,11 +2829,11 @@ CREATE TABLE `mail_queue_entries` (
 
 DROP TABLE IF EXISTS `media_cache`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `media_cache` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `type` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `chdate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
+  `type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `chdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
   `expires` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -2837,14 +2845,14 @@ CREATE TABLE `media_cache` (
 
 DROP TABLE IF EXISTS `message`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `message` (
   `message_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `autor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `show_adressees` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `subject` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `show_adressees` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   `priority` enum('normal','high') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'normal',
   PRIMARY KEY (`message_id`),
   KEY `autor_id` (`autor_id`)
@@ -2857,13 +2865,13 @@ CREATE TABLE `message` (
 
 DROP TABLE IF EXISTS `message_tags`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `message_tags` (
   `message_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `tag` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `tag` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`message_id`,`user_id`,`tag`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2874,15 +2882,15 @@ CREATE TABLE `message_tags` (
 
 DROP TABLE IF EXISTS `message_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `message_user` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `message_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `readed` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `deleted` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `readed` tinyint unsigned NOT NULL DEFAULT '0',
+  `deleted` tinyint unsigned NOT NULL DEFAULT '0',
   `snd_rec` enum('rec','snd') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'rec',
-  `answered` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `answered` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`message_id`,`snd_rec`,`user_id`),
   KEY `user_id` (`user_id`,`snd_rec`,`deleted`,`readed`,`mkdate`),
   KEY `user_id_2` (`user_id`,`snd_rec`,`deleted`,`mkdate`)
@@ -2895,17 +2903,17 @@ CREATE TABLE `message_user` (
 
 DROP TABLE IF EXISTS `mvv_abschl_kategorie`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_abschl_kategorie` (
   `kategorie_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `name_kurz` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `beschreibung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `position` int(11) DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name_kurz` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `beschreibung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `position` int DEFAULT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`kategorie_id`),
   UNIQUE KEY `name` (`name`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -2917,15 +2925,15 @@ CREATE TABLE `mvv_abschl_kategorie` (
 
 DROP TABLE IF EXISTS `mvv_abschl_zuord`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_abschl_zuord` (
   `abschluss_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `kategorie_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(4) NOT NULL DEFAULT 9999,
+  `position` int NOT NULL DEFAULT '9999',
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`abschluss_id`),
   KEY `kategorie_id` (`kategorie_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -2937,17 +2945,17 @@ CREATE TABLE `mvv_abschl_zuord` (
 
 DROP TABLE IF EXISTS `mvv_aufbaustudiengang`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_aufbaustudiengang` (
-  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+  `id` int unsigned NOT NULL AUTO_INCREMENT,
   `grund_stg_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `aufbau_stg_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `typ` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `kommentar` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `kommentar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`),
   UNIQUE KEY `grund_stg_id` (`grund_stg_id`,`aufbau_stg_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -2959,15 +2967,15 @@ CREATE TABLE `mvv_aufbaustudiengang` (
 
 DROP TABLE IF EXISTS `mvv_contacts`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_contacts` (
   `contact_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `contact_status` enum('intern','extern','institution') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `alt_mail` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `alt_mail` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`contact_id`),
   KEY `contact_status` (`contact_status`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -2979,19 +2987,19 @@ CREATE TABLE `mvv_contacts` (
 
 DROP TABLE IF EXISTS `mvv_contacts_ranges`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_contacts_ranges` (
   `contact_range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `contact_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_type` enum('Modul','Studiengang','StudiengangTeil') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `type` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `category` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `position` int(10) DEFAULT NULL,
+  `type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `category` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `position` int DEFAULT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`contact_range_id`),
   KEY `range_id` (`range_id`),
   KEY `range_type` (`range_type`),
@@ -3007,18 +3015,18 @@ CREATE TABLE `mvv_contacts_ranges` (
 
 DROP TABLE IF EXISTS `mvv_extern_contacts`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_extern_contacts` (
   `extern_contact_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `vorname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `homepage` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mail` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `tel` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `vorname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `homepage` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mail` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `tel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`extern_contact_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3029,15 +3037,15 @@ CREATE TABLE `mvv_extern_contacts` (
 
 DROP TABLE IF EXISTS `mvv_fach_inst`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_fach_inst` (
   `fach_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `institut_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(11) NOT NULL,
+  `position` int NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`fach_id`,`institut_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3048,18 +3056,18 @@ CREATE TABLE `mvv_fach_inst` (
 
 DROP TABLE IF EXISTS `mvv_files`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_files` (
   `mvvfile_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `year` int(10) DEFAULT NULL,
-  `type` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `category` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `tags` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `extern_visible` tinyint(1) unsigned DEFAULT NULL,
+  `year` int DEFAULT NULL,
+  `type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `category` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `tags` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `extern_visible` tinyint unsigned DEFAULT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`mvvfile_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3070,16 +3078,16 @@ CREATE TABLE `mvv_files` (
 
 DROP TABLE IF EXISTS `mvv_files_filerefs`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_files_filerefs` (
   `mvvfile_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `file_language` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(1000) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `fileref_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`mvvfile_id`,`file_language`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3090,16 +3098,16 @@ CREATE TABLE `mvv_files_filerefs` (
 
 DROP TABLE IF EXISTS `mvv_files_ranges`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_files_ranges` (
   `mvvfile_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `position` int(10) DEFAULT NULL,
+  `position` int DEFAULT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`mvvfile_id`,`range_id`),
   KEY `range_id` (`range_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3111,15 +3119,15 @@ CREATE TABLE `mvv_files_ranges` (
 
 DROP TABLE IF EXISTS `mvv_lvgruppe`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_lvgruppe` (
   `lvgruppe_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `alttext` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `name` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `alttext` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`lvgruppe_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3130,16 +3138,16 @@ CREATE TABLE `mvv_lvgruppe` (
 
 DROP TABLE IF EXISTS `mvv_lvgruppe_modulteil`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_lvgruppe_modulteil` (
   `lvgruppe_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `modulteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 9999,
+  `position` int NOT NULL DEFAULT '9999',
   `fn_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`lvgruppe_id`,`modulteil_id`),
   KEY `fn_id` (`fn_id`),
   KEY `modulteil_id` (`modulteil_id`)
@@ -3152,14 +3160,14 @@ CREATE TABLE `mvv_lvgruppe_modulteil` (
 
 DROP TABLE IF EXISTS `mvv_lvgruppe_seminar`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_lvgruppe_seminar` (
   `lvgruppe_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`lvgruppe_id`,`seminar_id`),
   KEY `seminar_id` (`seminar_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3171,33 +3179,33 @@ CREATE TABLE `mvv_lvgruppe_seminar` (
 
 DROP TABLE IF EXISTS `mvv_modul`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_modul` (
   `modul_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `quelle` varchar(120) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `quelle` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `variante` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `flexnow_modul` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `code` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `flexnow_modul` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `code` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `start` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `end` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `beschlussdatum` int(11) unsigned DEFAULT NULL,
-  `fassung_nr` int(2) DEFAULT NULL,
+  `beschlussdatum` int unsigned DEFAULT NULL,
+  `fassung_nr` int DEFAULT NULL,
   `fassung_typ` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `version` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
-  `dauer` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kapazitaet` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `version` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
+  `dauer` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `kapazitaet` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `kp` double(5,2) DEFAULT NULL,
-  `wl_selbst` int(11) DEFAULT NULL,
-  `wl_pruef` int(11) DEFAULT NULL,
+  `wl_selbst` int DEFAULT NULL,
+  `wl_pruef` int DEFAULT NULL,
   `pruef_ebene` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `faktor_note` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '1',
   `stat` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `kommentar_status` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `verantwortlich` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `kommentar_status` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `verantwortlich` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`modul_id`),
   KEY `stat` (`stat`),
   KEY `flexnow_modul` (`flexnow_modul`)
@@ -3210,32 +3218,32 @@ CREATE TABLE `mvv_modul` (
 
 DROP TABLE IF EXISTS `mvv_modul_deskriptor`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_modul_deskriptor` (
   `deskriptor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `modul_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `verantwortlich` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `bezeichnung` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `voraussetzung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kompetenzziele` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `inhalte` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `literatur` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `links` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `turnus` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_kapazitaet` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_sws` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_wl_selbst` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_wl_pruef` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_note` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `pruef_vorleistung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `pruef_leistung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `pruef_wiederholung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `ersatztext` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `verantwortlich` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `bezeichnung` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `voraussetzung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kompetenzziele` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `inhalte` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `literatur` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `links` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `turnus` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_kapazitaet` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_sws` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_wl_selbst` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_wl_pruef` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `pruef_vorleistung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `pruef_leistung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `pruef_wiederholung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `ersatztext` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`deskriptor_id`),
   UNIQUE KEY `modul_id` (`modul_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3247,16 +3255,16 @@ CREATE TABLE `mvv_modul_deskriptor` (
 
 DROP TABLE IF EXISTS `mvv_modul_inst`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_modul_inst` (
   `modul_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `institut_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `gruppe` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 9999,
+  `position` int NOT NULL DEFAULT '9999',
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`modul_id`,`institut_id`),
   KEY `institut_id` (`institut_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3268,15 +3276,15 @@ CREATE TABLE `mvv_modul_inst` (
 
 DROP TABLE IF EXISTS `mvv_modul_language`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_modul_language` (
   `modul_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `lang` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 9999,
+  `position` int NOT NULL DEFAULT '9999',
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`modul_id`,`lang`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3287,30 +3295,30 @@ CREATE TABLE `mvv_modul_language` (
 
 DROP TABLE IF EXISTS `mvv_modulteil`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_modulteil` (
   `modulteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `modul_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 9999,
-  `flexnow_modul` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `position` int NOT NULL DEFAULT '9999',
+  `flexnow_modul` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `nummer` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `num_bezeichnung` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `lernlehrform` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `semester` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `kapazitaet` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `kapazitaet` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `kp` double(5,2) DEFAULT NULL,
-  `sws` int(11) DEFAULT NULL,
-  `wl_praesenz` int(11) DEFAULT NULL,
-  `wl_bereitung` int(11) DEFAULT NULL,
-  `wl_selbst` int(11) DEFAULT NULL,
-  `wl_pruef` int(11) DEFAULT NULL,
-  `anteil_note` int(11) DEFAULT NULL,
-  `ausgleichbar` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `pflicht` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `sws` int DEFAULT NULL,
+  `wl_praesenz` int DEFAULT NULL,
+  `wl_bereitung` int DEFAULT NULL,
+  `wl_selbst` int DEFAULT NULL,
+  `wl_pruef` int DEFAULT NULL,
+  `anteil_note` int DEFAULT NULL,
+  `ausgleichbar` tinyint unsigned NOT NULL DEFAULT '0',
+  `pflicht` tinyint unsigned NOT NULL DEFAULT '0',
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`modulteil_id`),
   KEY `modul_id` (`modul_id`),
   KEY `flexnow_modul` (`flexnow_modul`)
@@ -3323,25 +3331,25 @@ CREATE TABLE `mvv_modulteil` (
 
 DROP TABLE IF EXISTS `mvv_modulteil_deskriptor`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_modulteil_deskriptor` (
   `deskriptor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `modulteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `bezeichnung` tinytext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `voraussetzung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_kapazitaet` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_wl_praesenz` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_wl_bereitung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_wl_selbst` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_wl_pruef` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `pruef_vorleistung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `pruef_leistung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `kommentar_pflicht` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `bezeichnung` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `voraussetzung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_kapazitaet` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_wl_praesenz` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_wl_bereitung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_wl_selbst` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_wl_pruef` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `pruef_vorleistung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `pruef_leistung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `kommentar_pflicht` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`deskriptor_id`),
   KEY `modulteil_id` (`modulteil_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3353,15 +3361,15 @@ CREATE TABLE `mvv_modulteil_deskriptor` (
 
 DROP TABLE IF EXISTS `mvv_modulteil_language`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_modulteil_language` (
   `modulteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `lang` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 9999,
+  `position` int NOT NULL DEFAULT '9999',
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`modulteil_id`,`lang`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3372,16 +3380,16 @@ CREATE TABLE `mvv_modulteil_language` (
 
 DROP TABLE IF EXISTS `mvv_modulteil_stgteilabschnitt`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_modulteil_stgteilabschnitt` (
   `modulteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `abschnitt_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `fachsemester` int(2) NOT NULL,
-  `differenzierung` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `fachsemester` int NOT NULL,
+  `differenzierung` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`modulteil_id`,`abschnitt_id`,`fachsemester`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3392,10 +3400,10 @@ CREATE TABLE `mvv_modulteil_stgteilabschnitt` (
 
 DROP TABLE IF EXISTS `mvv_ovl_conflicts`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_ovl_conflicts` (
-  `conflict_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-  `selection_id` int(11) NOT NULL,
+  `conflict_id` int unsigned NOT NULL AUTO_INCREMENT,
+  `selection_id` int NOT NULL,
   `base_abschnitt_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `base_modulteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `base_course_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
@@ -3404,8 +3412,8 @@ CREATE TABLE `mvv_ovl_conflicts` (
   `comp_modulteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `comp_course_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `comp_metadate_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`conflict_id`),
   KEY `selection_id` (`selection_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3417,12 +3425,12 @@ CREATE TABLE `mvv_ovl_conflicts` (
 
 DROP TABLE IF EXISTS `mvv_ovl_excludes`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_ovl_excludes` (
   `selection_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `course_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`selection_id`,`course_id`),
   KEY `course_id` (`course_id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3434,18 +3442,18 @@ CREATE TABLE `mvv_ovl_excludes` (
 
 DROP TABLE IF EXISTS `mvv_ovl_selections`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_ovl_selections` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `id` int NOT NULL AUTO_INCREMENT,
   `selection_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `semester_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `base_version_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `comp_version_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `fachsems` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `semtypes` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `fachsems` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `semtypes` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `show_excluded` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
+  `show_excluded` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`),
   KEY `selection_id` (`selection_id`),
   KEY `user_id` (`user_id`)
@@ -3458,16 +3466,16 @@ CREATE TABLE `mvv_ovl_selections` (
 
 DROP TABLE IF EXISTS `mvv_stg_stgteil`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_stg_stgteil` (
   `studiengang_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `stgteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `stgteil_bez_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `position` int(11) NOT NULL,
+  `position` int NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`studiengang_id`,`stgteil_id`,`stgteil_bez_id`),
   KEY `stgteil_id` (`stgteil_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3479,17 +3487,17 @@ CREATE TABLE `mvv_stg_stgteil` (
 
 DROP TABLE IF EXISTS `mvv_stgteil`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_stgteil` (
   `stgteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `fach_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `kp` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `semester` int(2) DEFAULT NULL,
-  `zusatz` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `kp` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `semester` int DEFAULT NULL,
+  `zusatz` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`stgteil_id`),
   KEY `fach_id` (`fach_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3501,16 +3509,16 @@ CREATE TABLE `mvv_stgteil` (
 
 DROP TABLE IF EXISTS `mvv_stgteil_bez`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_stgteil_bez` (
   `stgteil_bez_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `name_kurz` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(4) NOT NULL DEFAULT 9999,
+  `position` int NOT NULL DEFAULT '9999',
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`stgteil_bez_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3521,19 +3529,19 @@ CREATE TABLE `mvv_stgteil_bez` (
 
 DROP TABLE IF EXISTS `mvv_stgteilabschnitt`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_stgteilabschnitt` (
   `abschnitt_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `version_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 9999,
-  `name` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `kommentar` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `position` int NOT NULL DEFAULT '9999',
+  `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `kommentar` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `kp` double(5,2) DEFAULT NULL,
-  `ueberschrift` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `ueberschrift` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`abschnitt_id`),
   KEY `version_id` (`version_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3545,19 +3553,19 @@ CREATE TABLE `mvv_stgteilabschnitt` (
 
 DROP TABLE IF EXISTS `mvv_stgteilabschnitt_modul`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_stgteilabschnitt_modul` (
   `abschnitt_modul_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `abschnitt_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `modul_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `flexnow_modul` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `modulcode` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `position` int(11) NOT NULL DEFAULT 9999,
-  `bezeichnung` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `flexnow_modul` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `modulcode` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `position` int NOT NULL DEFAULT '9999',
+  `bezeichnung` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`abschnitt_modul_id`),
   UNIQUE KEY `abschnitt_id` (`abschnitt_id`,`modul_id`) USING BTREE,
   KEY `flexnow_modul` (`flexnow_modul`)
@@ -3570,23 +3578,23 @@ CREATE TABLE `mvv_stgteilabschnitt_modul` (
 
 DROP TABLE IF EXISTS `mvv_stgteilversion`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_stgteilversion` (
   `version_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `stgteil_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `start_sem` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `end_sem` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `code` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `beschlussdatum` int(11) unsigned DEFAULT NULL,
-  `fassung_nr` int(2) DEFAULT NULL,
+  `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `beschlussdatum` int unsigned DEFAULT NULL,
+  `fassung_nr` int DEFAULT NULL,
   `fassung_typ` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `beschreibung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `beschreibung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `stat` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `kommentar_status` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `kommentar_status` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`version_id`),
   KEY `stgteil_id` (`stgteil_id`),
   KEY `stat` (`stat`)
@@ -3599,31 +3607,31 @@ CREATE TABLE `mvv_stgteilversion` (
 
 DROP TABLE IF EXISTS `mvv_studiengang`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_studiengang` (
   `studiengang_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `abschluss_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `typ` enum('einfach','mehrfach') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `name_kurz` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `beschreibung` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name_kurz` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `beschreibung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `institut_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `start` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `end` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `beschlussdatum` int(11) unsigned DEFAULT NULL,
-  `fassung_nr` int(2) DEFAULT NULL,
+  `beschlussdatum` int unsigned DEFAULT NULL,
+  `fassung_nr` int DEFAULT NULL,
   `fassung_typ` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `stat` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `kommentar_status` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `schlagworte` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `studienzeit` tinyint(3) unsigned DEFAULT NULL,
-  `studienplaetze` int(10) unsigned DEFAULT NULL,
-  `abschlussgrad` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `enroll` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `kommentar_status` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `schlagworte` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `studienzeit` tinyint unsigned DEFAULT NULL,
+  `studienplaetze` int unsigned DEFAULT NULL,
+  `abschlussgrad` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `enroll` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`studiengang_id`),
   KEY `abschluss_id` (`abschluss_id`),
   KEY `institut_id` (`institut_id`)
@@ -3636,15 +3644,15 @@ CREATE TABLE `mvv_studiengang` (
 
 DROP TABLE IF EXISTS `mvv_studycourse_language`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_studycourse_language` (
   `studiengang_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `lang` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 9999,
+  `position` int NOT NULL DEFAULT '9999',
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`studiengang_id`,`lang`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3655,14 +3663,14 @@ CREATE TABLE `mvv_studycourse_language` (
 
 DROP TABLE IF EXISTS `mvv_studycourse_type`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `mvv_studycourse_type` (
   `studiengang_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `editor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`studiengang_id`,`type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3673,20 +3681,20 @@ CREATE TABLE `mvv_studycourse_type` (
 
 DROP TABLE IF EXISTS `news`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `news` (
   `news_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `topic` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `body` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `author` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `date` int(11) unsigned NOT NULL DEFAULT 0,
+  `topic` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `author` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `date` int unsigned NOT NULL DEFAULT '0',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `expire` int(11) unsigned NOT NULL DEFAULT 0,
-  `allow_comments` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `prio` tinyint(2) NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `expire` int unsigned NOT NULL DEFAULT '0',
+  `allow_comments` tinyint unsigned NOT NULL DEFAULT '0',
+  `prio` tinyint NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   `chdate_uid` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`news_id`),
   KEY `date` (`date`),
   KEY `chdate` (`chdate`),
@@ -3700,12 +3708,12 @@ CREATE TABLE `news` (
 
 DROP TABLE IF EXISTS `news_range`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `news_range` (
   `news_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`news_id`,`range_id`),
   KEY `range_id` (`range_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3717,10 +3725,10 @@ CREATE TABLE `news_range` (
 
 DROP TABLE IF EXISTS `news_roles`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `news_roles` (
   `news_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `roleid` int(10) NOT NULL,
+  `roleid` int NOT NULL,
   PRIMARY KEY (`news_id`,`roleid`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3731,7 +3739,7 @@ CREATE TABLE `news_roles` (
 
 DROP TABLE IF EXISTS `news_rss_range`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `news_rss_range` (
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `rss_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -3742,25 +3750,107 @@ CREATE TABLE `news_rss_range` (
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
+-- Table structure for table `oauth2_access_tokens`
+--
+
+DROP TABLE IF EXISTS `oauth2_access_tokens`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `oauth2_access_tokens` (
+  `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+  `client_id` bigint unsigned NOT NULL,
+  `scopes` text COLLATE utf8mb4_unicode_ci,
+  `revoked` tinyint(1) NOT NULL DEFAULT '0',
+  `expires_at` int DEFAULT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
+  PRIMARY KEY (`id`),
+  KEY `user_id` (`user_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `oauth2_auth_codes`
+--
+
+DROP TABLE IF EXISTS `oauth2_auth_codes`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `oauth2_auth_codes` (
+  `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+  `client_id` bigint unsigned NOT NULL,
+  `scopes` text COLLATE utf8mb4_unicode_ci,
+  `revoked` tinyint(1) NOT NULL DEFAULT '0',
+  `expires_at` int DEFAULT NULL,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
+  PRIMARY KEY (`id`),
+  KEY `user_id` (`user_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `oauth2_clients`
+--
+
+DROP TABLE IF EXISTS `oauth2_clients`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `oauth2_clients` (
+  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
+  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `secret` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `revoked` tinyint(1) NOT NULL DEFAULT '0',
+  `description` text COLLATE utf8mb4_unicode_ci,
+  `owner` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `homepage` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `admin_notes` text COLLATE utf8mb4_unicode_ci,
+  `mkdate` int NOT NULL,
+  `chdate` int NOT NULL,
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `oauth2_refresh_tokens`
+--
+
+DROP TABLE IF EXISTS `oauth2_refresh_tokens`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `oauth2_refresh_tokens` (
+  `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `revoked` tinyint(1) NOT NULL DEFAULT '0',
+  `expires_at` int DEFAULT NULL,
+  PRIMARY KEY (`id`),
+  KEY `access_token_id` (`access_token_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
 -- Table structure for table `oauth_consumer_registry`
 --
 
 DROP TABLE IF EXISTS `oauth_consumer_registry`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oauth_consumer_registry` (
-  `ocr_id` int(11) NOT NULL AUTO_INCREMENT,
-  `ocr_usa_id_ref` int(11) DEFAULT NULL,
+  `ocr_id` int NOT NULL AUTO_INCREMENT,
+  `ocr_usa_id_ref` int DEFAULT NULL,
   `ocr_consumer_key` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
   `ocr_consumer_secret` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
-  `ocr_signature_methods` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'HMAC-SHA1,PLAINTEXT',
-  `ocr_server_uri` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `ocr_server_uri_host` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `ocr_signature_methods` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'HMAC-SHA1,PLAINTEXT',
+  `ocr_server_uri` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `ocr_server_uri_host` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `ocr_server_uri_path` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
-  `ocr_request_token_uri` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `ocr_authorize_uri` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `ocr_access_token_uri` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `ocr_timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
+  `ocr_request_token_uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `ocr_authorize_uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `ocr_access_token_uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `ocr_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
   PRIMARY KEY (`ocr_id`),
   UNIQUE KEY `ocr_consumer_key` (`ocr_consumer_key`,`ocr_usa_id_ref`,`ocr_server_uri`),
   KEY `ocr_server_uri` (`ocr_server_uri`),
@@ -3775,17 +3865,17 @@ CREATE TABLE `oauth_consumer_registry` (
 
 DROP TABLE IF EXISTS `oauth_consumer_token`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oauth_consumer_token` (
-  `oct_id` int(11) NOT NULL AUTO_INCREMENT,
-  `oct_ocr_id_ref` int(11) NOT NULL,
-  `oct_usa_id_ref` int(11) NOT NULL,
+  `oct_id` int NOT NULL AUTO_INCREMENT,
+  `oct_ocr_id_ref` int NOT NULL,
+  `oct_usa_id_ref` int NOT NULL,
   `oct_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
   `oct_token` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
   `oct_token_secret` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
   `oct_token_type` enum('request','authorized','access') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `oct_token_ttl` datetime NOT NULL DEFAULT '9999-12-31 00:00:00',
-  `oct_timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
+  `oct_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
   PRIMARY KEY (`oct_id`),
   UNIQUE KEY `oct_ocr_id_ref` (`oct_ocr_id_ref`,`oct_token`),
   UNIQUE KEY `oct_usa_id_ref` (`oct_usa_id_ref`,`oct_ocr_id_ref`,`oct_token_type`,`oct_name`),
@@ -3799,20 +3889,20 @@ CREATE TABLE `oauth_consumer_token` (
 
 DROP TABLE IF EXISTS `oauth_log`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oauth_log` (
-  `olg_id` int(11) NOT NULL AUTO_INCREMENT,
+  `olg_id` int NOT NULL AUTO_INCREMENT,
   `olg_osr_consumer_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
   `olg_ost_token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
   `olg_ocr_consumer_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
   `olg_oct_token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
-  `olg_usa_id_ref` int(11) DEFAULT NULL,
-  `olg_received` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `olg_sent` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `olg_base_string` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `olg_notes` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `olg_timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
-  `olg_remote_ip` bigint(20) NOT NULL,
+  `olg_usa_id_ref` int DEFAULT NULL,
+  `olg_received` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `olg_sent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `olg_base_string` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `olg_notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `olg_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+  `olg_remote_ip` bigint NOT NULL,
   PRIMARY KEY (`olg_id`),
   KEY `olg_osr_consumer_key` (`olg_osr_consumer_key`,`olg_id`),
   KEY `olg_ost_token` (`olg_ost_token`,`olg_id`),
@@ -3828,12 +3918,12 @@ CREATE TABLE `oauth_log` (
 
 DROP TABLE IF EXISTS `oauth_server_nonce`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oauth_server_nonce` (
-  `osn_id` int(11) NOT NULL AUTO_INCREMENT,
+  `osn_id` int NOT NULL AUTO_INCREMENT,
   `osn_consumer_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
   `osn_token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
-  `osn_timestamp` bigint(20) NOT NULL,
+  `osn_timestamp` bigint NOT NULL,
   `osn_nonce` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
   PRIMARY KEY (`osn_id`),
   UNIQUE KEY `osn_consumer_key` (`osn_consumer_key`,`osn_token`,`osn_timestamp`,`osn_nonce`)
@@ -3846,25 +3936,25 @@ CREATE TABLE `oauth_server_nonce` (
 
 DROP TABLE IF EXISTS `oauth_server_registry`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oauth_server_registry` (
-  `osr_id` int(11) NOT NULL AUTO_INCREMENT,
-  `osr_usa_id_ref` int(11) DEFAULT NULL,
+  `osr_id` int NOT NULL AUTO_INCREMENT,
+  `osr_usa_id_ref` int DEFAULT NULL,
   `osr_consumer_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
   `osr_consumer_secret` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
-  `osr_enabled` tinyint(1) NOT NULL DEFAULT 1,
+  `osr_enabled` tinyint(1) NOT NULL DEFAULT '1',
   `osr_status` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `osr_requester_name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `osr_requester_email` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `osr_callback_uri` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `osr_application_uri` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `osr_application_title` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `osr_application_descr` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `osr_application_notes` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `osr_requester_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `osr_requester_email` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `osr_callback_uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `osr_application_uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `osr_application_title` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `osr_application_descr` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `osr_application_notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `osr_application_type` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `osr_application_commercial` tinyint(1) NOT NULL DEFAULT 0,
+  `osr_application_commercial` tinyint(1) NOT NULL DEFAULT '0',
   `osr_issue_date` datetime NOT NULL,
-  `osr_timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
+  `osr_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
   PRIMARY KEY (`osr_id`),
   UNIQUE KEY `osr_consumer_key` (`osr_consumer_key`),
   KEY `osr_usa_id_ref` (`osr_usa_id_ref`)
@@ -3877,20 +3967,20 @@ CREATE TABLE `oauth_server_registry` (
 
 DROP TABLE IF EXISTS `oauth_server_token`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oauth_server_token` (
-  `ost_id` int(11) NOT NULL AUTO_INCREMENT,
-  `ost_osr_id_ref` int(11) NOT NULL,
-  `ost_usa_id_ref` int(11) NOT NULL,
+  `ost_id` int NOT NULL AUTO_INCREMENT,
+  `ost_osr_id_ref` int NOT NULL,
+  `ost_usa_id_ref` int NOT NULL,
   `ost_token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
   `ost_token_secret` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
   `ost_token_type` enum('request','access') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `ost_authorized` tinyint(1) NOT NULL DEFAULT 0,
-  `ost_referrer_host` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `ost_authorized` tinyint(1) NOT NULL DEFAULT '0',
+  `ost_referrer_host` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `ost_token_ttl` datetime NOT NULL DEFAULT '9999-12-31 00:00:00',
-  `ost_timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
+  `ost_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
   `ost_verifier` char(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `ost_callback_url` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `ost_callback_url` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   PRIMARY KEY (`ost_id`),
   UNIQUE KEY `ost_token` (`ost_token`),
   KEY `ost_osr_id_ref` (`ost_osr_id_ref`),
@@ -3904,14 +3994,14 @@ CREATE TABLE `oauth_server_token` (
 
 DROP TABLE IF EXISTS `object_contentmodules`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `object_contentmodules` (
   `object_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `module_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `module_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `system_type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `module_type` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`object_id`,`module_id`,`system_type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3922,13 +4012,13 @@ CREATE TABLE `object_contentmodules` (
 
 DROP TABLE IF EXISTS `object_user_visits`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `object_user_visits` (
   `object_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `plugin_id` int(11) NOT NULL,
-  `visitdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `last_visitdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `plugin_id` int NOT NULL,
+  `visitdate` int unsigned NOT NULL DEFAULT '0',
+  `last_visitdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`object_id`,`user_id`,`plugin_id`),
   KEY `user_id` (`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3940,11 +4030,11 @@ CREATE TABLE `object_user_visits` (
 
 DROP TABLE IF EXISTS `object_views`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `object_views` (
   `object_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `views` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `views` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`object_id`),
   KEY `views` (`views`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -3956,12 +4046,12 @@ CREATE TABLE `object_views` (
 
 DROP TABLE IF EXISTS `oer_abo`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_abo` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `material_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   UNIQUE KEY `user_id` (`user_id`,`material_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -3970,7 +4060,7 @@ CREATE TABLE `oer_abo` (
 
 DROP TABLE IF EXISTS `oer_comments`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_comments` (
   `comment_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `review_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
@@ -3978,14 +4068,14 @@ CREATE TABLE `oer_comments` (
   `comment` text NOT NULL,
   `host_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `chdate` bigint(20) NOT NULL,
-  `mkdate` bigint(20) NOT NULL,
+  `chdate` bigint NOT NULL,
+  `mkdate` bigint NOT NULL,
   PRIMARY KEY (`comment_id`),
   KEY `review_id` (`review_id`),
   KEY `foreign_comment_id` (`foreign_comment_id`),
   KEY `host_id` (`host_id`),
   KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -3994,15 +4084,15 @@ CREATE TABLE `oer_comments` (
 
 DROP TABLE IF EXISTS `oer_downloadcounter`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_downloadcounter` (
   `counter_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `material_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `longitude` double DEFAULT NULL,
   `latitude` double DEFAULT NULL,
-  `mkdate` int(11) DEFAULT NULL,
+  `mkdate` int DEFAULT NULL,
   PRIMARY KEY (`counter_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4011,22 +4101,23 @@ CREATE TABLE `oer_downloadcounter` (
 
 DROP TABLE IF EXISTS `oer_hosts`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_hosts` (
   `host_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+  `sorm_class` varchar(50) NOT NULL DEFAULT 'OERHost',
   `name` varchar(64) NOT NULL,
   `url` varchar(200) NOT NULL,
   `public_key` text NOT NULL,
-  `private_key` text DEFAULT NULL,
-  `active` tinyint(4) NOT NULL DEFAULT 1,
-  `index_server` tinyint(4) NOT NULL DEFAULT 0,
-  `allowed_as_index_server` tinyint(4) NOT NULL DEFAULT 1,
-  `last_updated` bigint(20) NOT NULL,
-  `chdate` bigint(20) NOT NULL,
-  `mkdate` bigint(20) NOT NULL,
+  `private_key` text,
+  `active` tinyint NOT NULL DEFAULT '1',
+  `index_server` tinyint NOT NULL DEFAULT '0',
+  `allowed_as_index_server` tinyint NOT NULL DEFAULT '1',
+  `last_updated` bigint NOT NULL,
+  `chdate` bigint NOT NULL,
+  `mkdate` bigint NOT NULL,
   PRIMARY KEY (`host_id`),
   UNIQUE KEY `url` (`url`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4035,38 +4126,40 @@ CREATE TABLE `oer_hosts` (
 
 DROP TABLE IF EXISTS `oer_material`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_material` (
   `material_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `foreign_material_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `host_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `name` varchar(64) NOT NULL,
   `category` varchar(64) NOT NULL DEFAULT '',
-  `draft` tinyint(1) NOT NULL DEFAULT 0,
+  `draft` tinyint(1) NOT NULL DEFAULT '0',
   `filename` varchar(64) NOT NULL,
   `short_description` varchar(100) DEFAULT NULL,
   `description` text NOT NULL,
-  `difficulty_start` tinyint(12) NOT NULL DEFAULT 1,
-  `difficulty_end` tinyint(12) NOT NULL DEFAULT 12,
+  `difficulty_start` tinyint NOT NULL DEFAULT '1',
+  `difficulty_end` tinyint NOT NULL DEFAULT '12',
   `player_url` varchar(256) DEFAULT NULL,
   `tool` varchar(128) DEFAULT NULL,
   `content_type` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `front_image_content_type` varchar(64) DEFAULT NULL,
-  `structure` text DEFAULT NULL,
+  `structure` text,
   `rating` double DEFAULT NULL,
   `license_identifier` varchar(64) NOT NULL DEFAULT 'CC BY SA 3.0',
   `uri` varchar(1000) NOT NULL DEFAULT '',
   `uri_hash` char(32) NOT NULL DEFAULT '',
   `published_id_on_twillo` varchar(50) DEFAULT NULL,
-  `chdate` bigint(20) NOT NULL,
-  `mkdate` int(11) NOT NULL,
+  `source_url` varchar(256) DEFAULT NULL,
+  `data` text,
+  `chdate` bigint NOT NULL,
+  `mkdate` int NOT NULL,
   PRIMARY KEY (`material_id`),
   KEY `host_id` (`host_id`),
   KEY `category` (`category`),
   KEY `foreign_material_id` (`foreign_material_id`),
   KEY `license_identifier` (`license_identifier`),
   KEY `uri_hash` (`uri_hash`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4075,16 +4168,16 @@ CREATE TABLE `oer_material` (
 
 DROP TABLE IF EXISTS `oer_material_users`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_material_users` (
   `material_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `external_contact` int(11) NOT NULL DEFAULT 0,
-  `position` int(11) NOT NULL DEFAULT 1,
-  `chdate` int(11) NOT NULL,
-  `mkdate` int(11) NOT NULL,
+  `external_contact` int NOT NULL DEFAULT '0',
+  `position` int NOT NULL DEFAULT '1',
+  `chdate` int NOT NULL,
+  `mkdate` int NOT NULL,
   PRIMARY KEY (`material_id`,`user_id`,`external_contact`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4093,24 +4186,24 @@ CREATE TABLE `oer_material_users` (
 
 DROP TABLE IF EXISTS `oer_reviews`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_reviews` (
   `review_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `material_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `foreign_review_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `host_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `rating` int(11) NOT NULL,
+  `rating` int NOT NULL,
   `review` text NOT NULL,
-  `chdate` int(11) NOT NULL,
-  `mkdate` int(11) NOT NULL,
+  `chdate` int NOT NULL,
+  `mkdate` int NOT NULL,
   PRIMARY KEY (`review_id`),
   UNIQUE KEY `unique_users` (`user_id`,`host_id`,`material_id`),
   KEY `material_id` (`material_id`),
   KEY `foreign_review_id` (`foreign_review_id`),
   KEY `user_id` (`user_id`),
   KEY `host_id` (`host_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4119,12 +4212,12 @@ CREATE TABLE `oer_reviews` (
 
 DROP TABLE IF EXISTS `oer_tags`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_tags` (
   `tag_hash` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `name` varchar(64) NOT NULL,
   PRIMARY KEY (`tag_hash`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4133,14 +4226,14 @@ CREATE TABLE `oer_tags` (
 
 DROP TABLE IF EXISTS `oer_tags_material`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_tags_material` (
   `material_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `tag_hash` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   UNIQUE KEY `unique_tags` (`material_id`,`tag_hash`),
   KEY `tag_hash` (`tag_hash`),
   KEY `material_id` (`material_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4149,21 +4242,21 @@ CREATE TABLE `oer_tags_material` (
 
 DROP TABLE IF EXISTS `oer_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `oer_user` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `foreign_user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `host_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `name` varchar(100) NOT NULL,
   `avatar` varchar(256) DEFAULT NULL,
-  `description` text DEFAULT NULL,
-  `chdate` int(11) NOT NULL,
-  `mkdate` int(11) NOT NULL,
+  `description` text,
+  `chdate` int NOT NULL,
+  `mkdate` int NOT NULL,
   PRIMARY KEY (`user_id`),
   UNIQUE KEY `unique_users` (`foreign_user_id`,`host_id`),
   KEY `foreign_user_id` (`foreign_user_id`),
   KEY `host_id` (`host_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4172,20 +4265,20 @@ CREATE TABLE `oer_user` (
 
 DROP TABLE IF EXISTS `opengraphdata`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `opengraphdata` (
-  `opengraph_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
+  `opengraph_id` int unsigned NOT NULL AUTO_INCREMENT,
   `hash` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `url` varchar(1000) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `is_opengraph` tinyint(1) unsigned DEFAULT NULL,
-  `title` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `image` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `type` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `data` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `last_update` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `url` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `is_opengraph` tinyint unsigned DEFAULT NULL,
+  `title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `image` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `last_update` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`opengraph_id`),
   UNIQUE KEY `hash` (`hash`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -4197,13 +4290,13 @@ CREATE TABLE `opengraphdata` (
 
 DROP TABLE IF EXISTS `participantrestrictedadmissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `participantrestrictedadmissions` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `distribution_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `distribution_time` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4214,15 +4307,15 @@ CREATE TABLE `participantrestrictedadmissions` (
 
 DROP TABLE IF EXISTS `passwordadmissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `passwordadmissions` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `message` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `start_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `end_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `start_time` int unsigned NOT NULL DEFAULT '0',
+  `end_time` int unsigned NOT NULL DEFAULT '0',
+  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4233,15 +4326,15 @@ CREATE TABLE `passwordadmissions` (
 
 DROP TABLE IF EXISTS `personal_notifications`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `personal_notifications` (
-  `personal_notification_id` int(11) NOT NULL AUTO_INCREMENT,
-  `url` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `text` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `avatar` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `dialog` tinyint(4) NOT NULL DEFAULT 0,
-  `html_id` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `personal_notification_id` int NOT NULL AUTO_INCREMENT,
+  `url` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `avatar` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `dialog` tinyint NOT NULL DEFAULT '0',
+  `html_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`personal_notification_id`),
   KEY `html_id` (`html_id`),
   KEY `url` (`url`(256))
@@ -4254,11 +4347,11 @@ CREATE TABLE `personal_notifications` (
 
 DROP TABLE IF EXISTS `personal_notifications_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `personal_notifications_user` (
-  `personal_notification_id` int(10) unsigned NOT NULL,
+  `personal_notification_id` int unsigned NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `seen` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `seen` tinyint unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`personal_notification_id`,`user_id`),
   KEY `user_id` (`user_id`,`seen`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -4270,16 +4363,16 @@ CREATE TABLE `personal_notifications_user` (
 
 DROP TABLE IF EXISTS `plugin_assets`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `plugin_assets` (
   `asset_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `plugin_id` int(10) unsigned NOT NULL,
+  `plugin_id` int unsigned NOT NULL,
   `type` enum('css','js') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `filename` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `storagename` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `size` int(11) unsigned DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `filename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `storagename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `size` int unsigned DEFAULT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`asset_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4290,20 +4383,20 @@ CREATE TABLE `plugin_assets` (
 
 DROP TABLE IF EXISTS `plugins`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `plugins` (
-  `pluginid` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `pluginclassname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `pluginpath` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `pluginname` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `plugintype` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `pluginid` int unsigned NOT NULL AUTO_INCREMENT,
+  `pluginclassname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `pluginpath` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `pluginname` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `plugintype` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `enabled` enum('yes','no') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'no',
-  `navigationpos` int(10) unsigned NOT NULL DEFAULT 0,
-  `dependentonid` int(10) unsigned DEFAULT NULL,
-  `automatic_update_url` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `navigationpos` int unsigned NOT NULL DEFAULT '0',
+  `dependentonid` int unsigned DEFAULT NULL,
+  `automatic_update_url` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `automatic_update_secret` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   PRIMARY KEY (`pluginid`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4312,12 +4405,12 @@ CREATE TABLE `plugins` (
 
 DROP TABLE IF EXISTS `plugins_activated`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `plugins_activated` (
-  `pluginid` int(10) unsigned NOT NULL DEFAULT 0,
+  `pluginid` int unsigned NOT NULL DEFAULT '0',
   `range_type` enum('user') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'user',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `state` tinyint(1) unsigned NOT NULL DEFAULT 1,
+  `state` tinyint unsigned NOT NULL DEFAULT '1',
   PRIMARY KEY (`pluginid`,`range_type`,`range_id`),
   KEY `range` (`range_id`,`range_type`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -4329,12 +4422,12 @@ CREATE TABLE `plugins_activated` (
 
 DROP TABLE IF EXISTS `prefadmission_condition`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `prefadmission_condition` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `condition_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `chance` int(4) NOT NULL DEFAULT 1,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `chance` int NOT NULL DEFAULT '1',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`,`condition_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4345,12 +4438,12 @@ CREATE TABLE `prefadmission_condition` (
 
 DROP TABLE IF EXISTS `prefadmissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `prefadmissions` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `favor_semester` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `favor_semester` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4361,14 +4454,14 @@ CREATE TABLE `prefadmissions` (
 
 DROP TABLE IF EXISTS `priorities`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `priorities` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `set_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `priority` int(11) NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `priority` int NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`user_id`,`set_id`,`seminar_id`),
   KEY `user_rule_priority` (`user_id`,`priority`,`set_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -4380,13 +4473,13 @@ CREATE TABLE `priorities` (
 
 DROP TABLE IF EXISTS `questionnaire_anonymous_answers`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `questionnaire_anonymous_answers` (
   `anonymous_answer_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `questionnaire_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`anonymous_answer_id`),
   UNIQUE KEY `questionnaire_id_user_id` (`questionnaire_id`,`user_id`),
   KEY `questionnaire_id` (`questionnaire_id`),
@@ -4400,14 +4493,14 @@ CREATE TABLE `questionnaire_anonymous_answers` (
 
 DROP TABLE IF EXISTS `questionnaire_answers`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `questionnaire_answers` (
   `answer_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `question_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `answerdata` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `answerdata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`answer_id`),
   KEY `question_id` (`question_id`),
   KEY `user_id` (`user_id`)
@@ -4420,15 +4513,15 @@ CREATE TABLE `questionnaire_answers` (
 
 DROP TABLE IF EXISTS `questionnaire_assignments`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `questionnaire_assignments` (
   `assignment_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `questionnaire_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `range_type` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `range_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`assignment_id`),
   KEY `questionnaire_id` (`questionnaire_id`),
   KEY `range_id_range_type` (`range_id`,`range_type`),
@@ -4442,14 +4535,14 @@ CREATE TABLE `questionnaire_assignments` (
 
 DROP TABLE IF EXISTS `questionnaire_questions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `questionnaire_questions` (
   `question_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `questionnaire_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `etask_task_id` int(11) NOT NULL,
-  `position` int(11) NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `etask_task_id` int NOT NULL,
+  `position` int NOT NULL,
+  `chdate` int unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`question_id`),
   KEY `questionnaire_id` (`questionnaire_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -4461,21 +4554,21 @@ CREATE TABLE `questionnaire_questions` (
 
 DROP TABLE IF EXISTS `questionnaires`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `questionnaires` (
   `questionnaire_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `title` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `title` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `startdate` int(11) unsigned DEFAULT NULL,
-  `stopdate` int(11) unsigned DEFAULT NULL,
-  `visible` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `anonymous` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `startdate` int unsigned DEFAULT NULL,
+  `stopdate` int unsigned DEFAULT NULL,
+  `visible` tinyint unsigned NOT NULL DEFAULT '0',
+  `anonymous` tinyint unsigned NOT NULL DEFAULT '0',
   `resultvisibility` enum('always','never','afterending') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'always',
-  `editanswers` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `copyable` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `editanswers` tinyint unsigned NOT NULL DEFAULT '1',
+  `copyable` tinyint unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`questionnaire_id`),
   KEY `user_id` (`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -4487,13 +4580,13 @@ CREATE TABLE `questionnaires` (
 
 DROP TABLE IF EXISTS `range_tree`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `range_tree` (
   `item_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `parent_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `level` int(11) NOT NULL DEFAULT 0,
-  `priority` int(11) NOT NULL DEFAULT 0,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `level` int NOT NULL DEFAULT '0',
+  `priority` int NOT NULL DEFAULT '0',
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `studip_object` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `studip_object_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   PRIMARY KEY (`item_id`),
@@ -4509,16 +4602,16 @@ CREATE TABLE `range_tree` (
 
 DROP TABLE IF EXISTS `resource_booking_intervals`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_booking_intervals` (
   `interval_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `resource_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `booking_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `begin` int(11) unsigned NOT NULL DEFAULT 0,
-  `end` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `takes_place` tinyint(1) unsigned NOT NULL DEFAULT 1,
+  `begin` int unsigned NOT NULL DEFAULT '0',
+  `end` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `takes_place` tinyint unsigned NOT NULL DEFAULT '1',
   PRIMARY KEY (`interval_id`),
   KEY `resource_id` (`resource_id`,`takes_place`,`end`),
   KEY `booking_id` (`booking_id`)
@@ -4531,21 +4624,21 @@ CREATE TABLE `resource_booking_intervals` (
 
 DROP TABLE IF EXISTS `resource_bookings`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_bookings` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `resource_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `begin` int(11) unsigned NOT NULL DEFAULT 0,
-  `end` int(11) unsigned NOT NULL DEFAULT 0,
-  `repeat_end` int(11) unsigned DEFAULT NULL,
-  `repeat_quantity` int(2) DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `internal_comment` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `preparation_time` int(4) NOT NULL DEFAULT 0,
-  `booking_type` tinyint(2) NOT NULL DEFAULT 0,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `begin` int unsigned NOT NULL DEFAULT '0',
+  `end` int unsigned NOT NULL DEFAULT '0',
+  `repeat_end` int unsigned DEFAULT NULL,
+  `repeat_quantity` int DEFAULT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `internal_comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `preparation_time` int NOT NULL DEFAULT '0',
+  `booking_type` tinyint NOT NULL DEFAULT '0',
   `booking_user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `repetition_interval` varchar(24) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   PRIMARY KEY (`id`),
@@ -4560,16 +4653,16 @@ CREATE TABLE `resource_bookings` (
 
 DROP TABLE IF EXISTS `resource_categories`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_categories` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `system` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `iconnr` int(3) DEFAULT 1,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `system` tinyint unsigned NOT NULL DEFAULT '0',
+  `iconnr` int DEFAULT '1',
   `class_name` varchar(60) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'Resource',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4580,16 +4673,16 @@ CREATE TABLE `resource_categories` (
 
 DROP TABLE IF EXISTS `resource_category_properties`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_category_properties` (
   `category_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `property_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `requestable` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `protected` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `system` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `form_text` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `requestable` tinyint unsigned NOT NULL DEFAULT '0',
+  `protected` tinyint unsigned NOT NULL DEFAULT '0',
+  `system` tinyint unsigned NOT NULL DEFAULT '0',
+  `form_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`category_id`,`property_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4600,13 +4693,13 @@ CREATE TABLE `resource_category_properties` (
 
 DROP TABLE IF EXISTS `resource_permissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_permissions` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `resource_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `perms` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`user_id`,`resource_id`),
   KEY `resource_id` (`resource_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -4618,13 +4711,13 @@ CREATE TABLE `resource_permissions` (
 
 DROP TABLE IF EXISTS `resource_properties`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_properties` (
   `resource_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `property_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `state` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `state` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`resource_id`,`property_id`),
   KEY `property_id` (`property_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -4636,23 +4729,23 @@ CREATE TABLE `resource_properties` (
 
 DROP TABLE IF EXISTS `resource_property_definitions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_property_definitions` (
   `property_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `type` set('bool','text','num','select','user','institute','position','fileref','url','resource_ref_list') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `system` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `info_label` tinyint(4) NOT NULL DEFAULT 0,
-  `display_name` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `searchable` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `range_search` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `system` tinyint unsigned NOT NULL DEFAULT '0',
+  `info_label` tinyint NOT NULL DEFAULT '0',
+  `display_name` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `searchable` tinyint unsigned NOT NULL DEFAULT '0',
+  `range_search` tinyint unsigned NOT NULL DEFAULT '0',
   `write_permission_level` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'admin-global',
-  `property_group_id` int(11) DEFAULT NULL,
-  `property_group_pos` tinyint(4) DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `property_group_id` int DEFAULT NULL,
+  `property_group_pos` tinyint DEFAULT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`property_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4663,15 +4756,15 @@ CREATE TABLE `resource_property_definitions` (
 
 DROP TABLE IF EXISTS `resource_property_groups`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_property_groups` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `id` int NOT NULL AUTO_INCREMENT,
   `name` varchar(255) NOT NULL DEFAULT '',
-  `position` tinyint(4) NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `position` tinyint NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4680,15 +4773,15 @@ CREATE TABLE `resource_property_groups` (
 
 DROP TABLE IF EXISTS `resource_request_appointments`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_request_appointments` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `id` int NOT NULL AUTO_INCREMENT,
   `request_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `appointment_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4697,13 +4790,13 @@ CREATE TABLE `resource_request_appointments` (
 
 DROP TABLE IF EXISTS `resource_request_properties`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_request_properties` (
   `request_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `property_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `state` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `state` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`request_id`,`property_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4714,7 +4807,7 @@ CREATE TABLE `resource_request_properties` (
 
 DROP TABLE IF EXISTS `resource_requests`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_requests` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `course_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -4724,16 +4817,16 @@ CREATE TABLE `resource_requests` (
   `last_modified_by` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `resource_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `category_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '',
-  `comment` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `reply_comment` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `reply_comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   `reply_recipients` enum('requester','lecturer') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'requester',
-  `closed` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
-  `begin` int(11) unsigned NOT NULL DEFAULT 0,
-  `end` int(11) unsigned NOT NULL DEFAULT 0,
-  `preparation_time` int(4) NOT NULL DEFAULT 0,
-  `marked` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `closed` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
+  `begin` int unsigned NOT NULL DEFAULT '0',
+  `end` int unsigned NOT NULL DEFAULT '0',
+  `preparation_time` int NOT NULL DEFAULT '0',
+  `marked` tinyint unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
   KEY `termin_id` (`termin_id`),
   KEY `seminar_id` (`course_id`),
@@ -4751,20 +4844,20 @@ CREATE TABLE `resource_requests` (
 
 DROP TABLE IF EXISTS `resource_temporary_permissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resource_temporary_permissions` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `id` int NOT NULL AUTO_INCREMENT,
   `resource_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `begin` int(11) unsigned NOT NULL DEFAULT 0,
-  `end` int(11) unsigned NOT NULL DEFAULT 0,
+  `begin` int unsigned NOT NULL DEFAULT '0',
+  `end` int unsigned NOT NULL DEFAULT '0',
   `perms` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
   KEY `user_id` (`user_id`),
   KEY `resource_id` (`resource_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4773,19 +4866,19 @@ CREATE TABLE `resource_temporary_permissions` (
 
 DROP TABLE IF EXISTS `resources`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `resources` (
   `id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `parent_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `category_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `level` int(4) DEFAULT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `requestable` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `lockable` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `sort_position` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `level` int DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `requestable` tinyint unsigned NOT NULL DEFAULT '0',
+  `lockable` tinyint unsigned NOT NULL DEFAULT '1',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `sort_position` tinyint unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
   KEY `parent_id` (`parent_id`),
   KEY `category_id` (`category_id`)
@@ -4798,13 +4891,13 @@ CREATE TABLE `resources` (
 
 DROP TABLE IF EXISTS `roles`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `roles` (
-  `roleid` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `rolename` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `roleid` int unsigned NOT NULL AUTO_INCREMENT,
+  `rolename` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `system` enum('y','n') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'n',
   PRIMARY KEY (`roleid`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4813,10 +4906,10 @@ CREATE TABLE `roles` (
 
 DROP TABLE IF EXISTS `roles_plugins`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `roles_plugins` (
-  `roleid` int(10) unsigned NOT NULL DEFAULT 0,
-  `pluginid` int(10) unsigned NOT NULL DEFAULT 0,
+  `roleid` int unsigned NOT NULL DEFAULT '0',
+  `pluginid` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`roleid`,`pluginid`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4827,10 +4920,10 @@ CREATE TABLE `roles_plugins` (
 
 DROP TABLE IF EXISTS `roles_studipperms`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `roles_studipperms` (
-  `roleid` int(10) unsigned NOT NULL DEFAULT 0,
-  `permname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `roleid` int unsigned NOT NULL DEFAULT '0',
+  `permname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   PRIMARY KEY (`roleid`,`permname`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4841,9 +4934,9 @@ CREATE TABLE `roles_studipperms` (
 
 DROP TABLE IF EXISTS `roles_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `roles_user` (
-  `roleid` int(10) unsigned NOT NULL DEFAULT 0,
+  `roleid` int unsigned NOT NULL DEFAULT '0',
   `userid` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `institut_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   PRIMARY KEY (`roleid`,`userid`,`institut_id`)
@@ -4856,15 +4949,15 @@ CREATE TABLE `roles_user` (
 
 DROP TABLE IF EXISTS `schedule`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `schedule` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `start` smallint(6) NOT NULL COMMENT 'start hour and minutes',
-  `end` smallint(6) NOT NULL COMMENT 'end hour and minutes',
-  `day` tinyint(4) NOT NULL COMMENT 'day of week, 0-6',
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `content` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `color` tinyint(4) DEFAULT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `start` smallint NOT NULL COMMENT 'start hour and minutes',
+  `end` smallint NOT NULL COMMENT 'end hour and minutes',
+  `day` tinyint NOT NULL COMMENT 'day of week, 0-6',
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `color` tinyint DEFAULT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   PRIMARY KEY (`id`),
   KEY `user_id` (`user_id`)
@@ -4877,13 +4970,13 @@ CREATE TABLE `schedule` (
 
 DROP TABLE IF EXISTS `schedule_seminare`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `schedule_seminare` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `metadate_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `visible` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `color` tinyint(4) DEFAULT NULL,
+  `visible` tinyint unsigned NOT NULL DEFAULT '1',
+  `color` tinyint DEFAULT NULL,
   PRIMARY KEY (`user_id`,`seminar_id`,`metadate_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -4894,13 +4987,13 @@ CREATE TABLE `schedule_seminare` (
 
 DROP TABLE IF EXISTS `schema_version`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `schema_version` (
   `domain` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `branch` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '0',
-  `version` int(11) unsigned NOT NULL,
+  `version` int unsigned NOT NULL,
   PRIMARY KEY (`domain`,`branch`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4909,16 +5002,16 @@ CREATE TABLE `schema_version` (
 
 DROP TABLE IF EXISTS `scm`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `scm` (
   `scm_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `tab_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `content` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `position` int(11) unsigned NOT NULL DEFAULT 0,
+  `tab_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `position` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`scm_id`),
   KEY `chdate` (`chdate`),
   KEY `range_id` (`range_id`)
@@ -4931,39 +5024,39 @@ CREATE TABLE `scm` (
 
 DROP TABLE IF EXISTS `sem_classes`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `sem_classes` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `only_inst_user` tinyint(1) unsigned NOT NULL,
-  `default_read_level` int(11) NOT NULL,
-  `default_write_level` int(11) NOT NULL,
-  `bereiche` tinyint(1) unsigned NOT NULL,
-  `module` tinyint(1) unsigned NOT NULL,
-  `show_browse` tinyint(1) unsigned NOT NULL,
-  `write_access_nobody` tinyint(1) unsigned NOT NULL,
-  `topic_create_autor` tinyint(1) unsigned NOT NULL,
-  `visible` tinyint(1) unsigned NOT NULL,
-  `course_creation_forbidden` tinyint(1) unsigned NOT NULL,
-  `modules` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `create_description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `studygroup_mode` tinyint(1) unsigned NOT NULL,
-  `admission_prelim_default` tinyint(4) NOT NULL DEFAULT 0,
-  `admission_type_default` tinyint(4) NOT NULL DEFAULT 0,
-  `title_dozent` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `title_dozent_plural` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `title_tutor` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `title_tutor_plural` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `title_autor` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `title_autor_plural` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `show_raumzeit` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `is_group` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `only_inst_user` tinyint unsigned NOT NULL,
+  `default_read_level` int NOT NULL,
+  `default_write_level` int NOT NULL,
+  `bereiche` tinyint unsigned NOT NULL,
+  `module` tinyint unsigned NOT NULL,
+  `show_browse` tinyint unsigned NOT NULL,
+  `write_access_nobody` tinyint unsigned NOT NULL,
+  `topic_create_autor` tinyint unsigned NOT NULL,
+  `visible` tinyint unsigned NOT NULL,
+  `course_creation_forbidden` tinyint unsigned NOT NULL,
+  `modules` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `create_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `studygroup_mode` tinyint unsigned NOT NULL,
+  `admission_prelim_default` tinyint NOT NULL DEFAULT '0',
+  `admission_type_default` tinyint NOT NULL DEFAULT '0',
+  `title_dozent` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `title_dozent_plural` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `title_tutor` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `title_tutor_plural` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `title_autor` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `title_autor_plural` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `show_raumzeit` tinyint unsigned NOT NULL DEFAULT '1',
+  `is_group` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`),
   UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -4972,17 +5065,17 @@ CREATE TABLE `sem_classes` (
 
 DROP TABLE IF EXISTS `sem_tree`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `sem_tree` (
   `sem_tree_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `parent_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `priority` tinyint(4) NOT NULL DEFAULT 0,
-  `info` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `priority` tinyint NOT NULL DEFAULT '0',
+  `info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `studip_object_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `type` tinyint(3) unsigned NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `type` tinyint unsigned NOT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`sem_tree_id`),
   KEY `parent_id` (`parent_id`),
   KEY `priority` (`priority`),
@@ -4996,15 +5089,15 @@ CREATE TABLE `sem_tree` (
 
 DROP TABLE IF EXISTS `sem_types`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `sem_types` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `class` int(11) NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `class` int NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -5013,12 +5106,12 @@ CREATE TABLE `sem_types` (
 
 DROP TABLE IF EXISTS `semester_courses`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `semester_courses` (
   `semester_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `course_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(10) NOT NULL DEFAULT 0,
-  `chdate` int(10) NOT NULL DEFAULT 0,
+  `mkdate` int NOT NULL DEFAULT '0',
+  `chdate` int NOT NULL DEFAULT '0',
   PRIMARY KEY (`semester_id`,`course_id`),
   KEY `course_id` (`course_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
@@ -5030,20 +5123,21 @@ CREATE TABLE `semester_courses` (
 
 DROP TABLE IF EXISTS `semester_data`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `semester_data` (
   `semester_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `semester_token` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `beginn` int(11) unsigned DEFAULT NULL,
-  `ende` int(11) unsigned DEFAULT NULL,
-  `vorles_beginn` int(11) unsigned DEFAULT NULL,
-  `vorles_ende` int(11) unsigned DEFAULT NULL,
-  `visible` tinyint(1) unsigned NOT NULL DEFAULT 1,
+  `beginn` int unsigned DEFAULT NULL,
+  `ende` int unsigned DEFAULT NULL,
+  `sem_wechsel` int unsigned DEFAULT NULL,
+  `vorles_beginn` int unsigned DEFAULT NULL,
+  `vorles_ende` int unsigned DEFAULT NULL,
+  `visible` tinyint unsigned NOT NULL DEFAULT '1',
   `external_id` varchar(50) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`semester_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5054,16 +5148,16 @@ CREATE TABLE `semester_data` (
 
 DROP TABLE IF EXISTS `semester_holiday`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `semester_holiday` (
   `holiday_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `semester_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `beginn` int(11) unsigned DEFAULT NULL,
-  `ende` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `beginn` int unsigned DEFAULT NULL,
+  `ende` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`holiday_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5074,11 +5168,11 @@ CREATE TABLE `semester_holiday` (
 
 DROP TABLE IF EXISTS `seminar_courseset`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `seminar_courseset` (
   `set_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`set_id`,`seminar_id`),
   KEY `seminar_id` (`seminar_id`,`set_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5090,21 +5184,21 @@ CREATE TABLE `seminar_courseset` (
 
 DROP TABLE IF EXISTS `seminar_cycle_dates`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `seminar_cycle_dates` (
   `metadate_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `start_time` time NOT NULL,
   `end_time` time NOT NULL,
-  `weekday` tinyint(3) unsigned NOT NULL,
-  `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `sws` decimal(2,1) NOT NULL DEFAULT 0.0,
-  `cycle` tinyint(3) unsigned NOT NULL DEFAULT 0,
-  `week_offset` int(11) NOT NULL DEFAULT 0,
-  `end_offset` int(11) DEFAULT NULL,
-  `sorter` tinyint(3) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `weekday` tinyint unsigned NOT NULL,
+  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `sws` decimal(2,1) NOT NULL DEFAULT '0.0',
+  `cycle` tinyint unsigned NOT NULL DEFAULT '0',
+  `week_offset` int NOT NULL DEFAULT '0',
+  `end_offset` int DEFAULT NULL,
+  `sorter` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`metadate_id`),
   KEY `seminar_id` (`seminar_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5116,7 +5210,7 @@ CREATE TABLE `seminar_cycle_dates` (
 
 DROP TABLE IF EXISTS `seminar_inst`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `seminar_inst` (
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `institut_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -5131,7 +5225,7 @@ CREATE TABLE `seminar_inst` (
 
 DROP TABLE IF EXISTS `seminar_sem_tree`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `seminar_sem_tree` (
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `sem_tree_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -5146,18 +5240,18 @@ CREATE TABLE `seminar_sem_tree` (
 
 DROP TABLE IF EXISTS `seminar_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `seminar_user` (
   `Seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `status` enum('user','autor','tutor','dozent') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'user',
-  `position` int(11) NOT NULL DEFAULT 0,
-  `gruppe` tinyint(4) NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `comment` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `position` int NOT NULL DEFAULT '0',
+  `gruppe` tinyint NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `visible` enum('yes','no','unknown') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'unknown',
-  `label` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `bind_calendar` tinyint(1) unsigned NOT NULL DEFAULT 1,
+  `label` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `bind_calendar` tinyint unsigned NOT NULL DEFAULT '1',
   PRIMARY KEY (`Seminar_id`,`user_id`),
   KEY `status` (`status`,`Seminar_id`),
   KEY `user_id` (`user_id`,`Seminar_id`,`status`)
@@ -5170,13 +5264,13 @@ CREATE TABLE `seminar_user` (
 
 DROP TABLE IF EXISTS `seminar_user_notifications`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `seminar_user_notifications` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `notification_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
-  `chdate` int(10) unsigned NOT NULL,
-  `mkdate` int(10) unsigned NOT NULL,
+  `notification_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
+  `chdate` int unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`user_id`,`seminar_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5187,7 +5281,7 @@ CREATE TABLE `seminar_user_notifications` (
 
 DROP TABLE IF EXISTS `seminar_userdomains`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `seminar_userdomains` (
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `userdomain_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -5201,42 +5295,42 @@ CREATE TABLE `seminar_userdomains` (
 
 DROP TABLE IF EXISTS `seminare`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `seminare` (
   `Seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '0',
-  `VeranstaltungsNummer` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `VeranstaltungsNummer` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `Institut_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '0',
-  `Name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `Untertitel` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `status` int(11) unsigned NOT NULL DEFAULT 1,
-  `Beschreibung` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `Ort` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `Sonstiges` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `Lesezugriff` tinyint(4) NOT NULL DEFAULT 0,
-  `Schreibzugriff` tinyint(4) NOT NULL DEFAULT 0,
-  `start_time` int(11) unsigned DEFAULT 0,
-  `duration_time` int(11) DEFAULT NULL,
-  `art` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `teilnehmer` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `vorrausetzungen` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `lernorga` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `leistungsnachweis` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `Name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `Untertitel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `status` int unsigned NOT NULL DEFAULT '1',
+  `Beschreibung` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `Ort` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `Sonstiges` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `Lesezugriff` tinyint NOT NULL DEFAULT '0',
+  `Schreibzugriff` tinyint NOT NULL DEFAULT '0',
+  `start_time` int unsigned DEFAULT '0',
+  `duration_time` int DEFAULT NULL,
+  `art` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `teilnehmer` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `vorrausetzungen` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `lernorga` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `leistungsnachweis` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   `ects` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `admission_turnout` int(5) DEFAULT NULL,
-  `admission_binding` tinyint(4) DEFAULT NULL,
-  `admission_prelim` tinyint(4) unsigned NOT NULL DEFAULT 0,
-  `admission_prelim_txt` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `admission_disable_waitlist` tinyint(3) unsigned NOT NULL DEFAULT 0,
-  `visible` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `showscore` tinyint(3) DEFAULT 0,
+  `admission_turnout` int DEFAULT NULL,
+  `admission_binding` tinyint DEFAULT NULL,
+  `admission_prelim` tinyint unsigned NOT NULL DEFAULT '0',
+  `admission_prelim_txt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `admission_disable_waitlist` tinyint unsigned NOT NULL DEFAULT '0',
+  `visible` tinyint unsigned NOT NULL DEFAULT '1',
+  `showscore` tinyint DEFAULT '0',
   `aux_lock_rule` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `aux_lock_rule_forced` tinyint(4) NOT NULL DEFAULT 0,
+  `aux_lock_rule_forced` tinyint NOT NULL DEFAULT '0',
   `lock_rule` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `admission_waitlist_max` int(10) unsigned NOT NULL DEFAULT 0,
-  `admission_disable_waitlist_move` tinyint(3) unsigned NOT NULL DEFAULT 0,
-  `completion` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `admission_waitlist_max` int unsigned NOT NULL DEFAULT '0',
+  `admission_disable_waitlist_move` tinyint unsigned NOT NULL DEFAULT '0',
+  `completion` tinyint unsigned NOT NULL DEFAULT '0',
   `parent_course` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   PRIMARY KEY (`Seminar_id`),
   KEY `Institut_id` (`Institut_id`),
@@ -5252,14 +5346,14 @@ CREATE TABLE `seminare` (
 
 DROP TABLE IF EXISTS `separable_room_parts`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `separable_room_parts` (
-  `separable_room_id` int(10) NOT NULL,
+  `separable_room_id` int NOT NULL,
   `room_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`separable_room_id`,`room_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -5268,15 +5362,15 @@ CREATE TABLE `separable_room_parts` (
 
 DROP TABLE IF EXISTS `separable_rooms`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `separable_rooms` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `id` int NOT NULL AUTO_INCREMENT,
   `building_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `name` varchar(256) NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -5285,11 +5379,11 @@ CREATE TABLE `separable_rooms` (
 
 DROP TABLE IF EXISTS `session_data`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `session_data` (
   `sid` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `val` mediumblob NOT NULL,
-  `changed` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
+  `changed` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
   PRIMARY KEY (`sid`),
   KEY `changed` (`changed`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5301,15 +5395,15 @@ CREATE TABLE `session_data` (
 
 DROP TABLE IF EXISTS `siteinfo_details`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `siteinfo_details` (
-  `detail_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
-  `rubric_id` smallint(5) unsigned NOT NULL,
-  `position` tinyint(3) unsigned DEFAULT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
+  `detail_id` smallint unsigned NOT NULL AUTO_INCREMENT,
+  `rubric_id` smallint unsigned NOT NULL,
+  `position` tinyint unsigned DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`detail_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -5318,13 +5412,13 @@ CREATE TABLE `siteinfo_details` (
 
 DROP TABLE IF EXISTS `siteinfo_rubrics`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `siteinfo_rubrics` (
-  `rubric_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
-  `position` tinyint(3) unsigned DEFAULT NULL,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `rubric_id` smallint unsigned NOT NULL AUTO_INCREMENT,
+  `position` tinyint unsigned DEFAULT NULL,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`rubric_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
 
 --
@@ -5333,18 +5427,18 @@ CREATE TABLE `siteinfo_rubrics` (
 
 DROP TABLE IF EXISTS `smiley`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `smiley` (
-  `smiley_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-  `smiley_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `smiley_width` int(11) NOT NULL DEFAULT 0,
-  `smiley_height` int(11) NOT NULL DEFAULT 0,
-  `short_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `smiley_counter` int(11) unsigned NOT NULL DEFAULT 0,
-  `short_counter` int(11) unsigned NOT NULL DEFAULT 0,
-  `fav_counter` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `smiley_id` int unsigned NOT NULL AUTO_INCREMENT,
+  `smiley_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `smiley_width` int NOT NULL DEFAULT '0',
+  `smiley_height` int NOT NULL DEFAULT '0',
+  `short_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `smiley_counter` int unsigned NOT NULL DEFAULT '0',
+  `short_counter` int unsigned NOT NULL DEFAULT '0',
+  `fav_counter` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`smiley_id`),
   UNIQUE KEY `name` (`smiley_name`),
   KEY `short` (`short_name`)
@@ -5357,14 +5451,14 @@ CREATE TABLE `smiley` (
 
 DROP TABLE IF EXISTS `statusgruppe_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `statusgruppe_user` (
   `statusgruppe_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `position` int(11) NOT NULL DEFAULT 0,
-  `visible` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `inherit` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `mkdate` int(11) unsigned DEFAULT NULL,
+  `position` int NOT NULL DEFAULT '0',
+  `visible` tinyint unsigned NOT NULL DEFAULT '1',
+  `inherit` tinyint unsigned NOT NULL DEFAULT '1',
+  `mkdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`statusgruppe_id`,`user_id`),
   KEY `user_id` (`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5376,21 +5470,22 @@ CREATE TABLE `statusgruppe_user` (
 
 DROP TABLE IF EXISTS `statusgruppen`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `statusgruppen` (
   `statusgruppe_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text COLLATE utf8mb4_unicode_ci,
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `position` int(20) NOT NULL DEFAULT 0,
-  `size` int(20) NOT NULL DEFAULT 0,
-  `selfassign` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `selfassign_start` int(11) unsigned NOT NULL DEFAULT 0,
-  `selfassign_end` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `calendar_group` tinyint(2) unsigned NOT NULL DEFAULT 0,
-  `name_w` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `name_m` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `position` int NOT NULL DEFAULT '0',
+  `size` int NOT NULL DEFAULT '0',
+  `selfassign` tinyint unsigned NOT NULL DEFAULT '0',
+  `selfassign_start` int unsigned NOT NULL DEFAULT '0',
+  `selfassign_end` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `calendar_group` tinyint unsigned NOT NULL DEFAULT '0',
+  `name_w` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `name_m` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   PRIMARY KEY (`statusgruppe_id`),
   KEY `range_id` (`range_id`),
   KEY `position` (`position`)
@@ -5403,11 +5498,11 @@ CREATE TABLE `statusgruppen` (
 
 DROP TABLE IF EXISTS `studygroup_invitations`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `studygroup_invitations` (
   `sem_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`sem_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5418,7 +5513,7 @@ CREATE TABLE `studygroup_invitations` (
 
 DROP TABLE IF EXISTS `termin_related_groups`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `termin_related_groups` (
   `termin_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `statusgruppe_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
@@ -5432,7 +5527,7 @@ CREATE TABLE `termin_related_groups` (
 
 DROP TABLE IF EXISTS `termin_related_persons`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `termin_related_persons` (
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
@@ -5446,19 +5541,19 @@ CREATE TABLE `termin_related_persons` (
 
 DROP TABLE IF EXISTS `termine`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `termine` (
   `termin_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `autor_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `content` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `date` int(11) unsigned NOT NULL DEFAULT 0,
-  `end_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `date_typ` tinyint(4) NOT NULL DEFAULT 0,
-  `raum` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
+  `date` int unsigned NOT NULL DEFAULT '0',
+  `end_time` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `date_typ` tinyint NOT NULL DEFAULT '0',
+  `raum` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
   `metadate_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   PRIMARY KEY (`termin_id`),
   KEY `metadate_id` (`metadate_id`,`date`),
@@ -5473,12 +5568,12 @@ CREATE TABLE `termine` (
 
 DROP TABLE IF EXISTS `termsadmissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `termsadmissions` (
   `rule_id` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `terms` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `mkdate` int(11) NOT NULL DEFAULT 0,
-  `chdate` int(11) NOT NULL DEFAULT 0,
+  `terms` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `mkdate` int NOT NULL DEFAULT '0',
+  `chdate` int NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5489,17 +5584,17 @@ CREATE TABLE `termsadmissions` (
 
 DROP TABLE IF EXISTS `themen`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `themen` (
   `issue_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `seminar_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `author_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `priority` smallint(5) unsigned NOT NULL DEFAULT 0,
-  `paper_related` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `priority` smallint unsigned NOT NULL DEFAULT '0',
+  `paper_related` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`issue_id`),
   KEY `seminar_id` (`seminar_id`,`priority`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5511,7 +5606,7 @@ CREATE TABLE `themen` (
 
 DROP TABLE IF EXISTS `themen_termine`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `themen_termine` (
   `issue_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `termin_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -5526,14 +5621,14 @@ CREATE TABLE `themen_termine` (
 
 DROP TABLE IF EXISTS `timedadmissions`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `timedadmissions` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `start_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `end_time` int(11) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `start_time` int unsigned NOT NULL DEFAULT '0',
+  `end_time` int unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`rule_id`),
   KEY `start_time` (`start_time`),
   KEY `end_time` (`end_time`),
@@ -5547,15 +5642,15 @@ CREATE TABLE `timedadmissions` (
 
 DROP TABLE IF EXISTS `tools_activated`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `tools_activated` (
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `range_type` enum('course','institute') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `plugin_id` int(10) unsigned NOT NULL,
-  `position` tinyint(3) unsigned NOT NULL,
-  `metadata` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
-  `mkdate` int(10) unsigned NOT NULL,
-  `chdate` int(10) unsigned NOT NULL,
+  `plugin_id` int unsigned NOT NULL,
+  `position` tinyint unsigned NOT NULL,
+  `metadata` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`range_id`,`plugin_id`),
   KEY `plugin_id` (`plugin_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
@@ -5567,11 +5662,11 @@ CREATE TABLE `tools_activated` (
 
 DROP TABLE IF EXISTS `user_factorlist`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `user_factorlist` (
   `list_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `mkdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`list_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5582,31 +5677,31 @@ CREATE TABLE `user_factorlist` (
 
 DROP TABLE IF EXISTS `user_info`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `user_info` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `hobby` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `lebenslauf` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `publi` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `schwerp` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `Home` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `privatnr` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `privatcell` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `privadr` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `score` int(11) unsigned NOT NULL DEFAULT 0,
-  `geschlecht` tinyint(4) NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `title_front` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `title_rear` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `hobby` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `lebenslauf` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `publi` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `schwerp` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `Home` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `privatnr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `privatcell` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `privadr` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `score` int unsigned NOT NULL DEFAULT '0',
+  `geschlecht` tinyint NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
+  `title_front` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `title_rear` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `preferred_language` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `smsforward_copy` tinyint(1) unsigned NOT NULL DEFAULT 1,
+  `smsforward_copy` tinyint unsigned NOT NULL DEFAULT '1',
   `smsforward_rec` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `email_forward` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `smiley_favorite` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `motto` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `email_forward` tinyint unsigned NOT NULL DEFAULT '0',
+  `smiley_favorite` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `motto` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `lock_rule` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `oercampus_description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+  `oercampus_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
   PRIMARY KEY (`user_id`),
   KEY `score` (`score`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5618,21 +5713,23 @@ CREATE TABLE `user_info` (
 
 DROP TABLE IF EXISTS `user_inst`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `user_inst` (
+  `id` int NOT NULL AUTO_INCREMENT,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '0',
   `Institut_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '0',
   `inst_perms` enum('user','autor','tutor','dozent','admin') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'user',
-  `sprechzeiten` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `raum` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `Telefon` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `Fax` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `externdefault` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `priority` tinyint(3) unsigned NOT NULL DEFAULT 0,
-  `visible` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
-  PRIMARY KEY (`Institut_id`,`user_id`),
+  `sprechzeiten` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `raum` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `Telefon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `Fax` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `externdefault` tinyint unsigned NOT NULL DEFAULT '0',
+  `priority` tinyint unsigned NOT NULL DEFAULT '0',
+  `visible` tinyint unsigned NOT NULL DEFAULT '1',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
+  PRIMARY KEY (`id`),
+  UNIQUE KEY `user_inst` (`Institut_id`,`user_id`),
   KEY `inst_perms` (`inst_perms`,`Institut_id`),
   KEY `user_id` (`user_id`,`inst_perms`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5644,10 +5741,10 @@ CREATE TABLE `user_inst` (
 
 DROP TABLE IF EXISTS `user_online`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `user_online` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `last_lifesign` int(11) unsigned NOT NULL,
+  `last_lifesign` int unsigned NOT NULL,
   PRIMARY KEY (`user_id`),
   KEY `last_lifesign` (`last_lifesign`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5659,15 +5756,15 @@ CREATE TABLE `user_online` (
 
 DROP TABLE IF EXISTS `user_studiengang`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `user_studiengang` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `fach_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `semester` tinyint(2) DEFAULT 0,
+  `semester` tinyint DEFAULT '0',
   `abschluss_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '0',
   `version_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`user_id`,`fach_id`,`abschluss_id`),
   KEY `studiengang_id` (`fach_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5679,12 +5776,12 @@ CREATE TABLE `user_studiengang` (
 
 DROP TABLE IF EXISTS `user_token`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `user_token` (
   `token` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `expiration` int(11) unsigned NOT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
+  `expiration` int unsigned NOT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`token`),
   KEY `index_expiration` (`expiration`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5696,7 +5793,7 @@ CREATE TABLE `user_token` (
 
 DROP TABLE IF EXISTS `user_userdomains`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `user_userdomains` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `userdomain_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
@@ -5710,15 +5807,15 @@ CREATE TABLE `user_userdomains` (
 
 DROP TABLE IF EXISTS `user_visibility`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `user_visibility` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `online` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `search` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `email` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `homepage` text COLLATE utf8mb4_unicode_ci NOT NULL,
-  `default_homepage_visibility` int(11) NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `online` tinyint unsigned NOT NULL DEFAULT '1',
+  `search` tinyint unsigned NOT NULL DEFAULT '1',
+  `email` tinyint unsigned NOT NULL DEFAULT '1',
+  `homepage` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `default_homepage_visibility` int NOT NULL DEFAULT '0',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5729,16 +5826,16 @@ CREATE TABLE `user_visibility` (
 
 DROP TABLE IF EXISTS `user_visibility_settings`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `user_visibility_settings` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `visibilityid` int(32) NOT NULL AUTO_INCREMENT,
-  `parent_id` int(32) NOT NULL,
-  `category` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `state` int(2) DEFAULT NULL,
-  `plugin` int(11) DEFAULT NULL,
-  `identifier` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
+  `visibilityid` int NOT NULL AUTO_INCREMENT,
+  `parent_id` int NOT NULL,
+  `category` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
+  `state` int DEFAULT NULL,
+  `plugin` int DEFAULT NULL,
+  `identifier` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   PRIMARY KEY (`visibilityid`),
   KEY `parent_id` (`parent_id`),
   KEY `identifier` (`identifier`),
@@ -5752,13 +5849,13 @@ CREATE TABLE `user_visibility_settings` (
 
 DROP TABLE IF EXISTS `userdomains`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `userdomains` (
   `userdomain_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `restricted_access` tinyint(1) unsigned NOT NULL DEFAULT 1,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `restricted_access` tinyint unsigned NOT NULL DEFAULT '1',
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`userdomain_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5769,11 +5866,11 @@ CREATE TABLE `userdomains` (
 
 DROP TABLE IF EXISTS `userfilter`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `userfilter` (
   `filter_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`filter_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5784,15 +5881,15 @@ CREATE TABLE `userfilter` (
 
 DROP TABLE IF EXISTS `userfilter_fields`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `userfilter_fields` (
   `field_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `filter_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `type` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `value` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `compare_op` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
-  `mkdate` int(11) unsigned NOT NULL DEFAULT 0,
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `mkdate` int unsigned NOT NULL DEFAULT '0',
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`field_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5803,13 +5900,13 @@ CREATE TABLE `userfilter_fields` (
 
 DROP TABLE IF EXISTS `userlimits`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `userlimits` (
   `rule_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `maxnumber` int(11) DEFAULT NULL,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `maxnumber` int DEFAULT NULL,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`rule_id`,`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5820,14 +5917,14 @@ CREATE TABLE `userlimits` (
 
 DROP TABLE IF EXISTS `users_tfa`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `users_tfa` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `secret` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `confirmed` tinyint(1) unsigned NOT NULL DEFAULT 0,
+  `confirmed` tinyint unsigned NOT NULL DEFAULT '0',
   `type` enum('email','app') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'email',
-  `mkdate` int(11) unsigned NOT NULL,
-  `chdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
+  `chdate` int unsigned NOT NULL,
   PRIMARY KEY (`user_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5838,11 +5935,11 @@ CREATE TABLE `users_tfa` (
 
 DROP TABLE IF EXISTS `users_tfa_tokens`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `users_tfa_tokens` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `token` char(6) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `mkdate` int(11) unsigned NOT NULL,
+  `mkdate` int unsigned NOT NULL,
   PRIMARY KEY (`user_id`,`token`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5853,15 +5950,15 @@ CREATE TABLE `users_tfa_tokens` (
 
 DROP TABLE IF EXISTS `webservice_access_rules`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `webservice_access_rules` (
-  `api_key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `method` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
-  `ip_range` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `api_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
+  `ip_range` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
   `type` enum('allow','deny') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'allow',
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5872,11 +5969,11 @@ CREATE TABLE `webservice_access_rules` (
 
 DROP TABLE IF EXISTS `widget_default`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `widget_default` (
-  `pluginid` int(11) NOT NULL,
-  `col` tinyint(1) NOT NULL DEFAULT 0,
-  `position` tinyint(1) NOT NULL DEFAULT 0,
+  `pluginid` int NOT NULL,
+  `col` tinyint(1) NOT NULL DEFAULT '0',
+  `position` tinyint(1) NOT NULL DEFAULT '0',
   `perm` enum('user','autor','tutor','dozent','admin','root') CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT 'autor',
   PRIMARY KEY (`perm`,`pluginid`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5888,13 +5985,13 @@ CREATE TABLE `widget_default` (
 
 DROP TABLE IF EXISTS `widget_user`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `widget_user` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `pluginid` int(11) NOT NULL,
-  `position` int(11) NOT NULL DEFAULT 0,
+  `id` int NOT NULL AUTO_INCREMENT,
+  `pluginid` int NOT NULL,
+  `position` int NOT NULL DEFAULT '0',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
-  `col` tinyint(1) NOT NULL DEFAULT 0,
+  `col` tinyint(1) NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
   KEY `range_id` (`range_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
@@ -5906,16 +6003,16 @@ CREATE TABLE `widget_user` (
 
 DROP TABLE IF EXISTS `wiki`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `wiki` (
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
   `keyword` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
-  `body` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
+  `body` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
   `ancestor` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
-  `version` int(11) NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
+  `version` int NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`range_id`,`keyword`,`version`),
   KEY `user_id` (`user_id`),
   KEY `chdate` (`chdate`)
@@ -5928,7 +6025,7 @@ CREATE TABLE `wiki` (
 
 DROP TABLE IF EXISTS `wiki_links`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `wiki_links` (
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `from_keyword` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
@@ -5943,12 +6040,12 @@ CREATE TABLE `wiki_links` (
 
 DROP TABLE IF EXISTS `wiki_locks`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `wiki_locks` (
   `user_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
   `keyword` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '',
-  `chdate` int(11) unsigned NOT NULL DEFAULT 0,
+  `chdate` int unsigned NOT NULL DEFAULT '0',
   PRIMARY KEY (`range_id`,`user_id`,`keyword`),
   KEY `user_id` (`user_id`),
   KEY `chdate` (`chdate`)
@@ -5961,14 +6058,14 @@ CREATE TABLE `wiki_locks` (
 
 DROP TABLE IF EXISTS `wiki_page_config`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
+/*!50503 SET character_set_client = utf8mb4 */;
 CREATE TABLE `wiki_page_config` (
   `range_id` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
   `keyword` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
-  `read_restricted` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `edit_restricted` tinyint(1) unsigned NOT NULL DEFAULT 0,
-  `mkdate` int(11) unsigned DEFAULT NULL,
-  `chdate` int(11) unsigned DEFAULT NULL,
+  `read_restricted` tinyint unsigned NOT NULL DEFAULT '0',
+  `edit_restricted` tinyint unsigned NOT NULL DEFAULT '0',
+  `mkdate` int unsigned DEFAULT NULL,
+  `chdate` int unsigned DEFAULT NULL,
   PRIMARY KEY (`range_id`,`keyword`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -5982,4 +6079,4 @@ CREATE TABLE `wiki_page_config` (
 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
 
--- Dump completed on 2022-06-29 16:54:22
+-- Dump completed on 2022-11-21 15:24:29
diff --git a/db/studip_default_data.sql b/db/studip_default_data.sql
index 9b5bc09..de2338a 100644
--- a/db/studip_default_data.sql
+++ b/db/studip_default_data.sql
@@ -157,6 +157,7 @@ INSERT INTO `colour_values` (`colour_id`, `description`, `value`, `mkdate`, `chd
 -- Daten für Tabelle `config`
 --
 
+INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ACTION_MENU_THRESHOLD', '1', 'integer', 'global', 'global', 1669041528, 1669041528, 'Obergrenze an Einträgen, bis zu der ein Aktionsmenü als Icons dargestellt wird');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ADMIN_COURSES_SHOW_COMPLETE', '1', 'boolean', 'global', 'global', 1462287310, 1462287310, 'Definiert, ob auf der Admin-Veranstaltunggseite der Komplett-Status für Veranstaltungen aufgeführt sein soll');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ADMIN_COURSES_SIDEBAR_ACTIVE_ELEMENTS', '', 'string', 'user', '', 0, 0, 'Diese Einstellung legt fest, welche Elemente in der Seitenleiste der Veranstaltungsübersicht für Admins sichtbar sind.');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ADMISSION_PRELIM_COMMENT_ENABLE', '1', 'boolean', 'global', '', 1153814966, 1153814966, 'Schaltet ein oder aus, ob ein Nutzer im Modus \"Vorläufiger Eintrag\" eine Bemerkung hinterlegen kann');
@@ -210,7 +211,6 @@ INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `c
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('COURSE_SEM_TREE_DISPLAY', '0', 'boolean', 'global', 'global', 1416496270, 1416496270, 'Zeigt den Studienbereichsbaum als Baum an');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('COURSE_STUDENT_MAILING', '0', 'boolean', 'course', '', 1530289048, 1530289048, 'Über diese Option können Sie Studierenden das Schreiben von Nachrichten an alle anderen Teilnehmer der Veranstaltung erlauben.');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('CRONJOBS_ENABLE', '1', 'boolean', 'global', 'global', 1403258015, 1403258015, 'Schaltet die Cronjobs an');
-INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('CRONJOBS_ESCALATION', '6000', 'integer', 'global', 'global', 1403258015, 1403258015, 'Gibt an, nach wievielen Sekunden ein Cronjob als steckengeblieben angesehen wird');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('CURRENT_LOGIN_TIMESTAMP', '0', 'integer', 'user', '', 1403258015, 1403258015, 'Zeitstempel des Logins');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('DEFAULT_LANGUAGE', 'de_DE', 'string', 'global', 'global', 1510849314, 1510849314, 'Which language should we use if we can gather no information from user?');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('DEFAULT_TIMEZONE', 'Europe/Berlin', 'string', 'global', 'global', 1510849314, 1510849314, 'What timezone should be used (default: Europe/Berlin)?');
@@ -246,7 +246,7 @@ INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `c
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('FORUM_SETTINGS', '{\"neuauf\":false,\"rateallopen\":true,\"showimages\":true,\"sortthemes\":\"last\",\"themeview\":\"mixed\",\"presetview\":\"mixed\",\"shrink\":604800}', 'array', 'user', '', 1403258015, 1403258015, 'persönliche Einstellungen Forum');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('GLOBALSEARCH_ASYNC_QUERIES', '0', 'boolean', 'global', 'globalsearch', 1530289048, 1530289048, 'Sollen die Suchanfragen asynchron über mysqli gestellt werden? Andernfalls wird PDO verwendet.');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('GLOBALSEARCH_MAX_RESULT_OF_TYPE', '5', 'integer', 'global', 'globalsearch', 1530289048, 1530289048, 'Wie viele Ergebnisse sollen in der globalen Schnellsuche pro Kategorie angezeigt werden?');
-INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('GLOBALSEARCH_MODULES', '{\"GlobalSearchBuzzwords\":{\"order\":1,\"active\":true,\"fulltext\":false},\"GlobalSearchMyCourses\":{\"order\":2,\"active\":true,\"fulltext\":false},\"GlobalSearchCourses\":{\"order\":3,\"active\":true,\"fulltext\":false},\"GlobalSearchUsers\":{\"order\":4,\"active\":true,\"fulltext\":false},\"GlobalSearchInstitutes\":{\"order\":5,\"active\":true,\"fulltext\":false},\"GlobalSearchFiles\":{\"order\":6,\"active\":true,\"fulltext\":false},\"GlobalSearchCalendar\":{\"order\":7,\"active\":true,\"fulltext\":false},\"GlobalSearchMessages\":{\"order\":8,\"active\":true,\"fulltext\":false},\"GlobalSearchForum\":{\"order\":9,\"active\":true,\"fulltext\":false},\"GlobalSearchResources\":{\"order\":10,\"active\":true,\"fulltext\":false},\"GlobalSearchRoomAssignments\":{\"order\":11,\"active\":true,\"fulltext\":false},\"GlobalSearchModules\":{\"order\":12,\"active\":true,\"fulltext\":false},\"GlobalSearchBlubber\":{\"order\":13,\"active\":true,\"fulltext\":true}}', 'array', 'global', 'globalsearch', 1530289048, 1530289048, 'Aktivierung und Reihenfolge der Module in der globalen Suche');
+INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('GLOBALSEARCH_MODULES', '{\"GlobalSearchBuzzwords\":{\"order\":1,\"active\":true,\"fulltext\":false},\"GlobalSearchMyCourses\":{\"order\":2,\"active\":true,\"fulltext\":false},\"GlobalSearchCourses\":{\"order\":3,\"active\":true,\"fulltext\":false},\"GlobalSearchUsers\":{\"order\":4,\"active\":true,\"fulltext\":false},\"GlobalSearchInstitutes\":{\"order\":5,\"active\":true,\"fulltext\":false},\"GlobalSearchFiles\":{\"order\":6,\"active\":true,\"fulltext\":false},\"GlobalSearchCalendar\":{\"order\":7,\"active\":true,\"fulltext\":false},\"GlobalSearchMessages\":{\"order\":8,\"active\":true,\"fulltext\":false},\"GlobalSearchForum\":{\"order\":9,\"active\":true,\"fulltext\":false},\"GlobalSearchResources\":{\"order\":10,\"active\":true,\"fulltext\":false},\"GlobalSearchRoomAssignments\":{\"order\":11,\"active\":true,\"fulltext\":false},\"GlobalSearchModules\":{\"order\":12,\"active\":true,\"fulltext\":false},\"GlobalSearchBlubber\":{\"order\":13,\"active\":true,\"fulltext\":true},\"GlobalSearchCourseware\":{\"order\":14,\"active\":true,\"fulltext\":true}}', 'array', 'global', 'globalsearch', 1530289048, 1530289048, 'Aktivierung und Reihenfolge der Module in der globalen Suche');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('HIDE_STUDYGROUPS_FROM_PROFILE', '0', 'boolean', 'global', 'studygroups', 1640797277, 1640797277, 'Sollen Studiengruppen bei der Anzeige der Veranstaltungen auf dem Profil versteckt werden?');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('HOMEPAGEPLUGIN_DEFAULT_ACTIVATION', '0', 'boolean', 'global', 'privacy', 1403258014, 1403258014, 'Sollen neu installierte Homepageplugins automatisch für Benutzer aktiviert sein?');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('HOMEPAGE_VISIBILITY_DEFAULT', 'VISIBILITY_STUDIP', 'string', 'global', 'privacy', 1293118059, 1293118059, 'Standardsichtbarkeit für Homepageelemente, falls der Benutzer nichts anderes eingestellt hat. Gültige Werte sind: VISIBILITY_ME, VISIBILITY_BUDDIES, VISIBILITY_DOMAIN, VISIBILITY_STUDIP, VISIBILITY_EXTERN');
@@ -293,7 +293,7 @@ INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `c
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('MY_COURSES_SHOW_NEW_ICONS_ONLY', '0', 'boolean', 'user', 'MeineVeranstaltungen', 1640797277, 1640797277, 'Nur Icons für neue Inhalte sollen angezeigt werden');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('MY_COURSES_TILED_DISPLAY', '0', 'boolean', 'user', 'MeineVeranstaltungen', 1640797277, 1640797277, 'Hat die Kachelansicht unter \"Meine Veranstaltungen\" aktiviert');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('MY_COURSES_TILED_DISPLAY_RESPONSIVE', '1', 'boolean', 'user', 'MeineVeranstaltungen', 1640797277, 1640797277, 'Hat die Kachelansicht unter \"Meine Veranstaltungen\" aktiviert (responsiv)');
-INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('MY_INSTITUTES_DEFAULT', '', 'string', 'user', '', 1403258015, 1403258015, 'Standard Einrichtung in der Veranstaltungsübersicht für Admins');
+INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('MY_INSTITUTES_DEFAULT', 'all', 'string', 'user', '', 1403258015, 1403258015, 'Standard Einrichtung in der Veranstaltungsübersicht für Admins');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('MY_INSTITUTES_INCLUDE_CHILDREN', '1', 'boolean', 'user', '', 1530289048, 1530289048, 'Sollen untergeordnete Institute mit angezeigt werden in der Veranstaltungsübersicht für Admins?');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('NEWS_DISABLE_GARBAGE_COLLECT', '1', 'boolean', 'global', '', 1123751948, 1123751948, 'Schaltet den Garbage-Collect für News ein oder aus');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('NEWS_DISPLAY', '2', 'integer', 'global', 'view', 1462287310, 1462287310, 'Legt fest, wie sich News für Anwender präsentieren. (2 zeigt sowohl Autor als auch Zugriffszahlen an. 1 zeigt nur den Autor an. 0 blendet beides für Benutzer aus.');
@@ -306,6 +306,8 @@ INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `c
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('OERCAMPUS_TWILLO_APPID', '', 'string', 'global', 'OERCampus', 1656513810, 1656513810, 'Welche ID hat dieses Stud.IP, wenn es mit twillo.de kommuniziert?');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('OERCAMPUS_TWILLO_DFNAAIID_DATAFIELD', '', 'string', 'global', 'OERCampus', 1656513810, 1656513810, 'Welches Datenfeld eines Nutzers trägt dessen DFN-AAI-ID?');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('OER_DISABLE_LICENSE', '0', 'boolean', 'global', 'OERCampus', 1640797278, 1640797278, 'Sollen die Lizenzen deaktiviert / nicht angezeigt werden?');
+INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('OER_ENABLE_SUGGESTIONS', '1', 'boolean', 'global', 'OERCampus', 1669041528, 1669041528, 'Studierendenvorschläge erlauben?');
+INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('OER_OERSI_ONLY_DOWNLOADABLE', '1', 'boolean', 'global', 'OERCampus', 1669041528, 1669041528, 'Should the search in OERSI only find downloadable OERs?');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('OER_PUBLIC_STATUS', 'autor', 'string', 'global', 'OERCampus', 1640797278, 1640797278, 'Ab welchem Nutzerstatus (nobody, user, autor, tutor, dozent) darf man den Marktplatz sehen?');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('OER_TITLE', 'OER Campus', 'string', 'global', 'OERCampus', 1640797278, 1640797278, 'Name des OER Campus in Stud.IP');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ONLINE_NAME_FORMAT', 'full_rev', 'string', 'user', '', 1153814980, 1153814980, 'Default-Wert für wer-ist-online Namensformatierung');
@@ -383,6 +385,7 @@ INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `c
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('TOURS_ENABLE', '1', 'boolean', 'global', 'global', 1416496223, 1416496223, 'Aktiviert die Funktionen zum Anbieten von Touren in Stud.IP');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('UNI_NAME_CLEAN', 'Stud.IP', 'string', 'global', 'global', 1510849314, 1510849314, 'Name der Stud.IP-Installation bzw. Hochschule.');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('USERNAME_REGULAR_EXPRESSION', '/^([a-zA-Z0-9_@.-]{4,})$/', 'string', 'global', 'global', 1510849314, 1510849314, 'Regex for allowed characters in usernames');
+INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('USER_HIGH_CONTRAST', '0', 'boolean', 'user', 'accessibility', 1669041528, 1669041528, 'Schaltet ein barrierefreies Stylesheet mit hohem Kontrast ein oder aus.');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('USER_VISIBILITY_CHECK', '1', 'boolean', 'global', 'global', 1510849314, 1510849314, 'Enable presentation of visibility decision texts for users after first login. see lib/include/header.php and lib/user_visible.inc.php for further info');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('USER_VISIBILITY_UNKNOWN', '1', 'boolean', 'global', 'privacy', 1153815901, 1153815901, 'Sollen Nutzer mit Sichtbarkeit \"unknown\" wie sichtbare behandelt werden?');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('VOTE_ENABLE', '1', 'boolean', 'global', 'modules', 1293118059, 1293118059, 'Schaltet ein oder aus, ob die Umfragen global verfügbar sind.');
@@ -398,6 +401,7 @@ INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `c
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ZIP_UPLOAD_MAX_DIRS', '10', 'integer', 'global', 'files', 1130840962, 1130840962, 'Die maximale Anzahl an Verzeichnissen, die bei einem Zipupload automatisch entpackt werden');
 INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ZIP_UPLOAD_MAX_FILES', '100', 'integer', 'global', 'files', 1130840930, 1130840930, 'Die maximale Anzahl an Dateien, die bei einem Zipupload automatisch entpackt werden');
 
+
 --
 -- Daten für Tabelle `content_terms_of_use_entries`
 --
@@ -520,7 +524,7 @@ INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `cont
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('14b77e9e0b7773c92db9e7344a23fcfc', '14b77e9e0b7773c92db9e7344a23fcfc', 'de', 'Mit der Personensuche können NutzerInnen gefunden werden, solange deren Privatsphäre-Einstellung dies nicht verhindert. Die Suche kann auf bestimmte Veranstaltungen oder Einrichtungen begrenzt werden.', 'browse.php', '3.1', 0, 0, 1, '', '', 1406641688, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('164f77ab2cb7d38fd1ea20ed725834fd', '164f77ab2cb7d38fd1ea20ed725834fd', 'de', 'Hier findet sich eine Übersicht über die Termine, die von Studierenden gebucht wurden.', 'plugins.php/homepageterminvergabeplugin/show_bookings', '3.1', 0, 0, 1, '', '', 1406641688, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('1804e526c2f6794b877a4b2096eaa67a', '1804e526c2f6794b877a4b2096eaa67a', 'en', 'Blubber is a mixed version of forum and chat where participants\' posts are displayed in real time. Others can be informed about a post by mentioning them in the post by @username or @\'first name last name\'.', 'plugins.php/blubber/streams/forum', '4.4', 0, 0, 1, '', '', 1412942388, 0);
-INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('194874212676ced8d45e1883da1ad456', '194874212676ced8d45e1883da1ad456', 'de', 'Das Forum ist eine textbasierte, zeit- und ortsunabhängige Möglichkeit zum Austausch von Fragen, Meinungen und Erfahrungen. Beiträge können abonniert, exportiert, als Favoriten gekennzeichnet und editiert werden. Über die Navigation links können unterschieldiche Ansichten (z.B. Neue Beiträge seit letztem LogIn) gewählt werden.', 'plugins.php/coreforum', '3.1', 0, 0, 1, '', '', 1406641688, 0);
+INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('194874212676ced8d45e1883da1ad456', '194874212676ced8d45e1883da1ad456', 'de', 'Das Forum ist eine textbasierte, zeit- und ortsunabhängige Möglichkeit zum Austausch von Fragen, Meinungen und Erfahrungen. Beiträge können abonniert, exportiert, als Favoriten gekennzeichnet und editiert werden. Über die Navigation links können unterschieldiche Ansichten (z.B. Neue Beiträge seit letztem LogIn) gewählt werden.', 'dispatch.php/course/forum', '3.1', 0, 0, 1, '', '', 1406641688, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('19c2bc232075602bd39efd4b6623d576', '19c2bc232075602bd39efd4b6623d576', 'de', 'Mit der Studienbereiche-Funktion kann die Veranstaltung einem Studienbereich zugeordnet werden. Die Bearbeitung kann gesperrt sein, wenn Daten aus anderen Systemen (z.B. LSF/ UniVZ) übernommen werden.', 'dispatch.php/course/study_areas/show', '3.1', 0, 0, 1, '', '', 1406641688, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('19d47b782ac5c8b8b21bd1f94858a0fa', '19d47b782ac5c8b8b21bd1f94858a0fa', 'de', 'Mit Zugangsberechtigungen (Anmeldeverfahren) lässt sich z.B. durch Passwörter, Zeitsteuerung und TeilnehmerInnenbeschränkung der Zugang zu einer Veranstaltung regulieren.', 'dispatch.php/course/admission', '3.1', 0, 0, 1, '', '', 1406641688, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('1c61657979ce22a9af023248a617f6b2', '1c61657979ce22a9af023248a617f6b2', 'de', 'Die Startseite wird nach dem Einloggen angezeigt und kann an persönliche Bedürfnisse mit Hilfe von Widgets angepasst werden.', 'dispatch.php/start', '3.1', 0, 0, 1, '', '', 1406641688, 0);
@@ -595,7 +599,7 @@ INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `cont
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('7ebdd278d06f9fc1d2659a54bb3171c1', '7ebdd278d06f9fc1d2659a54bb3171c1', 'de', 'Die Rangliste sortiert die Stud.IP-Nutzenden absteigend anhand ihrer Punktzahl. Die Punktzahl wächst mit den Aktivitäten in Stud.IP und repräsentiert so die Erfahrung der Nutzenden mit dem System. Indem das Kästchen links mit einem Haken versehen wird, wird der eigene Wert für andere NutzerInnen in der Rangliste sichtbar gemacht. In der Grundeinstellung ist der eigene Wert nicht öffentlich sichtbar.', 'dispatch.php/score', '3.1', 0, 0, 1, '', '', 1406641688, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('7edc08f2f7b0786ca036f8c448441e07', '7edc08f2f7b0786ca036f8c448441e07', 'en', 'The Wiki enables a common, asynchronous creation and editing of texts. Texts can be formatted and linked so that a branched reference guide is created.', 'wiki.php', '4.4', 0, 0, 1, '', '', 1412942388, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('7f4a1f5e3dfe2a459cf0eb357667d91c', '7f4a1f5e3dfe2a459cf0eb357667d91c', 'de', 'Mit den Verwaltungsfunktionen lassen sich die Eigenschaften der Veranstaltung nachträglich ändern. Unter Aktionen ist die Simulation der Studierendenansicht möglich.', 'dispatch.php/course/management', '3.1', 0, 0, 1, '', '', 1406641688, 0);
-INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('80286432bf17df20e5f11f86b421b0a7', '80286432bf17df20e5f11f86b421b0a7', 'en', 'The forum is a text-based, time- and location-independent platform for the exchange of questions, opinions and experiences. Contributions can be subscribed to, exported, marked as favourites and edited. The navigation on the left allows you to select different views (e.g. New posts since last login).', 'plugins.php/coreforum', '4.4', 0, 0, 1, '', '', 1412942388, 0);
+INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('80286432bf17df20e5f11f86b421b0a7', '80286432bf17df20e5f11f86b421b0a7', 'en', 'The forum is a text-based, time- and location-independent platform for the exchange of questions, opinions and experiences. Contributions can be subscribed to, exported, marked as favourites and edited. The navigation on the left allows you to select different views (e.g. New posts since last login).', 'dispatch.php/course/forum', '4.4', 0, 0, 1, '', '', 1412942388, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('82537b14dd3714ec9636124ed5af3272', '82537b14dd3714ec9636124ed5af3272', 'de', 'Die Profilseite ermöglicht die Änderung der eigenen persönliche Angaben inkl. Profilbild und Kategorien. Ähnlich wie in Facebook können Kommentare hinterlassen werden. Das Profil von Lehrenden enthält Sprechstunden und Raumangaben. Daneben bietet die Seite die Verwaltung eigener Dateien.', 'dispatch.php/profile', '3.1', 0, 0, 1, '', '', 1406641688, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('82a17a5f19d211268b1fa90a1ebe0894', '82a17a5f19d211268b1fa90a1ebe0894', 'de', 'Hier kann eine neue Studiengruppe angelegt werden. Jede/r Stud.IP-NutzerIn kann Studiengruppen anlegen und nach eigenen Bedürfnissen konfigurieren.', 'dispatch.php/course/studygroup/new', '3.1', 0, 0, 1, '', '', 1406641688, 0);
 INSERT INTO `help_content` (`global_content_id`, `content_id`, `language`, `content`, `route`, `studip_version`, `position`, `custom`, `visible`, `author_email`, `installation_id`, `mkdate`, `chdate`) VALUES('83fd70727605c485a0d8f2c5ef94289b', '83fd70727605c485a0d8f2c5ef94289b', 'en', 'Here you can enter predefined information about yourself, that should appear on your profile page.', 'dispatch.php/settings/details', '4.4', 0, 0, 1, '', '', 1412942388, 0);
@@ -788,13 +792,13 @@ INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`,
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('1badcf28ab5b206d9150b2b9683b4cb6', 7, 'Access to an event of past and future semesters', 'For example, by clicking on the drop-down menu, courses from past semesters can be displayed.', 'R', 0, '#layout-sidebar SECTION:eq(0)  DIV:eq(5)  DIV:eq(1)', 'dispatch.php/my_courses', '', '', '', 1406126316, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('1badcf28ab5b206d9150b2b9683b4cb6', 8, 'Further possible actions', 'Here you can mark all news as read, change colour groups as you please, and also adjust the notifications about activities in the individual courses.', 'R', 0, '#layout-sidebar SECTION:eq(0)  DIV:eq(8)  DIV:eq(0)', 'dispatch.php/my_courses', '', '', '', 1406126374, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('1badcf28ab5b206d9150b2b9683b4cb6', 9, 'Study groups and facilities', 'There is moreover the possibility to access personal study groups or facilities.', 'R', 0, '#nav_browse_my_institutes A', 'dispatch.php/my_courses', '', '', '', 1406126415, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 1, 'Forum', 'Diese Tour gibt einen Überblick über die Elemente und Interaktionsmöglichkeiten des Forums.\r\n\r\nUm zum nächsten Schritt zu gelangen, klicken Sie bitte rechts unten auf \"Weiter\".', 'BL', 0, '', 'plugins.php/coreforum', '', '', '', 1405415772, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 2, 'Sie befinden sich hier:...', 'An dieser Stelle wird angezeigt, welcher Bereich des Forums gerade betrachtet wird.', 'BL', 0, 'DIV#tutorBreadcrumb', 'plugins.php/coreforum', '', '', '', 1405415875, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 3, 'Kategorie', 'Das Forum ist unterteilt in Kategorien, Themen und Beiträge. Eine Kategorie fasst Forumsbereiche in größere Sinneinheiten zusammen.', 'BL', 0, '#tutorCategory', 'plugins.php/coreforum', '', '', '', 1405416611, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 4, 'Bereich', 'Das ist ein Bereich innerhalb einer Kategorie. Bereiche beinhalten die Diskussionstränge. Bereiche können mit per drag & drop in ihrer Reihenfolge verschoben werden.', 'BL', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(1)  DIV:eq(0)  SPAN:eq(0)  A:eq(0)  SPAN:eq(0)', 'plugins.php/coreforum', '', '', '', 1405416664, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 5, 'Info-Icon', 'Dieses Icon färbt sich rot, sobald es etwas neues in diesem Bereich gibt.', 'B', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(0)  A:eq(0)  IMG:eq(0)', 'plugins.php/coreforum', '', '', '', 1405416705, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 6, 'Suchen', 'Hier können sämtliche Inhalte dieses Forums durchsucht werden.\r\nUnterstützt werden auch Mehrwortsuchen. Außerdem kann die Suche auf eine beliebige Kombination aus Titel, Inhalt und Autor eingeschränkt werden.', 'BL', 0, '#tutorSearchInfobox DIV:eq(0)', 'plugins.php/coreforum', '', '', '', 1405417134, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 7, 'Forum abonnieren', 'Das gesamte Forum, oder einzelne Themen können abonniert werden. Dann wird bei jedem neuen Beitrag in diesem Forum eine Benachrichtigung angezeigt und eine Nachricht versendet.', 'RT', 0, '#layout-sidebar SECTION:eq(0)  DIV:eq(9)  DIV:eq(0)', 'plugins.php/coreforum', '', '', 'dozent@studip.de', 1405416795, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 1, 'Forum', 'Diese Tour gibt einen Überblick über die Elemente und Interaktionsmöglichkeiten des Forums.\r\n\r\nUm zum nächsten Schritt zu gelangen, klicken Sie bitte rechts unten auf \"Weiter\".', 'BL', 0, '', 'dispatch.php/course/forum', '', '', '', 1405415772, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 2, 'Sie befinden sich hier:...', 'An dieser Stelle wird angezeigt, welcher Bereich des Forums gerade betrachtet wird.', 'BL', 0, 'DIV#tutorBreadcrumb', 'dispatch.php/course/forum', '', '', '', 1405415875, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 3, 'Kategorie', 'Das Forum ist unterteilt in Kategorien, Themen und Beiträge. Eine Kategorie fasst Forumsbereiche in größere Sinneinheiten zusammen.', 'BL', 0, '#tutorCategory', 'dispatch.php/course/forum', '', '', '', 1405416611, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 4, 'Bereich', 'Das ist ein Bereich innerhalb einer Kategorie. Bereiche beinhalten die Diskussionstränge. Bereiche können mit per drag & drop in ihrer Reihenfolge verschoben werden.', 'BL', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(1)  DIV:eq(0)  SPAN:eq(0)  A:eq(0)  SPAN:eq(0)', 'dispatch.php/course/forum', '', '', '', 1405416664, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 5, 'Info-Icon', 'Dieses Icon färbt sich rot, sobald es etwas neues in diesem Bereich gibt.', 'B', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(0)  A:eq(0)  IMG:eq(0)', 'dispatch.php/course/forum', '', '', '', 1405416705, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 6, 'Suchen', 'Hier können sämtliche Inhalte dieses Forums durchsucht werden.\r\nUnterstützt werden auch Mehrwortsuchen. Außerdem kann die Suche auf eine beliebige Kombination aus Titel, Inhalt und Autor eingeschränkt werden.', 'BL', 0, '#tutorSearchInfobox DIV:eq(0)', 'dispatch.php/course/forum', '', '', '', 1405417134, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('21f487fa74e3bfc7789886f40fe4131a', 7, 'Forum abonnieren', 'Das gesamte Forum, oder einzelne Themen können abonniert werden. Dann wird bei jedem neuen Beitrag in diesem Forum eine Benachrichtigung angezeigt und eine Nachricht versendet.', 'RT', 0, '#layout-sidebar SECTION:eq(0)  DIV:eq(9)  DIV:eq(0)', 'dispatch.php/course/forum', '', '', 'dozent@studip.de', 1405416795, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3629493a16bf2680de64361f07cab096', 1, 'Was ist Blubbern?', 'Diese Tour gibt Ihnen einen Überblick über die wichtigsten Funktionen von \"Blubber\".\r\n\r\nUm auf den nächsten Schritt zu kommen, klicken Sie bitte rechts unten auf \"Weiter\".', 'TL', 0, '', 'plugins.php/blubber/streams/forum', '', '', '', 1405507364, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3629493a16bf2680de64361f07cab096', 2, 'Beitrag erstellen', 'Hier kann eine Diskussion durch Schreiben von Text begonnen werden. Absätze lassen sich durch Drücken von Umschalt+Eingabe erzeugen. Der Text wird durch Drücken von Eingabe abgeschickt.', 'BL', 0, 'TEXTAREA#new_posting.autoresize', 'plugins.php/blubber/streams/forum', '', '', '', 1405507478, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3629493a16bf2680de64361f07cab096', 3, 'Text gestalten', 'Der Text kann formatiert und mit Smileys versehen werden.\r\nEs können die üblichen Formatierungen verwendet werden, wie z. B. **fett** oder %%kursiv%%.', 'BL', 0, 'TEXTAREA#new_posting.autoresize', 'plugins.php/blubber/streams/forum', '', '', '', 1405508371, 0);
@@ -813,18 +817,18 @@ INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`,
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3a717a468afb0822cb1455e0ae6b6fce', 7, 'Schlagwortwolke', 'Durch Anklicken eines Schlagwortes werden alle Beiträge aufgelistet, die dieses Schlagwort enthalten.', 'RT', 0, 'DIV.sidebar-widget-header', 'plugins.php/blubber/streams/profile', '', '', '', 1405508505, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3a717a468afb0822cb1455e0ae6b6fce', 8, 'Beitrag ändern', 'Wird der Mauszeiger auf einem beliebigen Beitrag positioniert, erscheint dessen Datum. Bei eigenen Beiträgen erscheint außerdem rechts neben dem Datum ein Icon, mit dem der Beitrag nachträglich geändert werden kann.', 'BR', 0, 'DIV DIV A SPAN.time', 'plugins.php/blubber/streams/profile', '', '', '', 1405507901, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3a717a468afb0822cb1455e0ae6b6fce', 9, 'Beitrag verlinken', 'Wird der Mauszeiger auf dem ersten Diskussionsbeitrag positioniert, erscheint links neben dem Datum ein Link-Icon. Wenn dieses mit der rechten Maustaste angeklickt wird, kann der Link auf diesen Beitrag kopiert werden, um ihn an anderer Stelle einfügen zu können.', 'BR', 0, 'DIV DIV A.permalink', 'plugins.php/blubber/streams/profile', '', '', '', 1405508281, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 1, 'Administering the forum', 'This tour provides an overview of the forum\'s administration.\r\n\rTo proceed, please click \"Continue\" in the lower-right corner.', 'TL', 0, '', 'plugins.php/coreforum', '', '', '', 1405418008, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 2, 'Edit category', 'The name of the category can be changed or, however, the whole category deleted with these icons. The sectors will in this case be shifted into the category \"General\" and are thus retained.\n\nThe category \"General\" cannot be deleted and is therefore included in each forum.', 'L', 0, '#forum #sortable_areas TABLE CAPTION #tutorCategoryIcons', 'plugins.php/coreforum', '', '', 'dozent@studip.de', 1405424216, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 3, 'Edit area', 'Action icons will appear, if the cursor is positioned on an area\n\nYou can use the icons to change the name and description of an area, or to delete the whole area.\nThe deletion of an area causes all contained topics to be deleted.', 'L', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(4)', 'plugins.php/coreforum', '', '', 'dozent@studip.de', 1405424346, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 4, 'Sort area', 'With this hatched surface areas can be sorted in at any place by clicking and dragging. This can, on one hand, be used in order to sort areas within a category, and on the other hand, areas can be shifted into other categories.', 'R', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(0)  IMG:eq(0)', 'plugins.php/coreforum', '', '', 'dozent@studip.de', 1405424379, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 5, 'Add new area', 'New areas can be added to a category here.', 'BR', 0, 'TFOOT TR TD A SPAN', 'plugins.php/coreforum', '', '', '', 1405424421, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 6, 'Create new category', 'A new category in the forum can be created here. Enter the title of the new category for this purpose.', 'TL', 0, '#tutorAddCategory FIELDSET:eq(0)  LEGEND:eq(0)', 'plugins.php/coreforum', '', '', '', 1405424458, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 1, 'Forum verwalten', 'Sie haben die Möglichkeit sich eine Tour zur Verwaltung des Forums anzuschauen.\r\n\r\nUm die Tour zu beginnen, klicken Sie bitte unten rechts auf \"Weiter\".', 'TL', 0, '', 'plugins.php/coreforum', '', '', '', 1405418008, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 2, 'Kategorie bearbeiten', 'Mit diesen Icons kann der Name der Kategorie geändert oder aber die gesamte Kategorie gelöscht werden. Die Bereiche werden in diesem Fall in die Kategorie \"Allgemein\" verschoben und bleiben somit erhalten.\r\n\r\nDie Kategorie \"Allgemein\" kann nicht gelöscht werden und ist daher in jedem Forum enthalten.', 'L', 0, '#forum #sortable_areas TABLE CAPTION #tutorCategoryIcons', 'plugins.php/coreforum', '', '', 'dozent@studip.de', 1405424216, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 3, 'Bereich bearbeiten', 'Wird der Mauszeiger auf einem Bereich positioniert, erscheinen Aktions-Icons.\r\nMit diesen Icons kann der Name und die Beschreibung eines Bereiches geändert oder auch der gesamte Bereich gelöscht werden.\r\nDas Löschen eines Bereichs, führt dazu, dass alle enthaltenen Themen gelöscht werden.', 'L', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(4)', 'plugins.php/coreforum', '', '', 'dozent@studip.de', 1405424346, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 4, 'Bereiche sortieren', 'Mit dieser schraffierten Fläche können Bereiche an einer beliebigen Stelle durch Klicken-und-Ziehen einsortiert werden. Dies kann einerseits dazu verwendet werden, um Bereiche innerhalb einer Kategorie zu sortieren, andererseits können Bereiche in andere Kategorien verschoben werden.', 'R', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(0)  IMG:eq(0)', 'plugins.php/coreforum', '', '', 'dozent@studip.de', 1405424379, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 5, 'Neuen Bereich hinzufügen', 'Hier können neue Bereiche zu einer Kategorie hinzugefügt werden.', 'BR', 0, 'TFOOT TR TD A SPAN', 'plugins.php/coreforum', '', '', '', 1405424421, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 6, 'Neue Kategorie erstellen', 'Hier kann eine neue Kategorie im Forum erstellt werden. Geben Sie hierfür den Titel der neuen Kategorie ein.', 'TL', 0, '#tutorAddCategory FIELDSET:eq(0)  LEGEND:eq(0)', 'plugins.php/coreforum', '', '', '', 1405424458, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 1, 'Administering the forum', 'This tour provides an overview of the forum\'s administration.\r\n\rTo proceed, please click \"Continue\" in the lower-right corner.', 'TL', 0, '', 'dispatch.php/course/forum', '', '', '', 1405418008, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 2, 'Edit category', 'The name of the category can be changed or, however, the whole category deleted with these icons. The sectors will in this case be shifted into the category \"General\" and are thus retained.\n\nThe category \"General\" cannot be deleted and is therefore included in each forum.', 'L', 0, '#forum #sortable_areas TABLE CAPTION #tutorCategoryIcons', 'dispatch.php/course/forum', '', '', 'dozent@studip.de', 1405424216, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 3, 'Edit area', 'Action icons will appear, if the cursor is positioned on an area\n\nYou can use the icons to change the name and description of an area, or to delete the whole area.\nThe deletion of an area causes all contained topics to be deleted.', 'L', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(4)', 'dispatch.php/course/forum', '', '', 'dozent@studip.de', 1405424346, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 4, 'Sort area', 'With this hatched surface areas can be sorted in at any place by clicking and dragging. This can, on one hand, be used in order to sort areas within a category, and on the other hand, areas can be shifted into other categories.', 'R', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(0)  IMG:eq(0)', 'dispatch.php/course/forum', '', '', 'dozent@studip.de', 1405424379, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 5, 'Add new area', 'New areas can be added to a category here.', 'BR', 0, 'TFOOT TR TD A SPAN', 'dispatch.php/course/forum', '', '', '', 1405424421, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('3dbe7099f82dcdbba4580acb1105a0d6', 6, 'Create new category', 'A new category in the forum can be created here. Enter the title of the new category for this purpose.', 'TL', 0, '#tutorAddCategory FIELDSET:eq(0)  LEGEND:eq(0)', 'dispatch.php/course/forum', '', '', '', 1405424458, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 1, 'Forum verwalten', 'Sie haben die Möglichkeit sich eine Tour zur Verwaltung des Forums anzuschauen.\r\n\r\nUm die Tour zu beginnen, klicken Sie bitte unten rechts auf \"Weiter\".', 'TL', 0, '', 'dispatch.php/course/forum', '', '', '', 1405418008, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 2, 'Kategorie bearbeiten', 'Mit diesen Icons kann der Name der Kategorie geändert oder aber die gesamte Kategorie gelöscht werden. Die Bereiche werden in diesem Fall in die Kategorie \"Allgemein\" verschoben und bleiben somit erhalten.\r\n\r\nDie Kategorie \"Allgemein\" kann nicht gelöscht werden und ist daher in jedem Forum enthalten.', 'L', 0, '#forum #sortable_areas TABLE CAPTION #tutorCategoryIcons', 'dispatch.php/course/forum', '', '', 'dozent@studip.de', 1405424216, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 3, 'Bereich bearbeiten', 'Wird der Mauszeiger auf einem Bereich positioniert, erscheinen Aktions-Icons.\r\nMit diesen Icons kann der Name und die Beschreibung eines Bereiches geändert oder auch der gesamte Bereich gelöscht werden.\r\nDas Löschen eines Bereichs, führt dazu, dass alle enthaltenen Themen gelöscht werden.', 'L', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(4)', 'dispatch.php/course/forum', '', '', 'dozent@studip.de', 1405424346, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 4, 'Bereiche sortieren', 'Mit dieser schraffierten Fläche können Bereiche an einer beliebigen Stelle durch Klicken-und-Ziehen einsortiert werden. Dies kann einerseits dazu verwendet werden, um Bereiche innerhalb einer Kategorie zu sortieren, andererseits können Bereiche in andere Kategorien verschoben werden.', 'R', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(0)  IMG:eq(0)', 'dispatch.php/course/forum', '', '', 'dozent@studip.de', 1405424379, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 5, 'Neuen Bereich hinzufügen', 'Hier können neue Bereiche zu einer Kategorie hinzugefügt werden.', 'BR', 0, 'TFOOT TR TD A SPAN', 'dispatch.php/course/forum', '', '', '', 1405424421, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('44f859c50648d3410c39207048ddd833', 6, 'Neue Kategorie erstellen', 'Hier kann eine neue Kategorie im Forum erstellt werden. Geben Sie hierfür den Titel der neuen Kategorie ein.', 'TL', 0, '#tutorAddCategory FIELDSET:eq(0)  LEGEND:eq(0)', 'dispatch.php/course/forum', '', '', '', 1405424458, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('49604a77654617a745e29ad6b253e491', 1, 'Funktionen und Gestaltungsmöglichkeiten der Startseite', 'Diese Tour gibt Ihnen einen Überblick über die wichtigsten Funktionen der \"Startseite\".\r\n\r\nUm auf den nächsten Schritt zu kommen, klicken Sie bitte rechts unten auf \"Weiter\".', 'B', 0, '', 'dispatch.php/start', '', '', 'root@localhost', 1405934926, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('49604a77654617a745e29ad6b253e491', 2, 'Individuelle Gestaltung der Startseite', 'Die Startseite ist standardmäßig so konfiguriert, dass die Elemente \"Schnellzugriff\", \"Ankündigungen\", \"Meine aktuellen Termine\" und  \"Umfragen\" angezeigt werden. Die Elemente werden Widgets genannt und  können entfernt, hinzugefügt und verschoben werde.n Jedes Widget kann individuell hinzugefügt, entfernt und verschoben werden.', 'TL', 0, '', 'dispatch.php/start', '', '', '', 1405934970, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('49604a77654617a745e29ad6b253e491', 3, 'Widget hinzufügen', 'Hier können Widgets hinzugefügt werden. Zusätzlich zu den Standard-Widgets kann beispielsweise der persönliche Stundenplan auf der Startseite anzeigt werden. Neu hinzugefügte Widgets erscheinen ganz unten auf der Startseite. Darüber hinaus kann in der Sidebar direkt zu jedem Widget gesprungen werden.', 'R', 0, '#layout-sidebar SECTION:eq(0)  DIV:eq(5)  DIV:eq(0)', 'dispatch.php/start', '', '', '', 1405935192, 0);
@@ -924,13 +928,13 @@ INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`,
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('83dc1d25e924f2748ee3293aaf0ede8e', 7, 'Hashtag cloud', 'By clicking on a hashtag, all posts containing this hashtag will be displayed.', 'RT', 0, 'DIV.sidebar-widget-header', 'plugins.php/blubber/streams/forum', '', '', '', 1405508505, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('83dc1d25e924f2748ee3293aaf0ede8e', 8, 'Change contribution', 'If the cursor is positioned on a post, its date will appear. For your own posts an additional icon will appear on the right next to the date. This icon allow you to subsequently edit your post.', 'BR', 0, 'DIV DIV A SPAN.time', 'plugins.php/blubber/streams/forum', '', '', '', 1405507901, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('83dc1d25e924f2748ee3293aaf0ede8e', 9, 'Link contribution', 'If the cursor is positioned on the first contribution to the discussion a link icon will appear on the left next to the date. If this is clicked using the right mouse button the link can be copied on this contribution in order to be able to insert it in another place.', 'BR', 0, 'DIV DIV A.permalink', 'plugins.php/blubber/streams/forum', '', '', '', 1405508281, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 1, 'Forum', 'This tour provides an overview of the forum\'s elements and options of interaction.\r\n\rTo proceed, please click \"Continue\" in the lower-right corner.', 'BL', 0, '', 'plugins.php/coreforum', '', '', '', 1405415772, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 2, 'You are here:...', 'Here you can see which sector of the forum you are currently looking at.', 'BL', 0, 'DIV#tutorBreadcrumb', 'plugins.php/coreforum', '', '', '', 1405415875, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 3, 'Category', 'The forum is divided into categories, topics and posts. A category summarises forum areas into larger units of meaning.', 'BL', 0, '#tutorCategory', 'plugins.php/coreforum', '', '', '', 1405416611, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 4, 'Area', 'This is an area within a category. Areas contain threads. The order of areas can be altered using drag&drop', 'BL', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(1)  DIV:eq(0)  SPAN:eq(0)  A:eq(0)  SPAN:eq(0)', 'plugins.php/coreforum', '', '', '', 1405416664, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 5, 'Info-Icon', 'This icon turns red as soon as there is something new in this sector.', 'B', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(0)  A:eq(0)  IMG:eq(0)', 'plugins.php/coreforum', '', '', '', 1405416705, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 6, 'Search', 'All contents of this forum can be browsed here. Multiple word searches are also supported. In addition, the search can be limited to any combination of title, content and author.', 'BL', 0, '#tutorSearchInfobox DIV:eq(0)', 'plugins.php/coreforum', '', '', '', 1405417134, 0);
-INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 7, 'Subscribe to forum', 'You can subscribe to the whole forum or individual topics . In this case a notification will be generated and you receive a meassage for each new post in this forum.', 'RT', 0, '#layout-sidebar SECTION:eq(0)  DIV:eq(9)  DIV:eq(0)', 'plugins.php/coreforum', '', '', 'dozent@studip.de', 1405416795, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 1, 'Forum', 'This tour provides an overview of the forum\'s elements and options of interaction.\r\n\rTo proceed, please click \"Continue\" in the lower-right corner.', 'BL', 0, '', 'dispatch.php/course/forum', '', '', '', 1405415772, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 2, 'You are here:...', 'Here you can see which sector of the forum you are currently looking at.', 'BL', 0, 'DIV#tutorBreadcrumb', 'dispatch.php/course/forum', '', '', '', 1405415875, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 3, 'Category', 'The forum is divided into categories, topics and posts. A category summarises forum areas into larger units of meaning.', 'BL', 0, '#tutorCategory', 'dispatch.php/course/forum', '', '', '', 1405416611, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 4, 'Area', 'This is an area within a category. Areas contain threads. The order of areas can be altered using drag&drop', 'BL', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(1)  DIV:eq(0)  SPAN:eq(0)  A:eq(0)  SPAN:eq(0)', 'dispatch.php/course/forum', '', '', '', 1405416664, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 5, 'Info-Icon', 'This icon turns red as soon as there is something new in this sector.', 'B', 0, '#sortable_areas TABLE:eq(0)  TBODY:eq(0)  TR:eq(0)  TD:eq(0)  A:eq(0)  IMG:eq(0)', 'dispatch.php/course/forum', '', '', '', 1405416705, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 6, 'Search', 'All contents of this forum can be browsed here. Multiple word searches are also supported. In addition, the search can be limited to any combination of title, content and author.', 'BL', 0, '#tutorSearchInfobox DIV:eq(0)', 'dispatch.php/course/forum', '', '', '', 1405417134, 0);
+INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('89786eac42f52ac316790825b4f5c0b2', 7, 'Subscribe to forum', 'You can subscribe to the whole forum or individual topics . In this case a notification will be generated and you receive a meassage for each new post in this forum.', 'RT', 0, '#layout-sidebar SECTION:eq(0)  DIV:eq(9)  DIV:eq(0)', 'dispatch.php/course/forum', '', '', 'dozent@studip.de', 1405416795, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('96ea422f286fb5bbf9e41beadb484a9a', 1, 'Profil-Tour', 'Diese Tour gibt Ihnen einen Überblick über die wichtigsten Funktionen des \"Profils\".\r\n\r\nUm auf den nächsten Schritt zu kommen, klicken Sie bitte rechts unten auf \"Weiter\".', 'T', 0, '', 'dispatch.php/profile', '', '', '', 1406722657, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('96ea422f286fb5bbf9e41beadb484a9a', 2, 'Persönliches Bild', 'Wenn ein Bild hochgeladen wurde, wird es hier angezeigt. Dieses kann jederzeit geändert werden.', 'RT', 0, '.avatar-normal', 'dispatch.php/profile', '', '', '', 1406722657, 0);
 INSERT INTO `help_tour_steps` (`tour_id`, `step`, `title`, `tip`, `orientation`, `interactive`, `css_selector`, `route`, `action_prev`, `action_next`, `author_email`, `mkdate`, `chdate`) VALUES('96ea422f286fb5bbf9e41beadb484a9a', 3, 'Stud.IP-Score', 'Der Stud.IP-Score wächst mit den Aktivitäten in Stud.IP und repräsentiert so die Erfahrung mit Stud.IP.', 'BL', 0, '#layout_content TABLE:eq(0) TBODY:eq(0) TR:eq(0) TD:eq(0) A:eq(0)', 'dispatch.php/profile', '', '', '', 1406722657, 0);
@@ -1203,17 +1207,23 @@ INSERT INTO `log_actions` (`action_id`, `name`, `description`, `info_template`,
 INSERT INTO `log_actions` (`action_id`, `name`, `description`, `info_template`, `active`, `expires`, `filename`, `class`, `type`, `mkdate`, `chdate`) VALUES('ff806b4b26f8bc8c3e65e29d14176cd9', 'RES_REQUEST_RESOLVE', 'Aufgelöste Raumanfrage', '%user löst Raumanfrage für %sem(%affected), Raum %res(%coaffected) auf.', 0, 0, NULL, NULL, NULL, NULL, NULL);
 
 --
+-- Daten für Tabelle `oer_hosts`
+--
+
+INSERT INTO `oer_hosts` (`host_id`, `sorm_class`, `name`, `url`, `public_key`, `private_key`, `active`, `index_server`, `allowed_as_index_server`, `last_updated`, `chdate`, `mkdate`) VALUES('333f8037bc5f78b8e2f27256fa244b5f', 'OERHostOERSI', 'OERSI', 'https://oersi.de', '', '', 1, 1, 1, 1669041528, 1669041528, 1669041528);
+
+--
 -- Daten für Tabelle `plugins`
 --
 
-INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(1, 'Blubber', 'core/Blubber', 'Blubber', 'CorePlugin,StandardPlugin,StudipModule', 'yes', 1, NULL, NULL, NULL);
-INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(2, 'CoreForum', 'core/Forum', 'Forum', 'CorePlugin,ForumModule,StudipModule,StandardPlugin', 'yes', 2, NULL, NULL, NULL);
-INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(3, 'EvaluationsWidget', 'core/EvaluationsWidget', 'EvaluationsWidget', 'PortalPlugin', 'yes', 3, NULL, NULL, NULL);
-INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(4, 'NewsWidget', 'core/NewsWidget', 'NewsWidget', 'PortalPlugin', 'yes', 4, NULL, NULL, NULL);
-INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(5, 'QuickSelection', 'core/QuickSelection', 'QuickSelection', 'PortalPlugin', 'yes', 5, NULL, NULL, NULL);
-INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(6, 'ScheduleWidget', 'core/ScheduleWidget', 'ScheduleWidget', 'PortalPlugin', 'yes', 6, NULL, NULL, NULL);
-INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(7, 'TerminWidget', 'core/TerminWidget', 'TerminWidget', 'PortalPlugin', 'yes', 7, NULL, NULL, NULL);
-INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(8, 'ActivityFeed', 'core/ActivityFeed', 'ActivityFeed', 'PortalPlugin', 'yes', 8, NULL, NULL, NULL);
+INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(1, 'Blubber', '', 'Blubber', 'CorePlugin,StandardPlugin,StudipModule', 'yes', 1, NULL, NULL, NULL);
+INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(2, 'CoreForum', '', 'Forum', 'CorePlugin,ForumModule,StudipModule,StandardPlugin', 'yes', 2, NULL, NULL, NULL);
+INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(3, 'EvaluationsWidget', '', 'EvaluationsWidget', 'PortalPlugin', 'yes', 3, NULL, NULL, NULL);
+INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(4, 'NewsWidget', '', 'NewsWidget', 'PortalPlugin', 'yes', 4, NULL, NULL, NULL);
+INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(5, 'QuickSelection', '', 'QuickSelection', 'PortalPlugin', 'yes', 5, NULL, NULL, NULL);
+INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(6, 'ScheduleWidget', '', 'ScheduleWidget', 'PortalPlugin', 'yes', 6, NULL, NULL, NULL);
+INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(7, 'TerminWidget', '', 'TerminWidget', 'PortalPlugin', 'yes', 7, NULL, NULL, NULL);
+INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(8, 'ActivityFeed', '', 'ActivityFeed', 'PortalPlugin', 'yes', 8, NULL, NULL, NULL);
 INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(9, 'IliasInterfaceModule', '', 'Ilias-Interface', 'CorePlugin,StudipModule,SystemPlugin', 'yes', 1, NULL, NULL, NULL);
 INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(10, 'LtiToolModule', '', 'LTI-Tool', 'CorePlugin,StudipModule,SystemPlugin,PrivacyPlugin', 'yes', 1, NULL, NULL, NULL);
 INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(11, 'GradebookModule', '', 'Gradebook', 'CorePlugin,SystemPlugin,StudipModule', 'yes', 1, NULL, NULL, NULL);
@@ -1232,7 +1242,7 @@ INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`
 INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(24, 'CoreElearningInterface', '', 'CoreElearningInterface', 'CorePlugin,StudipModule', 'yes', 1, NULL, NULL, NULL);
 INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(25, 'CorePersonal', '', 'CorePersonal', 'CorePlugin,StudipModule', 'yes', 1, NULL, NULL, NULL);
 INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(26, 'CoursewareModule', '', 'Courseware', 'CorePlugin,StudipModule,SystemPlugin', 'yes', 1, NULL, NULL, NULL);
-INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(27, 'ContentsWidget', 'core/ContentsWidget', 'ContentsWidget', 'PortalPlugin', 'yes', 9, NULL, NULL, NULL);
+INSERT INTO `plugins` (`pluginid`, `pluginclassname`, `pluginpath`, `pluginname`, `plugintype`, `enabled`, `navigationpos`, `dependentonid`, `automatic_update_url`, `automatic_update_secret`) VALUES(27, 'ContentsWidget', '', 'ContentsWidget', 'PortalPlugin', 'yes', 9, NULL, NULL, NULL);
 
 --
 -- Daten für Tabelle `roles`
@@ -1463,14 +1473,15 @@ INSERT INTO `roles_user` (`roleid`, `userid`, `institut_id`) VALUES(7, 'nobody',
 --
 
 INSERT INTO `schema_version` (`domain`, `branch`, `version`) VALUES('studip', '1', 327);
-INSERT INTO `schema_version` (`domain`, `branch`, `version`) VALUES('studip', '5.1', 32);
+INSERT INTO `schema_version` (`domain`, `branch`, `version`) VALUES('studip', '5.1', 35);
+INSERT INTO `schema_version` (`domain`, `branch`, `version`) VALUES('studip', '5.2', 15);
 
 --
 -- Daten für Tabelle `semester_data`
 --
 
-INSERT INTO `semester_data` (`semester_id`, `name`, `description`, `semester_token`, `beginn`, `ende`, `vorles_beginn`, `vorles_ende`, `visible`, `external_id`, `mkdate`, `chdate`) VALUES('322f640f3f4643ebe514df65f1163eb1', 'SS 2022', '', '', 1648764000, 1664575199, 1650319200, 1658527199, 1, '', NULL, NULL);
-INSERT INTO `semester_data` (`semester_id`, `name`, `description`, `semester_token`, `beginn`, `ende`, `vorles_beginn`, `vorles_ende`, `visible`, `external_id`, `mkdate`, `chdate`) VALUES('4967f0a483e36554b77e3dc47aa58941', 'WS 2022/2023', '', '', 1664575200, 1680299999, 1666562400, 1676069999, 1, '', NULL, 1656513998);
+INSERT INTO `semester_data` (`semester_id`, `name`, `description`, `semester_token`, `beginn`, `ende`, `sem_wechsel`, `vorles_beginn`, `vorles_ende`, `visible`, `external_id`, `mkdate`, `chdate`) VALUES('322f640f3f4643ebe514df65f1163eb1', 'SS 2023', '', '', 1680300000, 1696111199, NULL, 1681164000, 1689371999, 1, '', NULL, 1669041706);
+INSERT INTO `semester_data` (`semester_id`, `name`, `description`, `semester_token`, `beginn`, `ende`, `sem_wechsel`, `vorles_beginn`, `vorles_ende`, `visible`, `external_id`, `mkdate`, `chdate`) VALUES('4967f0a483e36554b77e3dc47aa58941', 'WS 2022/2023', '', '', 1664575200, 1680299999, NULL, 1666562400, 1676069999, 1, '', NULL, 1656513998);
 
 --
 -- Daten für Tabelle `semester_holiday`
@@ -1482,7 +1493,7 @@ INSERT INTO `semester_holiday` (`holiday_id`, `semester_id`, `name`, `descriptio
 -- Daten für Tabelle `sem_classes`
 --
 
-INSERT INTO `sem_classes` (`id`, `name`, `only_inst_user`, `default_read_level`, `default_write_level`, `bereiche`, `module`, `show_browse`, `write_access_nobody`, `topic_create_autor`, `visible`, `course_creation_forbidden`, `modules`, `description`, `create_description`, `studygroup_mode`, `admission_prelim_default`, `admission_type_default`, `title_dozent`, `title_dozent_plural`, `title_tutor`, `title_tutor_plural`, `title_autor`, `title_autor_plural`, `show_raumzeit`, `is_group`, `mkdate`, `chdate`) VALUES(1, 'Lehre', 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, '{\"CoreOverview\":{\"activated\":\"1\",\"sticky\":\"1\"},\"CoreAdmin\":{\"activated\":\"1\",\"sticky\":\"1\"},\"CoreDocuments\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoursewareModule\":{\"activated\":\"1\",\"sticky\":\"0\"},\"Blubber\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreForum\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreWiki\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreParticipants\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreSchedule\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreScm\":{\"activated\":\"0\",\"sticky\":\"0\"},\"ConsultationModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreElearningInterface\":{\"activated\":\"0\",\"sticky\":\"0\"},\"IliasInterfaceModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"LtiToolModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"GradebookModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"FeedbackModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreCalendar\":{\"activated\":\"0\",\"sticky\":\"1\"}}', 'Hier finden Sie alle in Stud.IP registrierten Lehrveranstaltungen', '', 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, 1366882120, 1641229573);
+INSERT INTO `sem_classes` (`id`, `name`, `only_inst_user`, `default_read_level`, `default_write_level`, `bereiche`, `module`, `show_browse`, `write_access_nobody`, `topic_create_autor`, `visible`, `course_creation_forbidden`, `modules`, `description`, `create_description`, `studygroup_mode`, `admission_prelim_default`, `admission_type_default`, `title_dozent`, `title_dozent_plural`, `title_tutor`, `title_tutor_plural`, `title_autor`, `title_autor_plural`, `show_raumzeit`, `is_group`, `mkdate`, `chdate`) VALUES(1, 'Lehre', 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, '{\"CoreOverview\":{\"activated\":\"1\",\"sticky\":\"1\"},\"CoreAdmin\":{\"activated\":\"1\",\"sticky\":\"1\"},\"CoreDocuments\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoursewareModule\":{\"activated\":\"1\",\"sticky\":\"0\"},\"Blubber\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreForum\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreWiki\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreParticipants\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreSchedule\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreScm\":{\"activated\":\"0\",\"sticky\":\"0\"},\"ConsultationModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreElearningInterface\":{\"activated\":\"0\",\"sticky\":\"0\"},\"IliasInterfaceModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"LtiToolModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"GradebookModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"FeedbackModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreCalendar\":{\"activated\":\"0\",\"sticky\":\"1\"}}', 'Hier finden Sie alle in Stud.IP registrierten Lehrveranstaltungen', '', 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, 1366882120, 1641229573);
 INSERT INTO `sem_classes` (`id`, `name`, `only_inst_user`, `default_read_level`, `default_write_level`, `bereiche`, `module`, `show_browse`, `write_access_nobody`, `topic_create_autor`, `visible`, `course_creation_forbidden`, `modules`, `description`, `create_description`, `studygroup_mode`, `admission_prelim_default`, `admission_type_default`, `title_dozent`, `title_dozent_plural`, `title_tutor`, `title_tutor_plural`, `title_autor`, `title_autor_plural`, `show_raumzeit`, `is_group`, `mkdate`, `chdate`) VALUES(2, 'Organisation', 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, '{\"CoreOverview\":{\"activated\":\"1\",\"sticky\":\"1\"},\"CoreAdmin\":{\"activated\":\"1\",\"sticky\":\"1\"},\"Blubber\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreForum\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreParticipants\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreDocuments\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreSchedule\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreWiki\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreScm\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreElearningInterface\":{\"activated\":\"0\",\"sticky\":\"0\"},\"LtiToolModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"GradebookModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoursewareModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"ConsultationModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreCalendar\":{\"activated\":\"0\",\"sticky\":\"0\"},\"FeedbackModule\":{\"activated\":\"0\",\"sticky\":\"0\"}}', 'Hier finden Sie virtuelle Veranstaltungen zu verschiedenen Gremien an der Universit&auml;t', '', 0, 0, 0, 'LeiterIn', 'LeiterInnen', 'Mitglied', 'Mitglieder', NULL, NULL, 1, 0, 1366882120, 1641229564);
 INSERT INTO `sem_classes` (`id`, `name`, `only_inst_user`, `default_read_level`, `default_write_level`, `bereiche`, `module`, `show_browse`, `write_access_nobody`, `topic_create_autor`, `visible`, `course_creation_forbidden`, `modules`, `description`, `create_description`, `studygroup_mode`, `admission_prelim_default`, `admission_type_default`, `title_dozent`, `title_dozent_plural`, `title_tutor`, `title_tutor_plural`, `title_autor`, `title_autor_plural`, `show_raumzeit`, `is_group`, `mkdate`, `chdate`) VALUES(3, 'Community', 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, '{\"CoreOverview\":{\"activated\":\"1\",\"sticky\":\"1\"},\"CoreAdmin\":{\"activated\":\"1\",\"sticky\":\"1\"},\"CoreForum\":{\"activated\":\"0\",\"sticky\":\"0\"},\"Blubber\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreParticipants\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreDocuments\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoursewareModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreWiki\":{\"activated\":\"0\",\"sticky\":\"0\"},\"LtiToolModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"GradebookModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"FeedbackModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreScm\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreSchedule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"ConsultationModule\":{\"activated\":\"0\",\"sticky\":\"0\"}}', 'Hier finden Sie virtuelle Veranstaltungen zu unterschiedlichen Themen', '', 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, 1366882120, 1641229633);
 INSERT INTO `sem_classes` (`id`, `name`, `only_inst_user`, `default_read_level`, `default_write_level`, `bereiche`, `module`, `show_browse`, `write_access_nobody`, `topic_create_autor`, `visible`, `course_creation_forbidden`, `modules`, `description`, `create_description`, `studygroup_mode`, `admission_prelim_default`, `admission_type_default`, `title_dozent`, `title_dozent_plural`, `title_tutor`, `title_tutor_plural`, `title_autor`, `title_autor_plural`, `show_raumzeit`, `is_group`, `mkdate`, `chdate`) VALUES(99, 'Studiengruppen', 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, '{\"CoreOverview\":{\"activated\":\"1\",\"sticky\":\"1\"},\"CoreStudygroupAdmin\":{\"activated\":\"1\",\"sticky\":\"1\"},\"CoreStudygroupParticipants\":{\"activated\":\"1\",\"sticky\":\"1\"},\"Blubber\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreForum\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreDocuments\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoreScm\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreWiki\":{\"activated\":\"1\",\"sticky\":\"0\"},\"CoursewareModule\":{\"activated\":\"0\",\"sticky\":\"0\"},\"CoreCalendar\":{\"activated\":\"0\",\"sticky\":\"1\"}}', '', '', 1, 0, 0, 'GruppengründerIn', 'GruppengründerInnen', 'ModeratorIn', 'ModeratorInnen', 'Mitglied', 'Mitglieder', 0, 0, 1366882120, 1641229657);
diff --git a/db/studip_demo_data.sql b/db/studip_demo_data.sql
index 250c6e6..7c10d61 100644
--- a/db/studip_demo_data.sql
+++ b/db/studip_demo_data.sql
@@ -161,8 +161,8 @@ REPLACE INTO `semester_courses` (`semester_id`, `course_id`, `mkdate`, `chdate`)
 -- Dumping data for table `seminare`
 --
 
-REPLACE INTO `seminare` (`Seminar_id`, `VeranstaltungsNummer`, `Institut_id`, `Name`, `Untertitel`, `status`, `Beschreibung`, `Ort`, `Sonstiges`, `Lesezugriff`, `Schreibzugriff`, `start_time`, `duration_time`, `art`, `teilnehmer`, `vorrausetzungen`, `lernorga`, `leistungsnachweis`, `mkdate`, `chdate`, `ects`, `admission_turnout`, `admission_binding`, `admission_prelim`, `admission_prelim_txt`, `admission_disable_waitlist`, `visible`, `showscore`, `aux_lock_rule`, `aux_lock_rule_forced`, `lock_rule`, `admission_waitlist_max`, `admission_disable_waitlist_move`, `completion`, `parent_course`) VALUES('7cb72dab1bf896a0b55c6aa7a70a3a86', '', 'ec2e364b28357106c0f8c282733dbe56', 'Test Studiengruppe', '', 99, 'Studiengruppen sind eine einfache Möglichkeit, mit KommilitonInnen, KollegInnen und anderen zusammenzuarbeiten.', '', '', 1, 1, 1633039200, -1, '', '', '', '', '', 1268739824, 1607705186, '', 0, 0, 0, '', 0, 1, 0, NULL, 0, NULL, 0, 0, 0, NULL);
-REPLACE INTO `seminare` (`Seminar_id`, `VeranstaltungsNummer`, `Institut_id`, `Name`, `Untertitel`, `status`, `Beschreibung`, `Ort`, `Sonstiges`, `Lesezugriff`, `Schreibzugriff`, `start_time`, `duration_time`, `art`, `teilnehmer`, `vorrausetzungen`, `lernorga`, `leistungsnachweis`, `mkdate`, `chdate`, `ects`, `admission_turnout`, `admission_binding`, `admission_prelim`, `admission_prelim_txt`, `admission_disable_waitlist`, `visible`, `showscore`, `aux_lock_rule`, `aux_lock_rule_forced`, `lock_rule`, `admission_waitlist_max`, `admission_disable_waitlist_move`, `completion`, `parent_course`) VALUES('a07535cf2f8a72df33c12ddfa4b53dde', '12345', '2560f7c7674942a7dce8eeb238e15d93', 'Test Lehrveranstaltung', 'eine normale Lehrveranstaltung', 1, '', '', '', 1, 1, 1648764000, 0, '', 'für alle Studierenden', 'abgeschlossenes Grundstudium', 'Referate in Gruppenarbeit', 'Klausur', 1343924407, 1641229951, '4', 0, 0, 0, '', 0, 1, 0, NULL, 0, NULL, 0, 0, 0, NULL);
+REPLACE INTO `seminare` (`Seminar_id`, `VeranstaltungsNummer`, `Institut_id`, `Name`, `Untertitel`, `status`, `Beschreibung`, `Ort`, `Sonstiges`, `Lesezugriff`, `Schreibzugriff`, `start_time`, `duration_time`, `art`, `teilnehmer`, `vorrausetzungen`, `lernorga`, `leistungsnachweis`, `mkdate`, `chdate`, `ects`, `admission_turnout`, `admission_binding`, `admission_prelim`, `admission_prelim_txt`, `admission_disable_waitlist`, `visible`, `showscore`, `aux_lock_rule`, `aux_lock_rule_forced`, `lock_rule`, `admission_waitlist_max`, `admission_disable_waitlist_move`, `completion`, `parent_course`) VALUES('7cb72dab1bf896a0b55c6aa7a70a3a86', '', 'ec2e364b28357106c0f8c282733dbe56', 'Test Studiengruppe', '', 99, 'Studiengruppen sind eine einfache Möglichkeit, mit KommilitonInnen, KollegInnen und anderen zusammenzuarbeiten.', '', '', 1, 1, 1680300000, -1, '', '', '', '', '', 1268739824, 1607705186, '', 0, 0, 0, '', 0, 1, 0, NULL, 0, NULL, 0, 0, 0, NULL);
+REPLACE INTO `seminare` (`Seminar_id`, `VeranstaltungsNummer`, `Institut_id`, `Name`, `Untertitel`, `status`, `Beschreibung`, `Ort`, `Sonstiges`, `Lesezugriff`, `Schreibzugriff`, `start_time`, `duration_time`, `art`, `teilnehmer`, `vorrausetzungen`, `lernorga`, `leistungsnachweis`, `mkdate`, `chdate`, `ects`, `admission_turnout`, `admission_binding`, `admission_prelim`, `admission_prelim_txt`, `admission_disable_waitlist`, `visible`, `showscore`, `aux_lock_rule`, `aux_lock_rule_forced`, `lock_rule`, `admission_waitlist_max`, `admission_disable_waitlist_move`, `completion`, `parent_course`) VALUES('a07535cf2f8a72df33c12ddfa4b53dde', '12345', '2560f7c7674942a7dce8eeb238e15d93', 'Test Lehrveranstaltung', 'eine normale Lehrveranstaltung', 1, '', '', '', 1, 1, 1680300000, 0, '', 'für alle Studierenden', 'abgeschlossenes Grundstudium', 'Referate in Gruppenarbeit', 'Klausur', 1343924407, 1641229951, '4', 0, 0, 0, '', 0, 1, 0, NULL, 0, NULL, 0, 0, 0, NULL);
 
 --
 -- Dumping data for table `seminar_cycle_dates`
@@ -228,22 +228,22 @@ REPLACE INTO `statusgruppe_user` (`statusgruppe_id`, `user_id`, `position`, `vis
 --
 -- Dumping data for table `termine`
 --
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('125fcb53ed5e3dd1fd98af76cc8a4014', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1653289200, 1653296400, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('1c48ef9d30c22182a055398224f38f7d', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1655103600, 1655110800, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('1c8e311900f9f2ec198abc272e5812f2', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1652079600, 1652086800, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('23214ba4ea7944dce6ce932f3b3a0786', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1655708400, 1655715600, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('6fdc180d40b07e44830dfd0365be5720', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1657522800, 1657530000, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('7a8154c0220830e73683005dd4ccb4af', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1653894000, 1653901200, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('9ff59e18112a686c553412761a5df85c', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1658909700, 1658916000, 1641490611, 1641490611, 3, '', NULL);
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('a136f4bc1c111ac338514e96e7161c23', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1652684400, 1652691600, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('b1a47bbc35c53b20677d754c1e4ef1f6', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1658127600, 1658134800, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('c1137a756a8cdf383e9ff7f3d7d373a8', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1656918000, 1656925200, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('dfc138efafa4c26801da682cad2f24ff', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1651474800, 1651482000, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('e289012514003e4200a6f50aaa304ef4', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1656313200, 1656320400, 1641490272, 1641490272, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('ebed08238996f86df2f0ad6121d06bbd', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1650870000, 1650877200, 1641490271, 1641490271, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1');
-
-
-REPLACE INTO `ex_termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`, `resource_id`) VALUES('aa9e07af935c01f47123c12559d19e52', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1621839600, 1621846800, 1641229951, 1641229951, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1', '');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('03c29d35ff046a26ce41ee021473bcd2', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1684738800, 1684746000, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('03e159dcfd421949a2db4d36869b0205', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1688367600, 1688374800, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('0de8bc031df8e2354d4c3136670382b5', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1683529200, 1683536400, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('11cf07ec71bcfbb171095d2b0ca2007e', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1687158000, 1687165200, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('323c9f7e3403c3eb2e7eeaed6aa2f4ce', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1681714800, 1681722000, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('3dcbb39e90a51b8047419105a6c2df27', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1684134000, 1684141200, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('62587021142c23dcb3f18461554b0116', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1686553200, 1686560400, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('6671170964137c6b4f521b3552fc27a7', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1688972400, 1688979600, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('8bc6a901aba362d7ed6301836f2b4377', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1687762800, 1687770000, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('9b771586f77475dba1b1e56abdbc5d6c', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1685948400, 1685955600, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('9ff59e18112a686c553412761a5df85c', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1690445700, 1690452000, 1641490611, 1669043415, 3, '', NULL);
+REPLACE INTO `termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`) VALUES('f0fb7805ce3bbdb2332a1b581c6c30a5', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1682319600, 1682326800, 1669043318, 1669043646, 1, '', 'fc3c44f257e448e3cd36a88406a8a9c1');
+
+
+REPLACE INTO `ex_termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`, `resource_id`) VALUES('11c4d885da4b11d48678176564a32bfb', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1685343600, 1685350800, 1669043318, 1669043318, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1', '');
+REPLACE INTO `ex_termine` (`termin_id`, `range_id`, `autor_id`, `content`, `description`, `date`, `end_time`, `mkdate`, `chdate`, `date_typ`, `raum`, `metadate_id`, `resource_id`) VALUES('53dd308a9561bf77d826887d10a49727', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '', NULL, 1682924400, 1682931600, 1669043318, 1669043318, 1, NULL, 'fc3c44f257e448e3cd36a88406a8a9c1', '');
 
 
 --
diff --git a/db/studip_mvv_demo_data.sql b/db/studip_mvv_demo_data.sql
index a478250..7c2982c 100644
--- a/db/studip_mvv_demo_data.sql
+++ b/db/studip_mvv_demo_data.sql
@@ -65,3 +65,5 @@ REPLACE INTO `mvv_stg_stgteil` (`studiengang_id`, `stgteil_id`, `stgteil_bez_id`
 REPLACE INTO `mvv_studiengang` (`studiengang_id`, `abschluss_id`, `typ`, `name`, `name_kurz`, `beschreibung`, `institut_id`, `start`, `end`, `beschlussdatum`, `fassung_nr`, `fassung_typ`, `stat`, `kommentar_status`, `schlagworte`, `author_id`, `editor_id`, `mkdate`, `chdate`) VALUES('58f22c9a19b296e7e5fbfa7d7a059c79', '228234544820cdf75db55b42d1ea3ecc', 'mehrfach', 'Bachelor Geschichte', NULL, NULL, '1535795b0d6ddecac6813f5f6ac47ef2', NULL, NULL, NULL, NULL, NULL, 'genehmigt', NULL, NULL, '', '', 1545135981, 1545135981);
 REPLACE INTO `mvv_studiengang` (`studiengang_id`, `abschluss_id`, `typ`, `name`, `name_kurz`, `beschreibung`, `institut_id`, `start`, `end`, `beschlussdatum`, `fassung_nr`, `fassung_typ`, `stat`, `kommentar_status`, `schlagworte`, `author_id`, `editor_id`, `mkdate`, `chdate`) VALUES('7e5c6adb4152e8d402e5dba26664fa32', 'c7f569e815a35cf24a515a0e67928072', 'einfach', 'Master Informatik', NULL, NULL, '1535795b0d6ddecac6813f5f6ac47ef2', NULL, NULL, NULL, NULL, NULL, 'genehmigt', NULL, NULL, '', '', 1545135981, 1545135981);
 
+REPLACE INTO `mvv_lvgruppe_seminar` (`lvgruppe_id`, `seminar_id`, `author_id`, `editor_id`, `mkdate`, `chdate`) VALUES('9938b594f4c50c21ed235b2f92e82177', 'a07535cf2f8a72df33c12ddfa4b53dde', '76ed43ef286fb55cf9e41beadb484a9f', '76ed43ef286fb55cf9e41beadb484a9f', 1669044181, 1669044181);
+
diff --git a/db/studip_resources_demo_data.sql b/db/studip_resources_demo_data.sql
index 8ef8bdd..3bd2188 100644
--- a/db/studip_resources_demo_data.sql
+++ b/db/studip_resources_demo_data.sql
@@ -34,37 +34,34 @@ REPLACE INTO `resources` (`id`, `parent_id`, `category_id`, `level`, `name`, `de
 -- Dumping data for table `resource_bookings`
 --
 
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('027fc3aab9dbfe5f3523fa42ac5c88c0', '728f1578de643fb08b32b4b8afb2db77', 'ea1c909ebb579cb36f20644be179af0d', '', 1607932800, 1607940000, NULL, NULL, 1607705853, 1607705853, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('08cd29015524985ac4217e9b9a1d02ae', '728f1578de643fb08b32b4b8afb2db77', '30bff5862583627e22245f9cc04abad9', '', 1604908800, 1604916000, NULL, NULL, 1607705853, 1607705853, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('166de94dd8d68e51dc82dd0ab7736e41', '728f1578de643fb08b32b4b8afb2db77', '62db4120526756d53f3d7a67fcdc3d45', '', 1605513600, 1605520800, NULL, NULL, 1607705853, 1607705853, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('207fa0f1e10e2dfbda1ed032c214a83b', '728f1578de643fb08b32b4b8afb2db77', '3cba067912d87c7b18fd2f24d07d6250', '', 1604304000, 1604311200, NULL, NULL, 1607705853, 1607705853, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('742b08bb636ef331da5841d0901b2ea3', '728f1578de643fb08b32b4b8afb2db77', 'f77250391dc627c527b1bb1efe6de9c0', '', 1607328000, 1607335200, NULL, NULL, 1607705853, 1607705853, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('889559e59a2c761137badd974a54b90d', '728f1578de643fb08b32b4b8afb2db77', '33dac8bb7b8b404c2337bbaf036e4018', '', 1610956800, 1610964000, NULL, NULL, 1607705854, 1607705854, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('a186ae1bc7875b24e83f16d5ea3378ff', '728f1578de643fb08b32b4b8afb2db77', '72752e09d7b593dcc1a6fa59f906e571', '', 1606723200, 1606730400, NULL, NULL, 1607705853, 1607705853, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('a7ab89c550bb460fbcd5bcd8cf07396d', '728f1578de643fb08b32b4b8afb2db77', 'dc66d3ce8ac166b7332599372b1561aa', '', 1610352000, 1610359200, NULL, NULL, 1607705854, 1607705854, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('b147be5d293bc99dbb3a5354da5556b5', '51ad4b7100d3a8a1db61c7b099f052a6', '', 'Entseuchung', 1609228800, 1609239600, NULL, NULL, 1607705959, 1607705959, '', 0, 1, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('b64f7aa6d55ab38a1347c982b13dddee', '728f1578de643fb08b32b4b8afb2db77', 'ea08bd23013de27be12e18892d90b227', '', 1611561600, 1611568800, NULL, NULL, 1607705854, 1607705854, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('c0faa097a74db1694d90dcc0c5a498b6', '728f1578de643fb08b32b4b8afb2db77', 'af699ff6cab47680e8f4d06239d5fc49', '', 1606118400, 1606125600, NULL, NULL, 1607705853, 1607705853, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('cc0e4643412a3fc49e1e79529ae62a48', '728f1578de643fb08b32b4b8afb2db77', '4b848f06d1f3983ffd9c227db08e6147', '', 1608537600, 1608544800, NULL, NULL, 1607705853, 1607705853, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
-REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('e8d37c25a27ddfc01c860373f7791406', '728f1578de643fb08b32b4b8afb2db77', '414a1c7ff481c76b7dbc01ac95e2015e', '', 1603699200, 1603706400, NULL, NULL, 1607705853, 1607705853, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('041322c703035a3b6b18e9a94d6d2995', '728f1578de643fb08b32b4b8afb2db77', '11cf07ec71bcfbb171095d2b0ca2007e', '', 1687158000, 1687165200, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('239ef5105bcf70e1bc280d3b119762a8', '728f1578de643fb08b32b4b8afb2db77', '62587021142c23dcb3f18461554b0116', '', 1686553200, 1686560400, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('29460433af113a3568a0a3a9517df2a8', '728f1578de643fb08b32b4b8afb2db77', '3dcbb39e90a51b8047419105a6c2df27', '', 1684134000, 1684141200, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('53b12a396ac0f2e9ad94d2a1acb78323', '728f1578de643fb08b32b4b8afb2db77', '8bc6a901aba362d7ed6301836f2b4377', '', 1687762800, 1687770000, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('6bbb6edd3b206861b142ead8466bd64d', '728f1578de643fb08b32b4b8afb2db77', '6671170964137c6b4f521b3552fc27a7', '', 1688972400, 1688979600, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('753c71518bcd3b2234ee176b10605ffd', '728f1578de643fb08b32b4b8afb2db77', '03e159dcfd421949a2db4d36869b0205', '', 1688367600, 1688374800, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('bc37146133034592918cf026e8fe8051', '728f1578de643fb08b32b4b8afb2db77', '03c29d35ff046a26ce41ee021473bcd2', '', 1684738800, 1684746000, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('e9e2ba935ed36404b29bbe9be8c9bded', '728f1578de643fb08b32b4b8afb2db77', 'f0fb7805ce3bbdb2332a1b581c6c30a5', '', 1682319600, 1682326800, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('ee860dc940d6b0ac9e22d218cd5d8716', '728f1578de643fb08b32b4b8afb2db77', '9b771586f77475dba1b1e56abdbc5d6c', '', 1685948400, 1685955600, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('f56859cd74357a535c36021c4ba0ba7d', '728f1578de643fb08b32b4b8afb2db77', '323c9f7e3403c3eb2e7eeaed6aa2f4ce', '', 1681714800, 1681722000, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
+REPLACE INTO `resource_bookings` (`id`, `resource_id`, `range_id`, `description`, `begin`, `end`, `repeat_end`, `repeat_quantity`, `mkdate`, `chdate`, `internal_comment`, `preparation_time`, `booking_type`, `booking_user_id`, `repetition_interval`) VALUES('fb73140a0f3436ee3b4583aa423dc65b', '728f1578de643fb08b32b4b8afb2db77', '0de8bc031df8e2354d4c3136670382b5', '', 1683529200, 1683536400, NULL, NULL, 1669043646, 1669043646, '', 0, 0, '76ed43ef286fb55cf9e41beadb484a9f', '');
 
 --
 -- Dumping data for table `resource_booking_intervals`
 --
 
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('02eef055bcbeee5848629bad3d1f899a', '728f1578de643fb08b32b4b8afb2db77', 'b64f7aa6d55ab38a1347c982b13dddee', 1611561600, 1611568800, 1607705854, 1607705854, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('2237ee0f74c7381149029643cf385ecc', '728f1578de643fb08b32b4b8afb2db77', 'a7ab89c550bb460fbcd5bcd8cf07396d', 1610352000, 1610359200, 1607705854, 1607705854, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('223de79c5e3ce9041773f6322ad9935c', '728f1578de643fb08b32b4b8afb2db77', 'a186ae1bc7875b24e83f16d5ea3378ff', 1606723200, 1606730400, 1607705853, 1607705853, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('691a93432404814b5e1c75fc969323fc', '728f1578de643fb08b32b4b8afb2db77', 'cc0e4643412a3fc49e1e79529ae62a48', 1608537600, 1608544800, 1607705853, 1607705853, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('6c3bb2b3844fdb62461501aa7411efd9', '728f1578de643fb08b32b4b8afb2db77', 'e8d37c25a27ddfc01c860373f7791406', 1603699200, 1603706400, 1607705853, 1607705853, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('82dcaf23e29301178525a74fc73e4105', '728f1578de643fb08b32b4b8afb2db77', '889559e59a2c761137badd974a54b90d', 1610956800, 1610964000, 1607705854, 1607705854, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('8a2988600d1d78e430bfc709e609beab', '51ad4b7100d3a8a1db61c7b099f052a6', 'b147be5d293bc99dbb3a5354da5556b5', 1609228800, 1609239600, 1607705959, 1607705959, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('a02a29f78e71a76ae3a030b391baa672', '728f1578de643fb08b32b4b8afb2db77', 'c0faa097a74db1694d90dcc0c5a498b6', 1606118400, 1606125600, 1607705853, 1607705853, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('a3eeadd9e3de6180a9a0554f27ea619f', '728f1578de643fb08b32b4b8afb2db77', '166de94dd8d68e51dc82dd0ab7736e41', 1605513600, 1605520800, 1607705853, 1607705853, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('acd66a58890977405526da9525484491', '728f1578de643fb08b32b4b8afb2db77', '08cd29015524985ac4217e9b9a1d02ae', 1604908800, 1604916000, 1607705853, 1607705853, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('d9b8887fd978d66d0edbc69edf9f8597', '728f1578de643fb08b32b4b8afb2db77', '027fc3aab9dbfe5f3523fa42ac5c88c0', 1607932800, 1607940000, 1607705853, 1607705853, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('eec56b6250a99393969c6ee0f27af11a', '728f1578de643fb08b32b4b8afb2db77', '207fa0f1e10e2dfbda1ed032c214a83b', 1604304000, 1604311200, 1607705853, 1607705853, 1);
-REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('f7cbc12497a2d29ede9755fcf7bf0bc3', '728f1578de643fb08b32b4b8afb2db77', '742b08bb636ef331da5841d0901b2ea3', 1607328000, 1607335200, 1607705853, 1607705853, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('1588e0fb4d75cd5af07bfbdb2dceec82', '728f1578de643fb08b32b4b8afb2db77', '041322c703035a3b6b18e9a94d6d2995', 1687158000, 1687165200, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('1fb63f35fa56cd41c72635ec04e36e4e', '728f1578de643fb08b32b4b8afb2db77', '53b12a396ac0f2e9ad94d2a1acb78323', 1687762800, 1687770000, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('334dc6b9d547da3015eafd9e2d9f312e', '728f1578de643fb08b32b4b8afb2db77', '6bbb6edd3b206861b142ead8466bd64d', 1688972400, 1688979600, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('3cb7bb38ef726b5b84adacb92fdb6e46', '728f1578de643fb08b32b4b8afb2db77', 'fb73140a0f3436ee3b4583aa423dc65b', 1683529200, 1683536400, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('5dc5ea89184eb9205b8b5b996abde7be', '728f1578de643fb08b32b4b8afb2db77', '753c71518bcd3b2234ee176b10605ffd', 1688367600, 1688374800, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('83e1842eb56c1d2575aa177e13408ce3', '728f1578de643fb08b32b4b8afb2db77', 'bc37146133034592918cf026e8fe8051', 1684738800, 1684746000, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('9e410665d2bf5ee8ed067a30453aca39', '728f1578de643fb08b32b4b8afb2db77', 'f56859cd74357a535c36021c4ba0ba7d', 1681714800, 1681722000, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('bb3baf907b7781c14f4666728f43f4d7', '728f1578de643fb08b32b4b8afb2db77', 'e9e2ba935ed36404b29bbe9be8c9bded', 1682319600, 1682326800, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('dc7f0eb94246a785bf764d65bfad7985', '728f1578de643fb08b32b4b8afb2db77', 'ee860dc940d6b0ac9e22d218cd5d8716', 1685948400, 1685955600, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('f045bcd1d0d1a565c774b5bd60656ed8', '728f1578de643fb08b32b4b8afb2db77', '239ef5105bcf70e1bc280d3b119762a8', 1686553200, 1686560400, 1669043646, 1669043646, 1);
+REPLACE INTO `resource_booking_intervals` (`interval_id`, `resource_id`, `booking_id`, `begin`, `end`, `mkdate`, `chdate`, `takes_place`) VALUES('fc91d45b701d8c6fc84e5bb6cdb16ff9', '728f1578de643fb08b32b4b8afb2db77', '29460433af113a3568a0a3a9517df2a8', 1684134000, 1684141200, 1669043646, 1669043646, 1);
+
 
 --
 -- Dumping data for table `resource_properties`
diff --git a/public/history.txt b/public/history.txt
index 6338f7e..4990c52 100644
--- a/public/history.txt
+++ b/public/history.txt
@@ -1,3 +1,28 @@
+__18.11.2022 V 5.2__
+- Courseware: Verknüpfung von einem Lernmaterial in beliebig viele Bereiche
+- Courseware: Zuweisen von Inhalten zu Personen oder Gruppen
+- Courseware: Suchfunktion auf Coursewareseiten
+- Barrierefreiheit: Einstellungen nun auch über Profilbild in der Kopfzeile erreichbar
+- Barrierefreiheit: Hochkontrastschema
+- Barrierefreiheit: Erstellung und Bearbeitung von Ankündigungen ist nun barrierefrei
+- OER-Campus: Anbindung an das niedersächsische OER-Portal "Twillo"
+- OER-Campus: Anbindung an den Open Educational Search Index (OERSI)
+- Veranstaltungen: Studierenden können Materialien zur Veröffentlichung auf dem OER-Markplatz vorschlagen
+- Veranstaltungen: Beschreibungen an Teilnehmendengruppen
+- Veranstaltungen: Rundmailfunktion überarbeitet
+- Für Entwickler:innen: Barrierefreier Formularbaukasten
+- Für Entwickler:innen: OAuth2-Schnittstelle
+
+__11.07.2022 V 5.1__
+- Systemweit: Werbebanner und Ankündigungen mit Anzeigepriorität und Zielgruppe nach Rechterolle
+- Courseware: Neuer Block "Aufgaben Element"
+- Courseware: Inhaltsverzeichnis überarbeitet
+- Kurse: Mehrere durchführende Personen bei Terminvergabe
+- Barrierefreiheit: Bessere Unterstützung von Assistenzssystemen über Skiplinks, Tastaturnavigation und korrekte Beschreibungen von Elementen
+- Raumverwaltung: Übersichten über Berechtigungen von Personen
+- Raumverwaltung: Verbesserte Export-Funktionen, u.a. nach Buchungstyp, mit Kommentaren, ...
+- Raumverwaltung: Quality of Life Verbesserungen, Klickwege verkürzt, mehr und andere Filterfunktionen
+
 __15.01.2022 V 5.0__
 - Courseware komplett neu entwickelt und im Kernsystem integriert
 - OER-Campus neu entwickelt und im Kern integriert
-- 
cgit v1.0

