This commit is contained in:
2021-04-06 20:31:52 +02:00
parent b3bded2332
commit 186083a315
4 changed files with 31 additions and 4 deletions

View File

@@ -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)

View File

@@ -280,9 +280,7 @@ namespace Documents\Install {
$success = false;
$msg = "Unable to write file";
}
}
if ($sql) {
$sql->close();
}
}

View File

@@ -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;