timestamp('occurred_at')->nullable()->after('scheduled_at'); }); // We need a better way of handling data migrations... $system = app(System::class); $prefix = $system->getTablePrefix(); DB::update("UPDATE {$prefix}incidents SET occurred_at = created_at"); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('incidents', function (Blueprint $table) { $table->dropColumn('occurred_at'); }); } }