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:
Martin Konecny 2011-11-29 15:01:08 -05:00
parent bd8df47ff6
commit d4c701dd6a
2 changed files with 16 additions and 6 deletions

View File

@ -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',
); );

View File

@ -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;