up()
up()
Run the migrations.
<?php
use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;
class ChangeRouterLength extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('system_oper_log', function (Blueprint $table) {
$table->string('router', 500)->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('system_oper_log', function (Blueprint $table) {
$table->string('router', 100)->change();
});
}
}