medal add priority

This commit is contained in:
xiaomlove
2025-04-21 11:52:05 +07:00
parent d990723ebc
commit e3673ef3da
4 changed files with 48 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('medals', function (Blueprint $table) {
$table->integer("priority")->default(0);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('medals', function (Blueprint $table) {
$table->dropColumn("priority");
});
}
};