Skip to content

Instantly share code, notes, and snippets.

@andriichuk
Created November 30, 2019 22:08
Show Gist options
  • Save andriichuk/f84b666d7d9969f25c062a46098ec894 to your computer and use it in GitHub Desktop.
Save andriichuk/f84b666d7d9969f25c062a46098ec894 to your computer and use it in GitHub Desktop.
<?php
use Dotenv\Dotenv;
require_once 'vendor/autoload.php';
(Dotenv::create(__DIR__))->load();
return [
'paths' => [
'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations',
'seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds',
],
'environments' => [
'default_database' => 'common',
'default_migration_table' => 'phinxlog',
'common' => [
'adapter' => env('DB_ADAPTER'),
'host' => env('DB_HOST'),
'name' => env('DB_NAME'),
'user' => env('DB_USERNAME'),
'pass' => env('DB_PASSWORD'),
'port' => env('DB_PORT'),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
],
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment