dimanche 25 octobre 2020

Migration Error: Syntax error or access violation: 1071 Specified key was too long in Laravel

I'm working with Laravel 5.6 and Mysql Version 5.7.3. Everything is working fine in Laravel Vagrant box. But when I deployed my project in VPS hosting with CentOS and run the command "php artisan migrate:refresh" it's raised error like "SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: a lter table products add unique products_bar_code_unique(bar_code))". How could I solve this issue? Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire