How to writing a plugin to change login detail

Sorry for reviving this old topic…
I still have issues upon registration with Shibboleth, because some e-mail addresses exceed the character limit of the username column in the ojs database. The obvious fix for me would be to change that limit. Where can I set this in the code, so that the database is created with the correct limits already upon installation?
Willing to help out here if my time allows as I’m currently working a lot with the Shibboleth plugin

Related to my post here: Fatal Error on Shibboleth Registration
And Github issue: Registration fails when email is assigned as username · Issue #21 · pkp/shibboleth · GitHub