source/Setup/Controller.php
private function ensureDatabasePresent($database, $dbName)
    {
        try {
            // if database is not there, try to create it
            $database->createDb($dbName);
        } catch (Exception $exception) {
            $setup = $this->getSetupInstance();
            $setup->setNextStep($setup->getStep('STEP_DB_INFO'));
            $this->getView()->setMessage($exception->getMessage());

            throw new SetupControllerExitException();
        }
        $this->getView()->setViewParam("blCreated", 1);
    }
private function ensureDatabasePresent($database, $dbName)
    {
        try {
            // if database is not there, try to create it
            $database->createDb($dbName);
        } catch (Exception $exception) {
            $setup = $this->getSetupInstance();
            $setup->setNextStep($setup->getStep('STEP_DB_INFO'));
            $this->getView()->setMessage($exception->getMessage());

            throw new SetupControllerExitException();
        }
        $this->getView()->setViewParam("blCreated", 1);
    }
private function ensureDatabasePresent ( $ database , $ dbName ) { try { // if database is not there, try to create it $ database -> createDb ( $ dbName ) ; } catch ( Exception $ exception ) { $ setup = $ this -> getSetupInstance ( ) ; $ setup -> setNextStep ( $ setup -> getStep ( 'STEP_DB_INFO' ) ) ; $ this -> getView ( ) -> setMessage ( $ exception -> getMessage ( ) ) ; throw new SetupControllerExitException ( ) ; } $ this -> getView ( ) -> setViewParam ( "blCreated" , 1 ) ; }
Ensure the database is available

@throws \OxidEsales\EshopCommunity\Setup\Exception\SetupControllerExitException

@param \OxidEsales\EshopCommunity\Setup\Database $database
@param string                                    $dbName

@throws SetupControllerExitException
Ensure the database is available