Fix varchar(191) by replacing with 255 #27

Closed
opened 2026-02-05 17:03:41 +03:00 by OVERLORD · 1 comment
Owner
Originally created by @lancepioch on GitHub (Apr 21, 2024). https://www.grouparoo.com/blog/varchar-191 https://stackoverflow.com/questions/43832166/laravel-5-4-specified-key-was-too-long-why-the-number-191
OVERLORD added the 🟡 medium label 2026-02-05 17:03:41 +03:00
Author
Owner

@trenutoo commented on GitHub (Apr 21, 2024):

https://laravel.com/docs/5.4/migrations#creating-indexes

The default was set to 191 55ae9138f6 and never updated/removed after minimum MySQL version was updated

https://github.com/pelican-dev/panel/blob/main/app/Providers/AppServiceProvider.php#L28

@trenutoo commented on GitHub (Apr 21, 2024): https://laravel.com/docs/5.4/migrations#creating-indexes The default was set to 191 https://github.com/pelican-dev/panel/commit/55ae9138f6490edf20b699f8dea2bcaa432bc27f and never updated/removed after minimum MySQL version was updated https://github.com/pelican-dev/panel/blob/main/app/Providers/AppServiceProvider.php#L28
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#27