original_string: 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();
         }
      }
code: 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();
         }
      }
code_tokens: 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 ( ) ; } }
docstring: Migrate old database to new database.
  
  @param array $filters
  @return void
docstring_tokens: Migrate old database to new database .