added default user and referer table
git-svn-id: http://yolanda.mister-muffin.de/svn@110 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
19dfc0d3f8
commit
89402973b2
1 changed files with 22 additions and 0 deletions
|
@ -41,6 +41,19 @@ $dbh->do(qq{create table
|
|||
)
|
||||
}) or die $dbh->errstr;
|
||||
|
||||
$dbh->do(qq{insert into
|
||||
users
|
||||
(
|
||||
username,
|
||||
password
|
||||
)
|
||||
values
|
||||
(
|
||||
'test',
|
||||
password( 'test' )
|
||||
)
|
||||
}) or die $dbh->errstr;
|
||||
|
||||
$dbh->do(qq{create table
|
||||
uploaded
|
||||
(
|
||||
|
@ -99,6 +112,15 @@ $dbh->do(qq{create table
|
|||
)
|
||||
}) or die $dbh->errstr;
|
||||
|
||||
$dbh->do(qq{create table
|
||||
referer
|
||||
(
|
||||
videoid int not null,
|
||||
referer varchar(255) not null,
|
||||
count int default 1
|
||||
)
|
||||
}) or die $dbh->errstr;
|
||||
|
||||
$dbh->disconnect() or die $dbh->errstr;
|
||||
|
||||
print $session->header();
|
||||
|
|
Loading…
Reference in a new issue