/**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('events', function ($t) {
         $t->text('slug')->after('title');
         $t->unique('slug');
         $t->dropColumn('location');
         $t->integer('location_id')->change();
         $t->dropTimestamps();
         $t->renameColumn('hidden', 'published');
     });
     $talk = \App\Models\EventType::where('name', 'single talk')->first();
     $talk->name = 'talk';
     $talk->save();
 }