/**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::table('correlations', function (Blueprint $table) {
         //
     });
     $entries = Correlation::get();
     foreach ($entries as $entry) {
         if ($entry->unittype === 'campus') {
             $this->seedCampus($entry);
         } else {
             if ($entry->unittype === 'college') {
                 $this->seedCollege($entry);
             } else {
                 if ($entry->unittype === 'department') {
                     $this->seedDepartment($entry);
                 } else {
                     if ($entry->unittype === 'program') {
                         $this->seedProgram($entry);
                     } else {
                     }
                 }
             }
         }
     }
 }
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::table('correlations', function (Blueprint $table) {
         $table->float('dropouts')->nullable();
         $table->string('unittype')->nullable();
         $table->integer('programid')->nullable();
         $table->integer('departmentid')->nullable();
         $table->integer('collegeid')->nullable();
     });
     $entries = Correlation::get();
     foreach ($entries as $entry) {
         $entry->unittype = 'campus';
         $entry->save();
     }
 }