Skip to content

refactor: use text for name column #570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025
Merged

Conversation

reidsolon
Copy link
Contributor

This MR updates the name column in the personal_access_tokens table from string to text.

The current string limit (255 characters) causes SQL truncation errors when storing long user agent strings, especially from in-app browsers like Instagram.

Example error:

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name'

Example user agent:

Mozilla/5.0 (Linux; Android 14; SM-0000E Build/UP1A.000005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.0004.45 Mobile Safari/537.36 Instagram 000.0.0.00.00 Android (34/14; 450dpi; 1080x2116; samsung; SM-0006E; a55x; s5e0000; en_GB; 746325133

@reidsolon reidsolon changed the title refactor: use text for token column refactor: use text for name column Jul 1, 2025
@taylorotwell taylorotwell merged commit e4c09e6 into laravel:4.x Jul 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants