psql fix
This commit is contained in:
@@ -126,7 +126,8 @@ class CreateDatabase extends DatabaseScript {
|
||||
->addString("target", 128)
|
||||
->addString("extra", 64, true)
|
||||
->addBool("active", true)
|
||||
->primaryKey("uid");
|
||||
->primaryKey("uid")
|
||||
->unique("request");
|
||||
|
||||
$queries[] = $sql->insert("Route", array("request", "action", "target", "extra"))
|
||||
->addRow("^/admin(/.*)?$", "dynamic", "\\Documents\\Admin", NULL)
|
||||
|
||||
@@ -280,9 +280,7 @@ namespace Documents\Install {
|
||||
$success = false;
|
||||
$msg = "Unable to write file";
|
||||
}
|
||||
}
|
||||
|
||||
if ($sql) {
|
||||
$sql->close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ class PostgreSQL extends SQL {
|
||||
}
|
||||
}
|
||||
|
||||
$this->connection = @pg_connect(implode(" ", $connectionString));
|
||||
$this->connection = @pg_connect(implode(" ", $connectionString), PGSQL_CONNECT_FORCE_NEW);
|
||||
if (!$this->connection) {
|
||||
$this->lastError = "Failed to connect to Database";
|
||||
$this->connection = NULL;
|
||||
|
||||
Reference in New Issue
Block a user