maishivamhoo123 opened a new pull request, #1499:
URL: https://github.com/apache/answer/pull/1499

   ### Type of change
   - [x] Bug fix
   #1498
   
   ### Description
   This PR changes the `avatar` column type from `VARCHAR` to `TEXT` in the 
`user` table.
   
   **Reason:**
   Some Google profile image URLs exceed the previous character limit 
(1024/2048 chars), causing 500 errors during login or registration. Switching 
to `TEXT` ensures support for long URLs (up to 65kb).
   
   ### Changes
   1. **Entity:** Updated `User` struct in `internal/entity/user_entity.go` to 
use `TEXT` for the avatar field.
   2. **Migration:** Added `v1.8.2` migration (`internal/migrations/v32.go`) to 
alter the database column automatically.
   
   ### Verification
   - Tested locally with MySQL.
   - Verified that inserting a string longer than 2048 characters into the 
`avatar` column now succeeds without error.


-- 
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]

Reply via email to