Skip to content

Fix MySQL schema migrations for TiDB compatibility#1

Open
zph wants to merge 3 commits intomainfrom
tidb-compatibility
Open

Fix MySQL schema migrations for TiDB compatibility#1
zph wants to merge 3 commits intomainfrom
tidb-compatibility

Conversation

@zph
Copy link
Owner

@zph zph commented Mar 14, 2026

  • Replace ALTER COLUMN SET DEFAULT with MODIFY COLUMN in v1.7 migration (TiDB does not support ALTER COLUMN SET DEFAULT syntax)
  • Add TiDB >= 7.2 requirement note on CHECK constraints in nexus_endpoints_partition_status table

What changed?

TiDB Compatibility as a Mysql backend

Why?

To support a more scalable sql backend.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

Any change is risky. Identify all risks you are aware of. If none, remove this section.

zph added 3 commits March 14, 2026 04:24
- Replace ALTER COLUMN SET DEFAULT with MODIFY COLUMN in v1.7 migration
  (TiDB does not support ALTER COLUMN SET DEFAULT syntax)
- Add TiDB >= 7.2 requirement note on CHECK constraints in
  nexus_endpoints_partition_status table
- Add TiDB v7.5.7 and v8.5.5 to CI test matrix using mysql8 driver
  with extra_env overrides for MYSQL_SEEDS/MYSQL_PORT
- Add TiDB services to dev and CI docker-compose files
- Add TiDB config (allow-expression-index) and init SQL
  (temporal user + tidb_enable_noop_functions)
- Add SKIP_VISIBILITY_SCHEMA env var to skip loading visibility schema
  on TiDB (lacks FULLTEXT and multi-valued indexes)
- Add develop/tidb-test.sh and develop/mysql-test.sh for local testing
- Add docs/TIDB_COMPATIBILITY.md documenting all findings
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.

1 participant