Fixed max execution time problem at installer on slow databases.

This commit is contained in:
Lucas Bartholemy 2014-08-15 18:46:27 +02:00
parent ea6973469e
commit 9e6acf1ccc

View File

@ -160,6 +160,9 @@ class SetupController extends Controller
// Flush Caches
Yii::app()->cache->flush();
// Disable max execution time to avoid timeouts during database installation
@ini_set('max_execution_time', 0);
// Migrate Up Database
Yii::import('application.commands.shell.ZMigrateCommand');
ZMigrateCommand::AutoMigrate();