From d843ec9a3c734d6483d636d6f256119471187efb Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 8 Jul 2019 09:24:09 +0200 Subject: [PATCH] fixes for v0.3.1 --- src/main/resources/schema-demo.sql | 46 ++++++++++++++++-------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/src/main/resources/schema-demo.sql b/src/main/resources/schema-demo.sql index 97cacf25..f45f9db0 100644 --- a/src/main/resources/schema-demo.sql +++ b/src/main/resources/schema-demo.sql @@ -1,3 +1,14 @@ +-- ----------------------------------------------------- +-- Schema SEBServer +-- ----------------------------------------------------- +DROP SCHEMA IF EXISTS `SEBServer` ; + +-- ----------------------------------------------------- +-- Schema SEBServer +-- ----------------------------------------------------- +CREATE SCHEMA IF NOT EXISTS `SEBServer` DEFAULT CHARACTER SET utf8mb4 ; +USE `SEBServer` ; + -- ----------------------------------------------------- -- Table `institution` -- ----------------------------------------------------- @@ -71,7 +82,6 @@ CREATE TABLE IF NOT EXISTS `exam` ( ON UPDATE NO ACTION) ; - -- ----------------------------------------------------- -- Table `client_connection` -- ----------------------------------------------------- @@ -98,8 +108,7 @@ CREATE TABLE IF NOT EXISTS `client_connection` ( FOREIGN KEY (`institution_id`) REFERENCES `institution` (`id`) ON DELETE NO ACTION - ON UPDATE NO ACTION) -; + ON UPDATE NO ACTION); -- ----------------------------------------------------- @@ -461,28 +470,22 @@ CREATE TABLE IF NOT EXISTS `additional_attributes` ( -- ----------------------------------------------------- --- Table `client_connection` +-- Table `seb_client_configuration` -- ----------------------------------------------------- -DROP TABLE IF EXISTS `client_connection` ; +DROP TABLE IF EXISTS `seb_client_configuration` ; -CREATE TABLE IF NOT EXISTS `client_connection` ( +CREATE TABLE IF NOT EXISTS `seb_client_configuration` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `institution_id` BIGINT UNSIGNED NOT NULL, - `exam_id` BIGINT UNSIGNED NULL, - `status` VARCHAR(45) NOT NULL, - `connection_token` VARCHAR(255) NOT NULL, - `exam_user_session_identifer` VARCHAR(255) NOT NULL, - `client_address` VARCHAR(45) NOT NULL, - `virtual_client_address` VARCHAR(45) NULL, + `name` VARCHAR(255) NOT NULL, + `date` DATETIME NOT NULL, + `client_name` VARCHAR(4000) NOT NULL, + `client_secret` VARCHAR(4000) NOT NULL, + `encrypt_secret` VARCHAR(255) NULL, + `active` INT(1) NOT NULL, PRIMARY KEY (`id`), - INDEX `connection_exam_ref_idx` (`exam_id` ASC), - INDEX `clientConnectionInstitutionRef_idx` (`institution_id` ASC), - CONSTRAINT `clientConnectionExamRef` - FOREIGN KEY (`exam_id`) - REFERENCES `exam` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `clientConnectionInstitutionRef` + INDEX `sebClientCredentialsInstitutionRef_idx` (`institution_id` ASC), + CONSTRAINT `sebClientConfigInstitutionRef` FOREIGN KEY (`institution_id`) REFERENCES `institution` (`id`) ON DELETE NO ACTION @@ -500,5 +503,4 @@ CREATE TABLE IF NOT EXISTS `webservice_server_info` ( `uuid` VARCHAR(255) NOT NULL, `service_address` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`)) -; - +; \ No newline at end of file