Skip to content
Snippets Groups Projects
Verified Commit c86c0d88 authored by Damien's avatar Damien
Browse files

FEAT #13671 TIME 0:15 Fix db creation

parent 376446b1
No related branches found
No related tags found
No related merge requests found
......@@ -316,6 +316,9 @@ class InstallerController
$db->query("CREATE DATABASE \"{$body['name']}\" WITH TEMPLATE template0 ENCODING = 'UTF8'");
$db->query("ALTER DATABASE \"{$body['name']}\" SET DateStyle =iso, dmy");
$dsn = "pgsql:host={$body['server']};port={$body['port']};dbname={$body['name']}";
$db = new \PDO($dsn, $body['user'], $body['password'], $options);
}
if (!is_file('sql/structure.sql')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment