From: Brian Flowers Date: Tue, 27 Sep 2016 05:46:37 +0000 (-0400) Subject: Additional adjustments to configuration saving X-Git-Url: http://git.slightlycyberpunk.com%2C%20git.slightlycyberpunk.com/git/?a=commitdiff_plain;h=d786bded52637fe5289a0da96387b8f068f2d20c;p=bdsm-web.git Additional adjustments to configuration saving --- diff --git a/configure.php b/configure.php index 6b85a43..43527a7 100755 --- a/configure.php +++ b/configure.php @@ -7,10 +7,10 @@ $result = $db->query("SELECT * FROM bdsmweb"); if( $db->errorInfo()[0] == "HY000" ) { - $query = "CREATE TABLE bdsmweb (host VARCHAR(128) primary key,". + $query = "CREATE TABLE bdsmweb (host VARCHAR(128),". "attribute VARCHAR(128), name VARCHAR(128), ". "graph integer, maximum integer, minimum integer, ". - "duration integer);"; + "duration integer, primary key (host, attribute);"; $db->query($query); $result = $db->query("SELECT * FROM bdsmweb;");