laravel数据库migrate后修改数据表字段信息

composer require doctrine/dbal

  

php artisan make:migration alter_tablename_table --table=tablename

  

Schema::table('users', function (Blueprint $table) { $table->string('name', 50)->nullable()->change(); })

  

php artisan migrate





posted @ 2019-07-08 17:20  HelpYourself!  阅读(1833)  评论(0编辑  收藏  举报