Open selay opened 6 years ago
I came across this today, and fixed it with the following yml config:
---
name: utf8mb4_sizing
---
SilverStripe\RedirectedURLs\Model\RedirectedURL:
db:
FromBase: 'Varchar(150)'
FromQuerystring: 'Varchar(100)'
Hope this helps anyone Googling the issue.
The module breaks Silverstripe 4+ site if you are using utf8mb4 unicode which requires full 4 bytes. Although not tested (I simply removed this module and can have a look later), I guess the issue is caused by
as it uses combined indexing.
The reason why it is a bug because Silverstripe itself supports full 4 bytes, and ideally the module would at least support the same requirements. SiteTree also uses Varchar(255) for URLSegment but that is fine.
Errors:
To replicate the issue, place this in your app.yml or mysite.yml and run dev build