diff --git a/database/migrations/2020_03_09_143043_add_route_params_to_menus_table.php b/database/migrations/2020_03_09_143043_add_route_params_to_menus_table.php index 158a15c..1540874 100644 --- a/database/migrations/2020_03_09_143043_add_route_params_to_menus_table.php +++ b/database/migrations/2020_03_09_143043_add_route_params_to_menus_table.php @@ -14,7 +14,7 @@ class AddRouteParamsToMenusTable extends Migration public function up() { Schema::table('menus', function (Blueprint $table) { - $table->string('route_params')->default('')->comment('路由参数'); + $table->string('route_params', 91)->default('')->comment('路由参数'); $table->dropUnique('menus_route_unique'); $table->unique(['route', 'route_params']); });