update
continuous-integration/drone/push Build is passing Details

pull/3/head
remrem 1 year ago
parent 7f8ab101fd
commit 6b3109c5d3

@ -9,10 +9,10 @@ class DatabaseInit {
public function __construct() { public function __construct() {
if(getenv("IS_DB_INIT") != true) {} if(getenv("IS_DB_INIT") != true) {}
try { #try {
$this->con = (new DatabaseCon)->connect(); $this->con = (new DatabaseCon)->connect();
} catch(PDOException $e) { #} catch(PDOException $e) {
throw new PDOException($e->getMessage(), $e->getCode(), $e); # throw new PDOException($e->getMessage(), $e->getCode(), $e);
$this->createUserTable(); $this->createUserTable();
$this->createFileTable(); $this->createFileTable();
putenv("IS_DB_INIT=true"); putenv("IS_DB_INIT=true");

Loading…
Cancel
Save