chore: make postgresql default
This commit is contained in:
@@ -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