added new tables
git-svn-id: http://yolanda.mister-muffin.de/svn@122 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
b30e62b40d
commit
2a14506d8d
1 changed files with 25 additions and 0 deletions
|
@ -17,6 +17,10 @@ $dbh->do(qq{drop table tagcloud});
|
||||||
|
|
||||||
$dbh->do(qq{drop table referer});
|
$dbh->do(qq{drop table referer});
|
||||||
|
|
||||||
|
$dbh->do(qq{drop table ratings});
|
||||||
|
|
||||||
|
$dbh->do(qq{drop table messages});
|
||||||
|
|
||||||
$dbh->do(qq{create table
|
$dbh->do(qq{create table
|
||||||
tagcloud
|
tagcloud
|
||||||
(
|
(
|
||||||
|
@ -123,6 +127,27 @@ $dbh->do(qq{create table
|
||||||
)
|
)
|
||||||
}) or die $dbh->errstr;
|
}) 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;
|
$dbh->disconnect() or die $dbh->errstr;
|
||||||
|
|
||||||
print $session->header();
|
print $session->header();
|
||||||
|
|
Loading…
Reference in a new issue