change DB Shema!

resolve issue #18 (int -> varchar for IMDb ID)
This commit is contained in:
6543 2019-04-29 21:19:17 +02:00
parent 63d8cf5750
commit 8c35837215

View File

@ -2,7 +2,7 @@


CREATE TABLE File ( CREATE TABLE File (
ID INTEGER PRIMARY KEY AUTO_INCREMENT, ID INTEGER PRIMARY KEY AUTO_INCREMENT,
Name TEXT NOT NULL, -- bis zu 65535 Zeichen; Name TEXT NOT NULL, -- bis zu 65535 Zeichen;
Folder TEXT NOT NULL, -- bis zu 65535 Zeichen; Pfad = $Folder/$Name Folder TEXT NOT NULL, -- bis zu 65535 Zeichen; Pfad = $Folder/$Name
MD5 VARCHAR(32), MD5 VARCHAR(32),
FT_ID INTEGER DEFAULT 0, FT_ID INTEGER DEFAULT 0,
@ -29,7 +29,7 @@ CREATE TABLE Universum (


CREATE TABLE Movie ( CREATE TABLE Movie (
ID INTEGER PRIMARY KEY AUTO_INCREMENT, ID INTEGER PRIMARY KEY AUTO_INCREMENT,
IMDb_ID INTEGER, IMDb_ID VARCHAR(100),
U_ID INTEGER, U_ID INTEGER,
Name VARCHAR(100), Name VARCHAR(100),
Description TEXT, Description TEXT,
@ -97,4 +97,4 @@ CREATE TABLE Language (
ID INTEGER PRIMARY KEY AUTO_INCREMENT, ID INTEGER PRIMARY KEY AUTO_INCREMENT,
TLD VARCHAR(2), TLD VARCHAR(2),
Name VARCHAR(100) NOT NULL Name VARCHAR(100) NOT NULL
); );