Skip to content

I don't get: "❗ MySQL schemas/database are no longer supported by drizzle-kit Drizzle Kit won't handle any schema changes for additional schemas/databases in your drizzle schema file" #2461

Closed Answered by AlexBlokh
newsve asked this question in Q&A
Discussion options

You must be logged in to vote

hey @newsve @tushargoyalofficial

Unlike PostgreSQL, MySQL schemas are not the same. MySQL so called schemas are databases and thus we've made a wrong decision to try to support them with Drizzle Kit from the beginning

For proper understanding I'll plot the hierarchy of particular dialects:

  • PostgreSQL: server -> database -> schema -> tables
  • MySQL: server -> database(so called schema) -> tables
  • SQLite: file / database -> tables

We can't treat MySQL database as schema, we now treat it as a devops property, just like PostgreSQL database property on Postgres Server. We now treat MySQL database/schema as SQLite attachable database.

We fully support querying cross MySQL databases with Drizzle …

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@newsve
Comment options

Comment options

You must be logged in to vote
1 reply
@stagr
Comment options

Answer selected by AlexBlokh
Comment options

You must be logged in to vote
3 replies
@AlexBlokh
Comment options

@newsve
Comment options

@AlexBlokh
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants