Doctrine tricks

php bin/console doctrine:schema:update –force

Error 

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

configpackagesdoctrine.yaml  içinde bunu

charset: utf8mb4
collate: utf8mb4_unicode_ci

bununla değiştir.

           charset: utf8
           collate: utf8_unicode_ci


Scroll to Top