adapted the tables

This commit is contained in:
tracer 2022-10-21 19:51:09 +02:00
parent 02c6154629
commit 0a334498df

View File

@ -3,7 +3,6 @@
namespace App\Service;
use PDO;
use PDOException;
/**
*
@ -12,11 +11,11 @@ class DatabaseConnection
{
private PDO $dbConnection;
const TABLE_PREFIX = '';
const TABLE_DOMAINS = self::TABLE_PREFIX . "users";
const TABLE_NAMESERVERS = self::TABLE_PREFIX . "addresses";
const TABLE_PREFIX = '';
const TABLE_USERS = self::TABLE_PREFIX . "users";
const TABLE_ADDRESSES = self::TABLE_PREFIX . "addresses";
public function __construct(private readonly ConfigController $configController)
public function __construct(private readonly Config $configController)
{
$dbHost = $this->configController->getConfig(configKey: 'dbHost');
$dbPort = $this->configController->getConfig(configKey: 'dbPort');