the browser-facing portion of osu!
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add migration for osu_difficulty_attribs table

+50
+50
database/migrations/2022_09_21_052117_create_osu_difficulty_attribs.php
··· 1 + <?php 2 + 3 + // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4 + // See the LICENCE file in the repository root for full licence text. 5 + 6 + use Illuminate\Database\Migrations\Migration; 7 + use Illuminate\Database\Schema\Blueprint; 8 + use Illuminate\Support\Facades\Schema; 9 + 10 + class CreateOsuDifficultyAttribs extends Migration 11 + { 12 + /** 13 + * Run the migrations. 14 + * 15 + * @return void 16 + */ 17 + public function up() 18 + { 19 + Schema::create('osu_difficulty_attribs', function (Blueprint $table) { 20 + $table->unsignedSmallInteger('attrib_id'); 21 + $table->string('name', 256)->default(''); 22 + $table->boolean('visible')->default(0); 23 + $table->primary('attrib_id'); 24 + }); 25 + 26 + DB::table('osu_difficulty_attribs')->insert([ 27 + ['attrib_id' => 1, 'name' => 'Aim', 'visible' => 1], 28 + ['attrib_id' => 3, 'name' => 'Speed', 'visible' => 1], 29 + ['attrib_id' => 5, 'name' => 'OD', 'visible' => 0], 30 + ['attrib_id' => 7, 'name' => 'AR', 'visible' => 0], 31 + ['attrib_id' => 9, 'name' => 'Max combo', 'visible' => 0], 32 + ['attrib_id' => 11, 'name' => 'Strain', 'visible' => 1], 33 + ['attrib_id' => 13, 'name' => 'Hit window 300', 'visible' => 0], 34 + ['attrib_id' => 15, 'name' => 'Score multiplier', 'visible' => 0], 35 + ['attrib_id' => 17, 'name' => 'Flashlight', 'visible' => 0], 36 + ['attrib_id' => 19, 'name' => 'Slider factor', 'visible' => 0], 37 + ['attrib_id' => 21, 'name' => 'Speed note count', 'visible' => 0], 38 + ]); 39 + } 40 + 41 + /** 42 + * Reverse the migrations. 43 + * 44 + * @return void 45 + */ 46 + public function down() 47 + { 48 + Schema::dropIfExists('osu_difficulty_attribs'); 49 + } 50 + }