DatabaseArticleManager: neue Datenbank

This commit is contained in:
NOrtmann1
2026-06-24 15:23:39 +02:00
parent d5a3f4298f
commit 1401c3afe7
+2 -2
View File
@@ -18,7 +18,7 @@ class DatabaseArticleManager implements ArticleManagerDAO {
*/
public function __construct()
{
if (!file_exists(__DIR__ . '/../../db/articles.db')) {
if (!file_exists(__DIR__ . '/../../db/eduforgeDB.db')) {
try {
$db = $this->getConnection();
@@ -59,7 +59,7 @@ class DatabaseArticleManager implements ArticleManagerDAO {
try {
$user = 'root';
$pw = null;
$dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db';
$dsn = 'sqlite:' . __DIR__ . '/../../db/eduforgeDB.db';
return new PDO($dsn, $user, $pw);
} catch (PDOException $e) {
throw new InternalServerErrorException($e->getMessage());