补充迁移文件

dev
vine_liutk 2023-06-08 10:26:34 +08:00
parent e101ec6ebb
commit 472fa2aafe
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<?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('agricultural_bases', function (Blueprint $table) {
//
$table->string('blank_url')->nullable()->comment('打开链接');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('agricultural_bases', function (Blueprint $table) {
//
$table->dropColumn('blank_url');
});
}
};