Skip to content
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

Index issue with translate attributes #748

Open
flyingbaba opened this issue Sep 13, 2024 · 1 comment
Open

Index issue with translate attributes #748

flyingbaba opened this issue Sep 13, 2024 · 1 comment

Comments

@flyingbaba
Copy link

While debugging the mysql query we found the type missmatch:

Warning: #1739 Cannot use ref access on index 'rainlab_translate_attributes_model_id_index' due to type or collation conversion on field 'model_id'

Table: rainlab_translate_attributes
$table->string('model_id')->index()->nullable();

@daftspunk
Copy link
Member

This field should probably be converted to an integer. It was likely kept as a string to support UUIDs, but we no longer support this. Feel free to modify the column to an integer in your database and that should fix the issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants