added ip, username and timestamp
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 13 Mar 2011 12:57:00 +0000 (13:57 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 13 Mar 2011 12:57:15 +0000 (13:57 +0100)
sql/adsl.sql
t/Store.t

index b6886bb..900f521 100644 (file)
@@ -1,4 +1,7 @@
 create table adsl (
+ip inet not null,
+username text not null,
+timestamp timestamp default now(),
 SNRTX float,
 ATTNTX float,
 MAXTX integer,
index 897e855..c06642e 100755 (executable)
--- a/t/Store.t
+++ b/t/Store.t
@@ -12,6 +12,8 @@ use_ok 'APKPM::Store';
 ok my $o = APKPM::Store->new, 'new';
 
 ok my $r = $o->ADSL('job',{
+ip => '127.0.0.1',
+username => 'nobody',
 ATTNRX => "36.5",
 ATTNTX => "17.8",
 MAXRX  => 13500,