csouls opened a new pull request, #1463: URL: https://github.com/apache/answer/pull/1463
## Summary Expand the `avatar` column length from `VARCHAR(1024)` to `VARCHAR(2048)` to fix login failures when using external OAuth providers. ## Problem When users log in via the [connector-google](https://github.com/apache/answer-plugins/tree/main/connector-google) plugin, the Google profile picture URL can exceed 1024 characters, causing a database error: ``` Error 1406 (22001): Data too long for column 'avatar' at row 1 ``` ## Solution - Expand `avatar` column from `VARCHAR(1024)` to `VARCHAR(2048)` - Add migration (v1.7.1) to update existing databases ## Notes While URLs can technically exceed 2048 characters per specification, 2048 is the practical limit supported by most browsers and services. URLs longer than 2048 characters are extremely rare in real-world usage. ## Changes - `internal/entity/user_entity.go`: Update avatar column definition - `internal/migrations/v29.go`: Add migration for existing databases - `internal/migrations/migrations.go`: Register new migration -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
