From 52f455fda3add334a99debdb9a5e38b87b386155 Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed>
Date: Sat, 24 Feb 2018 11:37:37 +0000
Subject: [PATCH] Inedx fuer Tabelle Abspieler berichtigt

---
 web/WEB-INF/create_database.sql |   35 ++++++++++++++++++++++++++++-------
 1 files changed, 28 insertions(+), 7 deletions(-)

diff --git a/web/WEB-INF/create_database.sql b/web/WEB-INF/create_database.sql
index e037968..4acca8e 100644
--- a/web/WEB-INF/create_database.sql
+++ b/web/WEB-INF/create_database.sql
@@ -1,9 +1,30 @@
-CREATE TABLE APP.SENDER
+
+create table app.sender
 (
-   SENDER_ID     INT NOT NULL,
-   SENDER_NAME   VARCHAR(1024)   NOT NULL,
-   SENDER_URL    VARCHAR(1024),
-   SENDER_LOGO   VARCHAR(1024),
-   PRIMARY KEY (SENDER_ID)
+   sender_id     int not null,
+   sender_name   varchar(1024) not null,
+   sender_url    varchar(1024),
+   sender_logo   varchar(1024),
+   primary key (sender_id)
 );
-create index sname ON APP.sender (sender_name);
+create index sname on app.sender (sender_name);
+
+create table app.abspieler
+(
+   abs_id        int not null,
+   abs_name      varchar(1024) not null,
+   abs_url       varchar(1024),
+   abs_typ       varchar(1024),
+   abs_bild      varchar(1024),
+   abs_zustand   varchar(1024),
+   primary key (sender_id)
+);
+create index aname on app.abspieler (abs_name);
+
+create table app.keytable (
+  key_name			varchar(80) not null primary key,
+	key_next			int
+);
+create index key_name_next ON app.keytable (key_name,key_next);
+insert into app.keytable (key_name, key_next) values ('sender_id',1);
+insert into app.keytable (key_name, key_next) values ('abs_id',1);
\ No newline at end of file

--
Gitblit v1.9.3