library/Services/ShopInstaller/ShopInstaller.php
public function setupDatabase()
    {
        $dbHandler = $this->getDbHandler();

        $dbHandler->getDbConnection()->exec('drop database `' . $dbHandler->getDbName() . '`');
        $dbHandler->getDbConnection()->exec('create database `' . $dbHandler->getDbName() . '` collate ' . $dbHandler->getCharsetMode() . '_general_ci');

        $baseEditionPathProvider = new EditionPathProvider(new EditionRootPathProvider(new EditionSelector(EditionSelector::COMMUNITY)));

        $dbHandler->import($baseEditionPathProvider->getDatabaseSqlDirectory() . "/database_schema.sql");
        $dbHandler->import($baseEditionPathProvider->getDatabaseSqlDirectory() . "/initial_data.sql");

        $output = new ConsoleOutput();
        $output->setVerbosity(ConsoleOutputInterface::VERBOSITY_QUIET);

        $utilities = new Utilities();
        $utilities->executeExternalDatabaseMigrationCommand($output);

        $this->callShellDbViewsRegenerate();
    }
public function setupDatabase()
    {
        $dbHandler = $this->getDbHandler();

        $dbHandler->getDbConnection()->exec('drop database `' . $dbHandler->getDbName() . '`');
        $dbHandler->getDbConnection()->exec('create database `' . $dbHandler->getDbName() . '` collate ' . $dbHandler->getCharsetMode() . '_general_ci');

        $baseEditionPathProvider = new EditionPathProvider(new EditionRootPathProvider(new EditionSelector(EditionSelector::COMMUNITY)));

        $dbHandler->import($baseEditionPathProvider->getDatabaseSqlDirectory() . "/database_schema.sql");
        $dbHandler->import($baseEditionPathProvider->getDatabaseSqlDirectory() . "/initial_data.sql");

        $output = new ConsoleOutput();
        $output->setVerbosity(ConsoleOutputInterface::VERBOSITY_QUIET);

        $utilities = new Utilities();
        $utilities->executeExternalDatabaseMigrationCommand($output);

        $this->callShellDbViewsRegenerate();
    }
public function setupDatabase ( ) { $ dbHandler = $ this -> getDbHandler ( ) ; $ dbHandler -> getDbConnection ( ) -> exec ( 'drop database `' . $ dbHandler -> getDbName ( ) . '`' ) ; $ dbHandler -> getDbConnection ( ) -> exec ( 'create database `' . $ dbHandler -> getDbName ( ) . '` collate ' . $ dbHandler -> getCharsetMode ( ) . '_general_ci' ) ; $ baseEditionPathProvider = new EditionPathProvider ( new EditionRootPathProvider ( new EditionSelector ( EditionSelector :: COMMUNITY ) ) ) ; $ dbHandler -> import ( $ baseEditionPathProvider -> getDatabaseSqlDirectory ( ) . "/database_schema.sql" ) ; $ dbHandler -> import ( $ baseEditionPathProvider -> getDatabaseSqlDirectory ( ) . "/initial_data.sql" ) ; $ output = new ConsoleOutput ( ) ; $ output -> setVerbosity ( ConsoleOutputInterface :: VERBOSITY_QUIET ) ; $ utilities = new Utilities ( ) ; $ utilities -> executeExternalDatabaseMigrationCommand ( $ output ) ; $ this -> callShellDbViewsRegenerate ( ) ; }
Sets up database.
Sets up database .