added dc fields
git-svn-id: http://yolanda.mister-muffin.de/svn@96 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
0088db58fd
commit
a1614613eb
1 changed files with 44 additions and 20 deletions
|
@ -44,32 +44,56 @@ $dbh->do(qq{create table
|
||||||
$dbh->do(qq{create table
|
$dbh->do(qq{create table
|
||||||
uploaded
|
uploaded
|
||||||
(
|
(
|
||||||
id int auto_increment not null,
|
id int auto_increment not null,
|
||||||
title varchar(255) not null,
|
title varchar(255) not null,
|
||||||
description text not null,
|
description varchar(255) not null,
|
||||||
userid int not null,
|
userid int not null,
|
||||||
status int not null,
|
status int not null,
|
||||||
timestamp datetime not null,
|
timestamp datetime not null,
|
||||||
primary key (id)
|
creator varchar(255) not null,
|
||||||
|
subject varchar(255) not null,
|
||||||
|
contributor varchar(255) not null,
|
||||||
|
source varchar(255) not null,
|
||||||
|
language varchar(255) not null,
|
||||||
|
coverage varchar(255) not null,
|
||||||
|
rights varchar(255) not null,
|
||||||
|
license varchar(255) not null,
|
||||||
|
notice bool not null,
|
||||||
|
derivativeworks bool not null,
|
||||||
|
sharealike bool not null,
|
||||||
|
commercialuse bool not null,
|
||||||
|
primary key (id)
|
||||||
)
|
)
|
||||||
}) or die $dbh->errstr;
|
}) or die $dbh->errstr;
|
||||||
|
|
||||||
$dbh->do(qq{create table
|
$dbh->do(qq{create table
|
||||||
videos
|
videos
|
||||||
(
|
(
|
||||||
id int auto_increment not null,
|
id int auto_increment not null,
|
||||||
title varchar(255) not null,
|
title varchar(255) not null,
|
||||||
description text not null,
|
description varchar(255) not null,
|
||||||
userid int not null,
|
userid int not null,
|
||||||
hash char(64) not null,
|
hash char(64) not null,
|
||||||
timestamp datetime not null,
|
timestamp datetime not null,
|
||||||
filesize int not null,
|
creator varchar(255) not null,
|
||||||
duration float not null,
|
subject varchar(255) not null,
|
||||||
width smallint not null,
|
contributor varchar(255) not null,
|
||||||
height smallint not null,
|
source varchar(255) not null,
|
||||||
fps float not null,
|
language varchar(255) not null,
|
||||||
primary key (id),
|
coverage varchar(255) not null,
|
||||||
fulltext (title, description)
|
rights varchar(255) not null,
|
||||||
|
license varchar(255) not null,
|
||||||
|
notice bool not null,
|
||||||
|
derivativeworks bool not null,
|
||||||
|
sharealike bool not null,
|
||||||
|
commercialuse bool not null,
|
||||||
|
filesize int not null,
|
||||||
|
duration float not null,
|
||||||
|
width smallint not null,
|
||||||
|
height smallint not null,
|
||||||
|
fps float not null,
|
||||||
|
primary key (id),
|
||||||
|
fulltext (title, description, subject)
|
||||||
)
|
)
|
||||||
}) or die $dbh->errstr;
|
}) or die $dbh->errstr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue