. */ use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class UpdateActivityDescriptions extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::table('activity_types')->where('activity_type', 1)->update(['description' => 'Updates from the Pony.fm team']); DB::table('activity_types')->where('activity_type', 2)->update(['description' => 'Someone you follow publishes a track']); DB::table('activity_types')->where('activity_type', 3)->update(['description' => 'Someone you follow publishes an album']); DB::table('activity_types')->where('activity_type', 4)->update(['description' => 'Someone you follow creates a playlist']); DB::table('activity_types')->where('activity_type', 5)->update(['description' => 'You get a new follower']); DB::table('activity_types')->where('activity_type', 6)->update(['description' => 'Someone leaves you a comment']); DB::table('activity_types')->where('activity_type', 7)->update(['description' => 'Something of yours is favourited']); } /** * Reverse the migrations. * * @return void */ public function down() { DB::table('activity_types')->where('activity_type', 1)->update(['description' => 'news']); DB::table('activity_types')->where('activity_type', 2)->update(['description' => 'followee published a track']); DB::table('activity_types')->where('activity_type', 3)->update(['description' => 'followee published an album']); DB::table('activity_types')->where('activity_type', 4)->update(['description' => 'followee published a playlist']); DB::table('activity_types')->where('activity_type', 5)->update(['description' => 'new follower']); DB::table('activity_types')->where('activity_type', 6)->update(['description' => 'new comment']); DB::table('activity_types')->where('activity_type', 7)->update(['description' => 'new favourite']); } }