Update DatabaseArticleManager.php

This commit is contained in:
NOrtmann1
2026-06-09 15:30:05 +02:00
parent 15f17b7af4
commit 70f7e05fe1
+2 -4
View File
@@ -20,10 +20,8 @@ class DatabaseArticleManager implements ArticleManagerDAO {
{ {
if (!file_exists(__DIR__ . '/../../db/articles.db')) { if (!file_exists(__DIR__ . '/../../db/articles.db')) {
try { try {
$user = 'root';
$pw = null; $db = $this->getConnection();
$dsn = 'sqlite:' . __DIR__ . '/../../db/articles.db';
$db = new PDO($dsn, $user, $pw);
$db->exec(" $db->exec("
CREATE TABLE articles ( CREATE TABLE articles (