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'); + }); + } +};