File: /www/wwwroot/my.esfyn.top/database/migrations/2023_10_08_222142_alter_my_api_add_handle.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterMyApiAddHandle extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('my_api', function (Blueprint $table) {
$table->string('handle')->default("")->comment('自定义操作');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('my_api', function (Blueprint $table) {
$table->dropColumn('handle');
});
}
}