From: Brenda Wallace Date: Sat, 15 May 2010 03:31:54 +0000 (+1200) Subject: caitalise the sql keywords X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a467c0ebbab22a220972e458de0652e523bc12d7;p=quix0rs-gnu-social.git caitalise the sql keywords --- diff --git a/lib/pgsqlschema.php b/lib/pgsqlschema.php index 24b847a986..16639ff1b0 100644 --- a/lib/pgsqlschema.php +++ b/lib/pgsqlschema.php @@ -169,7 +169,7 @@ class PgsqlSchema extends Schema } if (count($primary) > 0) { // it really should be... - $sql .= ",\n primary key (" . implode(',', $primary) . ")"; + $sql .= ",\n PRIMARY KEY (" . implode(',', $primary) . ")"; } $sql .= "); "; @@ -180,7 +180,7 @@ class PgsqlSchema extends Schema } foreach ($indices as $i) { - $sql .= "CREATE index {$name}_{$i}_idx on {$name} ($i)"; + $sql .= "CREATE index {$name}_{$i}_idx ON {$name} ($i)"; } $res = $this->conn->query($sql);