public function migrate(array $filters)
    {
        $this->filters =$filters;
        foreach ($this->academicPeriods() as $period) {
            $this->period = $period->id;
            $this->setDestinationConnectionByPeriod($this->period);
            $this->switchToDestinationConnection();
            $this->output->info('Migrating period: ' . $period->name . '(' .  $period->id . ')');
            $this->migrateTeachers();
            $this->migrateLocations();
            $this->migrateCurriculum();
            $this->migrateClassrooms();
            $this->migrateEnrollments();
            $this->seedDays();
            $this->seedShifts();
            $this->migrateTimeslots();
            $this->migrateLessons();
       }
    }
public function migrate(array $filters)
    {
        $this->filters =$filters;
        foreach ($this->academicPeriods() as $period) {
            $this->period = $period->id;
            $this->setDestinationConnectionByPeriod($this->period);
            $this->switchToDestinationConnection();
            $this->output->info('Migrating period: ' . $period->name . '(' .  $period->id . ')');
            $this->migrateTeachers();
            $this->migrateLocations();
            $this->migrateCurriculum();
            $this->migrateClassrooms();
            $this->migrateEnrollments();
            $this->seedDays();
            $this->seedShifts();
            $this->migrateTimeslots();
            $this->migrateLessons();
       }
    }
public function migrate ( array $ filters ) { $ this -> filters = $ filters ; foreach ( $ this -> academicPeriods ( ) as $ period ) { $ this -> period = $ period -> id ; $ this -> setDestinationConnectionByPeriod ( $ this -> period ) ; $ this -> switchToDestinationConnection ( ) ; $ this -> output -> info ( 'Migrating period: ' . $ period -> name . '(' . $ period -> id . ')' ) ; $ this -> migrateTeachers ( ) ; $ this -> migrateLocations ( ) ; $ this -> migrateCurriculum ( ) ; $ this -> migrateClassrooms ( ) ; $ this -> migrateEnrollments ( ) ; $ this -> seedDays ( ) ; $ this -> seedShifts ( ) ; $ this -> migrateTimeslots ( ) ; $ this -> migrateLessons ( ) ; } }
Migrate old database to new database.

@param array $filters
@return void
Migrate old database to new database .