diff options
Diffstat (limited to 'lib/pgsqlschema.php')
-rw-r--r-- | lib/pgsqlschema.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pgsqlschema.php b/lib/pgsqlschema.php index 24b847a98..16639ff1b 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); |