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

Column publicKeyCredentialId used in key specification without a key length #680

Open
leofeyer opened this issue Jan 22, 2025 · 2 comments · Fixed by #678
Open

Column publicKeyCredentialId used in key specification without a key length #680

leofeyer opened this issue Jan 22, 2025 · 2 comments · Fixed by #678
Assignees
Labels
bug Something isn't working
Milestone

Comments

@leofeyer
Copy link

Unfortunately, the changes from #678 don't work for me under MySQL 9.1:

The ORM file contains <field name="publicKeyCredentialId" type="base64" unique="true" length="250"/>. I'm using version 5.1.1 with Symfony 7.2.

@Spomky Spomky self-assigned this Jan 22, 2025
@Spomky Spomky added the bug Something isn't working label Jan 22, 2025
@Spomky Spomky added this to the 5.1.2 milestone Jan 22, 2025
@Spomky Spomky linked a pull request Jan 22, 2025 that will close this issue
4 tasks
@Spomky
Copy link
Contributor

Spomky commented Jan 22, 2025

Hello @leofeyer,

Indeed, there is an issue with this field.
The length is defined, but because base64 is of type CLOB the directive is ignored.
Please downgrade to 5.0.x until a fix is released.


Note1: https://stackoverflow.com/questions/1827063/mysql-error-key-specification-without-a-key-length

@leofeyer
Copy link
Author

Will do. Thank you @Spomky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants