mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Fix upgrade
This commit is contained in:
@@ -139,9 +139,11 @@ class patch_3807 implements patchInterface
|
|||||||
|
|
||||||
private function migrateConnexions(array &$conf)
|
private function migrateConnexions(array &$conf)
|
||||||
{
|
{
|
||||||
$data = $this->yaml->parse($this->connexionsYaml);
|
if (is_file($this->connexionsYaml)) {
|
||||||
|
$data = $this->yaml->parse($this->connexionsYaml);
|
||||||
|
|
||||||
$conf['main']['database'] = $data['main_connexion'];
|
$conf['main']['database'] = $data['main_connexion'];
|
||||||
$conf['main']['database-test'] = $data['test_connexion'];
|
$conf['main']['database-test'] = $data['test_connexion'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2,11 +2,11 @@ main:
|
|||||||
servername: 'http://local.phrasea/'
|
servername: 'http://local.phrasea/'
|
||||||
maintenance: false
|
maintenance: false
|
||||||
database:
|
database:
|
||||||
host: 127.0.0.1
|
host: 'sql-host'
|
||||||
port: '3306'
|
port: '3306'
|
||||||
user: root
|
user: 'sql-user'
|
||||||
password: ''
|
password: 'sql-password'
|
||||||
dbname: ab_test
|
dbname: ab_phraseanet
|
||||||
driver: pdo_mysql
|
driver: pdo_mysql
|
||||||
charset: UTF8
|
charset: UTF8
|
||||||
database-test:
|
database-test:
|
||||||
|
Reference in New Issue
Block a user