Thursday, March 9, 2017

Laravel migrate rollback error, Data too long for column

I am using Laravel 5.3, and the migration is really awesome to control db development.

My question is when I change the column type from string to text, everything is working well. But after user save data which length longer than 255(varchar). Then my migrate can't rollback. It will say Data too long for my column. Would like to ask everyone how to solve this problem?



via Yang Dylan

Advertisement