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.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3otSHRQ
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

I am unable to figure out how to create payment collection request, after a form has been submitted in laravel

laravel, mysql transaction not working after failed one time