diff --git a/database/migrations/2026_04_17_160848_table_sub_ranks_add_item_id.php b/database/migrations/2026_04_17_160848_table_sub_ranks_add_item_id.php new file mode 100644 index 0000000..60876cb --- /dev/null +++ b/database/migrations/2026_04_17_160848_table_sub_ranks_add_item_id.php @@ -0,0 +1,32 @@ +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"]); + }); + } +}