Files
2026-08-02 13:53:56 +02:00

30 lines
760 B
PHP

<?php
require_once __DIR__ . '/vendor/autoload.php';
use Dotenv\Dotenv;
$dotenv = Dotenv::createImmutable(__DIR__);
$dotenv->load();
return [
'paths' => [
'migrations' => __DIR__ . '/db/migrations',
'seeds' => __DIR__ . '/db/seeds',
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'production',
'production' => [
'adapter' => 'mysql',
'host' => $_ENV['DB_HOST'],
'name' => $_ENV['DB_DATABASE'],
'user' => $_ENV['DB_USERNAME'],
'pass' => $_ENV['DB_PASSWORD'],
'port' => 3306,
'charset' => 'utf8mb4',
],
],
'version_order' => 'creation',
];