toutpratique/migration.php

30 lines
892 B
PHP
Raw Normal View History

2015-10-16 15:09:01 +02:00
<?php
# WINDOWS : vendor/bin/phinx.bat migrate -e local --configuration migration.php
# LINUX A TEST php vendor/bin/phinx migrate -e local --configuration migration.php
require 'config/settings.inc.php';
return array(
"paths" => array(
"migrations" => "migrations"
),
"environments" => array(
"default_migration_table" => "phinxlog",
"default_database" => "toutpratique",
"local" => array(
"adapter" => "mysql",
"host" => _DB_SERVER_,
"name" => _DB_NAME_,
"user" => _DB_USER_,
"pass" => _DB_PASSWD_,
"port" => 3306
2015-10-19 17:58:23 +02:00
),
"dev" => array(
"adapter" => "mysql",
"host" => _DB_SERVER_,
"name" => 'toutpratique_dev',
"user" => _DB_USER_,
"pass" => _DB_PASSWD_,
"port" => 3306
2015-10-16 15:09:01 +02:00
)
)
);