Skip to content

Commit

Permalink
improve: compatible lower mysql version
Browse files Browse the repository at this point in the history
  • Loading branch information
eddy8 committed Jan 16, 2021
1 parent 91d681c commit ff92c23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
});
Expand Down

0 comments on commit ff92c23

Please sign in to comment.