Skip to content

Conversation

@SumonMSelim
Copy link

Fixes SQL truncation error during database seeding by increasing the calling_code column length from 10 to 30 characters.

The previous limit of 10 characters was insufficient for countries with multiple calling codes (e.g., Dominican Republic: "1-809, 1-829, 1-849" at 22 characters). The new limit of 30 characters accommodates all current
calling codes with room for future additions.

Error fixed (#143):
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'calling_code' at row 1

@MaxHayman
Copy link

Bump can this be merged in please

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