Setup/Install/DataMigrationHelper.php
public function run()
    {
        // truncate any tables which are about to be updated
        $this->emptyTables();

        // loop through types and execute
        foreach ($this->dataMigrationTypeProvider->getTypes() as $dataMigration) {
            /** @var AbstractDataMigration $dataMigration */
            $dataMigration->execute();
            $this->logActions($dataMigration);
        }

        /**
         * Save config value
         */
        $this->saveAllOrderStatusesAsString();
        $this->saveAllProductTypesAsString();
        $this->saveAllProductVisibilitiesAsString();
        $this->generateAndSaveCode();
    }
public function run()
    {
        // truncate any tables which are about to be updated
        $this->emptyTables();

        // loop through types and execute
        foreach ($this->dataMigrationTypeProvider->getTypes() as $dataMigration) {
            /** @var AbstractDataMigration $dataMigration */
            $dataMigration->execute();
            $this->logActions($dataMigration);
        }

        /**
         * Save config value
         */
        $this->saveAllOrderStatusesAsString();
        $this->saveAllProductTypesAsString();
        $this->saveAllProductVisibilitiesAsString();
        $this->generateAndSaveCode();
    }
public function run ( ) { // truncate any tables which are about to be updated $ this -> emptyTables ( ) ; // loop through types and execute foreach ( $ this -> dataMigrationTypeProvider -> getTypes ( ) as $ dataMigration ) { /** @var AbstractDataMigration $dataMigration */ $ dataMigration -> execute ( ) ; $ this -> logActions ( $ dataMigration ) ; } /**
         * Save config value
         */ $ this -> saveAllOrderStatusesAsString ( ) ; $ this -> saveAllProductTypesAsString ( ) ; $ this -> saveAllProductVisibilitiesAsString ( ) ; $ this -> generateAndSaveCode ( ) ; }
Run all install methods
Run all install methods