CC-3072: Test upgrade to 2.0.0 from 1.8.0 and up (including minor versions, except 1.9.1)
This commit is contained in:
parent
bd8df47ff6
commit
d4c701dd6a
|
@ -1,9 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$ini = parse_ini_file('/etc/airtime/airtime.conf', true);
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'dbname' => 'airtime',
|
'dbname' => $ini['database']['dbname'],
|
||||||
'user' => 'airtime',
|
'user' => $ini['database']['dbuser'],
|
||||||
'password' => 'airtime',
|
'password' => $ini['database']['dbpass'],
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'driver' => 'pdo_pgsql',
|
'driver' => 'pdo_pgsql',
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
// This file generated by Propel 1.5.2 convert-conf target
|
// This file generated by Propel 1.5.2 convert-conf target - with modifications by Martin
|
||||||
// from XML runtime conf file /home/naomiaro/dev-campcaster/campcaster/build/runtime-conf.xml
|
// from XML runtime conf file /home/naomiaro/dev-campcaster/campcaster/build/runtime-conf.xml
|
||||||
|
|
||||||
|
$ini = parse_ini_file('/etc/airtime/airtime.conf', true);
|
||||||
|
|
||||||
|
$dbhost = $ini['database']['host'];
|
||||||
|
$dbname = $ini['database']['dbname'];
|
||||||
|
$dbuser = $ini['database']['dbuser'];
|
||||||
|
$dbpass = $ini['database']['dbpass'];
|
||||||
|
|
||||||
$conf = array (
|
$conf = array (
|
||||||
'datasources' =>
|
'datasources' =>
|
||||||
array (
|
array (
|
||||||
|
@ -9,7 +17,7 @@ $conf = array (
|
||||||
'adapter' => 'pgsql',
|
'adapter' => 'pgsql',
|
||||||
'connection' =>
|
'connection' =>
|
||||||
array (
|
array (
|
||||||
'dsn' => 'pgsql:host=localhost;port=5432;dbname=airtime;user=airtime;password=airtime',
|
'dsn' => "pgsql:host=$dbhost;port=5432;dbname=$dbname;user=$dbuser;password=$dbpass",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'default' => 'airtime',
|
'default' => 'airtime',
|
||||||
|
@ -17,4 +25,4 @@ $conf = array (
|
||||||
'generator_version' => '1.5.2',
|
'generator_version' => '1.5.2',
|
||||||
);
|
);
|
||||||
$conf['classmap'] = include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classmap-airtime-conf.php');
|
$conf['classmap'] = include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classmap-airtime-conf.php');
|
||||||
return $conf;
|
return $conf;
|
||||||
|
|
Loading…
Reference in New Issue