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

Change credential_id_sha256 data type for MySQL compatibility #18

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

Stormheg
Copy link
Member

@Stormheg Stormheg commented Aug 2, 2024

Fixes #17

MySQL has issues creating an index on binary field, requiring additional instructions for it to work. I feel it is better to go with a slightly more compatible implementation that utilizes plain CharField than to write special 'edge-case' instructions just for MySQL.

Squashed migration necessary to avoid ever executing migration code that crashes on MySQL.

@nijel could you please give this PR a try and see if it resolves your issue? I think you will like it!

MySQL has issues creating an index on binary field, requiring special
instructions. It is better to go with a slightly more compatible
implementation that utilizes plain CharField than to write special
edge-case instructions just for MySQL.

Squashed migration necessary to avoid ever executing migration code that
crashes on MySQL.

See #17
@nijel
Copy link
Contributor

nijel commented Aug 2, 2024

Thanks, this seems to work just fine in our CI for both MySQL and PostgreSQL: https://github.com/WeblateOrg/weblate/actions/runs/10217762479/job/28272321602?pr=12173

@Stormheg Stormheg merged commit 50f0526 into main Aug 3, 2024
@Stormheg Stormheg deleted the fix/credential-id-hash-as-hex-mysql-compat branch August 3, 2024 12:59
Stormheg added a commit that referenced this pull request Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Not compatible with MySQL
2 participants