You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
735 B
29 lines
735 B
<?php |
|
|
|
use SIU\Chulupi\kernel; |
|
use siu\bootstrap; |
|
use siu\preinscripcion; |
|
|
|
// Ver: https://phinx.readthedocs.io/en/latest/configuration.html |
|
require_once(realpath(dirname(__FILE__).'/src/siu/bootstrap.php')); |
|
$_SERVER['PERFIL'] = 'consola'; |
|
bootstrap::cargar(true); |
|
|
|
$acceso = current(kernel::proyecto()->get_accesos_bd()); |
|
|
|
return |
|
[ |
|
'paths' => [ |
|
'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations', |
|
'seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds' |
|
], |
|
|
|
'environments' => [ |
|
'default_database' => 'development', |
|
'development' => [ |
|
'name' => $acceso['dbname'], |
|
'connection' => preinscripcion::admin()->get_db()->get_pdo() |
|
] |
|
], |
|
'version_order' => 'creation' |
|
]; |