-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphinx.php
More file actions
35 lines (28 loc) · 993 Bytes
/
phinx.php
File metadata and controls
35 lines (28 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
declare(strict_types=1);
use Dotenv\Dotenv;
require_once __DIR__ . '/vendor/autoload.php';
// Load environment
$envs = array_merge(getenv(), $_ENV);
Dotenv::createImmutable(__DIR__)->load();
$_ENV = array_merge($envs, $_ENV);
return [
'paths' => [
'migrations' => './resources/db/migrations',
'seeds' => './resources/db/seeds',
],
'environments' => [
'default_migration_table' => "ut_migrations",
'default_environment' => 'development',
'development' => [
'adapter' => $_ENV['DB_ADAPTER'] ?? 'mysql',
'host' => $_ENV['DB_HOST'] ?? '127.0.0.1',
'name' => $_ENV['DB_NAME'] ?? 'phalcon',
'user' => $_ENV['DB_USER'] ?? 'root',
'pass' => $_ENV['DB_PASS'] ?? 'secret',
'port' => $_ENV['DB_PORT'] ?? 3306,
'charset' => $_ENV['DB_CHARSET'] ?? 'utf8',
],
],
'version_order' => 'creation',
];