the browser-facing portion of osu!
0
fork

Configure Feed

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

Remove unused soft delete for scores

nanaya a2ba01dd 659b371d

+37 -3
-3
app/Models/Solo/Score.php
··· 10 10 use App\Models\Model; 11 11 use App\Models\Score as LegacyScore; 12 12 use App\Models\User; 13 - use Illuminate\Database\Eloquent\SoftDeletes; 14 13 15 14 /** 16 15 * @property int $beatmap_id ··· 26 25 */ 27 26 class Score extends Model 28 27 { 29 - use SoftDeletes; 30 - 31 28 protected $table = 'solo_scores'; 32 29 protected $casts = [ 33 30 'preserve' => 'boolean',
+37
database/migrations/2022_08_05_103407_remove_deleted_at_from_solo_scores.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 + declare(strict_types=1); 7 + 8 + use Illuminate\Database\Migrations\Migration; 9 + use Illuminate\Database\Schema\Blueprint; 10 + use Illuminate\Support\Facades\Schema; 11 + 12 + return new class extends Migration 13 + { 14 + /** 15 + * Run the migrations. 16 + * 17 + * @return void 18 + */ 19 + public function up() 20 + { 21 + Schema::table('solo_scores', function (Blueprint $table) { 22 + $table->dropColumn('deleted_at'); 23 + }); 24 + } 25 + 26 + /** 27 + * Reverse the migrations. 28 + * 29 + * @return void 30 + */ 31 + public function down() 32 + { 33 + Schema::table('solo_scores', function (Blueprint $table) { 34 + $table->timestampTz('deleted_at')->nullable()->after('updated_at'); 35 + }); 36 + } 37 + };