From d786bded52637fe5289a0da96387b8f068f2d20c Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Tue, 27 Sep 2016 01:46:37 -0400 Subject: [PATCH] Additional adjustments to configuration saving --- configure.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;"); -- 1.8.3.1