From 89402973b2b1d992dbe717e9018b92c180a8f781 Mon Sep 17 00:00:00 2001 From: josch Date: Sun, 21 Oct 2007 19:15:18 +0000 Subject: [PATCH] added default user and referer table git-svn-id: http://yolanda.mister-muffin.de/svn@110 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/init_sql.pl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/trunk/init_sql.pl b/trunk/init_sql.pl index 1a66c51..98d51dd 100644 --- a/trunk/init_sql.pl +++ b/trunk/init_sql.pl @@ -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();