From 0c05ca2191386ec0b850acd0bd88a4cfd3fdc42d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sven=20K=C3=A4stle?= <sven.kaestle@gmx.de>
Date: Sun, 1 Jul 2018 17:27:05 +0200
Subject: [PATCH] fix: Add create table annotation statement

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

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