解决方法
使用
Raw Queries:
/** * Make changes to the database. * * @return void */ public function up() { DB::query('alter table MYTABLE modify MYCOLUMN varchar(new-length)'); } /** * Revert the changes to the database. * * @return void */ public function down() { DB::query('alter table MYTABLE modify MYCOLUMN varchar(old-length)'); }@H_301_9@替换MYTABLE,MYCOLUMN,新长度和旧长度.