ufutx.dma/database/migrations/2024_01_03_101159_change_table_supplier.php
2026-03-04 14:42:40 +08:00

35 lines
833 B
PHP

<?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('supplier', function (Blueprint $table) {
$table->string('address')->nullable()->comment('省市区')->after('website');
$table->string('detail_address')->nullable()->comment('详细地址')->after('website');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('supplier', function (Blueprint $table) {
$table->dropColumn('address');
$table->dropColumn('detail_address');
});
}
};