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)
|
||||
{
|
||||
$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-test'] = $data['test_connexion'];
|
||||
$conf['main']['database'] = $data['main_connexion'];
|
||||
$conf['main']['database-test'] = $data['test_connexion'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -2,11 +2,11 @@ main:
|
||||
servername: 'http://local.phrasea/'
|
||||
maintenance: false
|
||||
database:
|
||||
host: 127.0.0.1
|
||||
host: 'sql-host'
|
||||
port: '3306'
|
||||
user: root
|
||||
password: ''
|
||||
dbname: ab_test
|
||||
user: 'sql-user'
|
||||
password: 'sql-password'
|
||||
dbname: ab_phraseanet
|
||||
driver: pdo_mysql
|
||||
charset: UTF8
|
||||
database-test:
|
||||
|
Reference in New Issue
Block a user