@@ -14,6 +14,10 @@ class Database
|
||||
}
|
||||
@chmod($dir, 0777);
|
||||
|
||||
if (file_exists($path)) {
|
||||
@chmod($path, 0666);
|
||||
}
|
||||
|
||||
$this->pdo = new \PDO("sqlite:$path");
|
||||
$this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
|
||||
$this->pdo->setAttribute(\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_ASSOC);
|
||||
|
||||
Reference in New Issue
Block a user