[eluser]toopay[/eluser]
[quote author="newsmuncher" date="1303473682"]can you jump straight from 1.7.3 to 2.0.2?[/quote]
Code:
public function i_think($upgrade,$your_apps)
{
if($your_apps = 'New Apps')
{
return 'Of course, there would be ok';
}
try
{
$this->upgrade_ci->execute(array(
'app_state' => 'Existed App',
'old_ci_version' => '1.7.3',
'new_ci_version' => '2.0.2',
'action' => $upgrade,
));
}
catch (Exception $e)
{
switch($e->getMessage())
{
case 'App is already worked fine, and it has too many custom library which i create my self, upgrade probably will break that.' :
$res = 'Think again! Why you need to upgrade?';
break;
case 'App is simple, i did use some library but the developer seems actively update it' :
$res = 'Need some effort, but its ok. Its worthed';
break;
default :
$res = 'Its fine';
}
}
return $res;
}