master
cody 3 months ago
parent 25b39ef064
commit f3f5c94212

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('stock_companys', function (Blueprint $table) {
$table->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');
});
}
};
Loading…
Cancel
Save