Repository navigation
feat: support MySQL 8 next to PostgreSQL - #2
Merged
Merged
Conversation
The workflow runs the migrations and the integration suite on PostgreSQL 16 and MySQL 8.0. The test infrastructure no longer depends on PostgreSQL syntax. A new migration gives webhook_event.dedupe_key a binary collation on MySQL and MariaDB, so the unique index compares delivery keys exactly as on PostgreSQL; a schema listener adds the same collation to the ORM schema there. Other platforms keep their schema. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Testsruns the migrations and the integration suite (groupdatabaseincluded) on PostgreSQL 16 and on MySQL 8.0 (utf8mb4,utf8mb4_unicode_ci).Version20261201180000, MySQL and MariaDB only:webhook_event.dedupe_keygets a binary collation (utf8mb4_0900_binon MySQL 8,utf8mb4_binotherwise), so the unique index on (endpoint_id,dedupe_key) compares delivery keys exactly, as on PostgreSQL.DedupeKeyCollationListeneradds the same collation to the ORM schema on these platforms, so the schema tool reports no diff.Version20261127220000is untouched.Upgrade
Installations on MySQL or MariaDB run the migrations. PostgreSQL installations need nothing; the migration is a no-op there.
Not part of this change
CLAUDE.mdstill says the groupdatabaseneeds PostgreSQL.type/status/slugfilters follow the column collation on MySQL (case-insensitive by default). The intake is not affected, it validates the slug pattern first.🤖 Generated with Claude Code