<?php

return
[
    'paths' => [
        'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations',
        'seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds'
    ],
    'environments' => [
        'default_migration_table' => 'phinxlog',
        'default_database' => 'development',
        'production' => [
            'adapter' => 'mysql',
            'host' => $_ENV['PROD_DB_HOST'],
            'name' => $_ENV['PROD_DB_NAME'],
            'user' => $_ENV['PROD_DB_USER'],
            'pass' => $_ENV['PROD_DB_PASS'],
            'port' => $_ENV['PROD_DB_PORT'],
            'charset' => 'utf8',
        ],
        'development' => [
            'adapter' => 'mysql',
            'host' => $_ENV['DEV_DB_HOST'],
            'name' => $_ENV['DEV_DB_NAME'],
            'user' => $_ENV['DEV_DB_USER'],
            'pass' => $_ENV['DEV_DB_PASS'],
            'port' => $_ENV['DEV_DB_PORT'],
            'charset' => 'utf8',
        ],
        'testing' => [
            'adapter' => 'mysql',
            'host' => $_ENV['TEST_DB_HOST'],
            'name' => $_ENV['TEST_DB_NAME'],
            'user' => $_ENV['TEST_DB_USER'],
            'pass' => $_ENV['TEST_DB_PASS'],
            'port' => $_ENV['TEST_DB_PORT'],
            'charset' => 'utf8',
        ]
    ],
    'version_order' => 'creation'
];