added new tables

git-svn-id: http://yolanda.mister-muffin.de/svn@122 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2007-10-22 17:47:28 +00:00
parent b30e62b40d
commit 2a14506d8d

View file

@ -17,6 +17,10 @@ $dbh->do(qq{drop table tagcloud});
$dbh->do(qq{drop table referer});
$dbh->do(qq{drop table ratings});
$dbh->do(qq{drop table messages});
$dbh->do(qq{create table
tagcloud
(
@ -123,6 +127,27 @@ $dbh->do(qq{create table
)
}) or die $dbh->errstr;
$dbh->do(qq{create table
ratings
(
videoid int not null,
userid int not null,
rating tinyint not null
)
}) or die $dbh->errstr;
$dbh->do(qq{create table
messages
(
id int auto_increment not null,
userid int not null,
videoid int not null,
replyto int default 0,
message varchar(255) not null,
primary key (id),
)
}) or die $dbh->errstr;
$dbh->disconnect() or die $dbh->errstr;
print $session->header();