chore: make postgresql default
This commit is contained in:
@@ -10,13 +10,13 @@ APP_TIMEZONE=Europe/Berlin
|
||||
APP_LOCALE=de
|
||||
|
||||
# Database Configuration (Production)
|
||||
DB_DRIVER=mysql
|
||||
DB_DRIVER=pgsql
|
||||
DB_HOST=db
|
||||
DB_PORT=3306
|
||||
DB_PORT=5432
|
||||
DB_DATABASE=michaelschiemer
|
||||
DB_USERNAME=mdb-user
|
||||
DB_PASSWORD=StartSimple2024!
|
||||
DB_CHARSET=utf8mb4
|
||||
DB_USERNAME=mdb_user
|
||||
DB_PASSWORD=Qo2KNgGqeYksEhKr57pgugakxlothn8J
|
||||
DB_CHARSET=utf8
|
||||
|
||||
# Security Configuration
|
||||
SECURITY_ALLOWED_HOSTS=localhost,michaelschiemer.de,www.michaelschiemer.de
|
||||
@@ -66,7 +66,7 @@ NETWORK_CACHE_INTERNAL=true
|
||||
# Production-specific configs
|
||||
DB_PORT=
|
||||
REDIS_CONFIG_PATH=./docker/redis/redis-secure.conf
|
||||
DB_CONFIG_PATH=./docker/mysql/conf.d/security.cnf
|
||||
# PostgreSQL doesn't need custom config path
|
||||
HEALTHCHECK_START_PERIOD=30s
|
||||
|
||||
# Production ports (only HTTPS)
|
||||
|
||||
@@ -21,7 +21,7 @@ final readonly class DatabaseConfigInitializer
|
||||
public function __invoke(): DatabaseConfig
|
||||
{
|
||||
$driverConfig = new DriverConfig(
|
||||
driverType: DriverType::from($this->env->getString(EnvKey::DB_DRIVER, 'mysql')),
|
||||
driverType: DriverType::from($this->env->getString(EnvKey::DB_DRIVER, 'pgsql')),
|
||||
host: $this->env->getString(EnvKey::DB_HOST, 'db'),
|
||||
port: $this->env->getInt(EnvKey::DB_PORT, 3306),
|
||||
database: $this->env->getRequired(EnvKey::DB_DATABASE),
|
||||
|
||||
@@ -10,6 +10,7 @@ use App\Framework\Database\Platform\Enums\IndexType;
|
||||
use App\Framework\Database\Platform\ValueObjects\ColumnDefinition;
|
||||
use App\Framework\Database\Platform\ValueObjects\IndexDefinition;
|
||||
use App\Framework\Database\Platform\ValueObjects\TableOptions;
|
||||
use App\Framework\DI\Attributes\DefaultImplementation;
|
||||
|
||||
/**
|
||||
* PostgreSQL platform implementation with native features
|
||||
@@ -22,6 +23,7 @@ use App\Framework\Database\Platform\ValueObjects\TableOptions;
|
||||
* - RETURNING clause
|
||||
* - Partial and concurrent indexes
|
||||
*/
|
||||
|
||||
final readonly class PostgreSQLPlatform implements DatabasePlatform
|
||||
{
|
||||
private array $supportedFeatures;
|
||||
|
||||
Reference in New Issue
Block a user