This commit is contained in:
Hankin 2026-04-17 17:34:24 +08:00
parent a88b7dc827
commit 0221c2ce70

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class TableSubRanksAddItemId extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('sub_ranks', function (Blueprint $table) {
$table->string("item_id", 50)->nullable()->comment("道具ID")->after("rank_id");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('sub_ranks', function (Blueprint $table) {
$table->dropColumn(["item_id"]);
});
}
}