From 0221c2ce70f9a1bf8ea11ed0b94b81ea1b6d34e0 Mon Sep 17 00:00:00 2001 From: Hankin Date: Fri, 17 Apr 2026 17:34:24 +0800 Subject: [PATCH] test --- ..._17_160848_table_sub_ranks_add_item_id.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2026_04_17_160848_table_sub_ranks_add_item_id.php 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"]); + }); + } +}