From f3f5c94212f691a8eb1b6c9d45b12d37691b1834 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Thu, 15 Jan 2026 13:58:06 +0800 Subject: [PATCH] update --- ...add_company_id_to_stock_companys_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2026_01_15_135416_add_company_id_to_stock_companys_table.php diff --git a/database/migrations/2026_01_15_135416_add_company_id_to_stock_companys_table.php b/database/migrations/2026_01_15_135416_add_company_id_to_stock_companys_table.php new file mode 100644 index 0000000..f226c21 --- /dev/null +++ b/database/migrations/2026_01_15_135416_add_company_id_to_stock_companys_table.php @@ -0,0 +1,32 @@ +unsignedBigInteger('company_id')->nullable()->after('company_name')->comment('公司ID'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('stock_companys', function (Blueprint $table) { + $table->dropColumn('company_id'); + }); + } +};