From be5e4395f79a0cc755e1a672cce9a562c94cc792 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sven=20K=C3=A4stle?= <sven.kaestle@gmx.de>
Date: Fri, 6 Jul 2018 19:03:57 +0200
Subject: [PATCH] refactor: Switch from simple body to new AnnotationBody

---
 .../src/scripts/dbschema/fltrail.sql           | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/gemeinsamforschen/src/scripts/dbschema/fltrail.sql b/gemeinsamforschen/src/scripts/dbschema/fltrail.sql
index e0de36c8..a810f1b2 100644
--- a/gemeinsamforschen/src/scripts/dbschema/fltrail.sql
+++ b/gemeinsamforschen/src/scripts/dbschema/fltrail.sql
@@ -104,25 +104,21 @@ CREATE TABLE if not exists projectuser
 
   ENGINE = InnoDB
 
-  DEFAULT CHARSET = utf8;CREATE TABLE if not exists `annotations` (
+  DEFAULT CHARSET = utf8;
 
+CREATE TABLE if not exists `annotations` (
   `id` varchar(120) NOT NULL,
-
   `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-
-  `userId` int(11) DEFAULT NULL,
-
+  `userToken` varchar(120) DEFAULT NULL,
   `targetId` int(11) DEFAULT NULL,
-
-  `body` varchar(280) DEFAULT NULL,
-
+  `title` varchar(120) DEFAULT NULL,
+  `comment` varchar(400) DEFAULT NULL,
   `startCharacter` int(11) DEFAULT NULL,
-
   `endCharacter` int(11) DEFAULT NULL,
-
   PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;alter table users
+alter table users
 
   add isStudent tinyint(1) default '1' null;
 CREATE TABLE if not exists quiz
-- 
GitLab