-
Does it mean I cannot do any change of my mysql db anymore or just migrations, but still be able to push (so the declarative way)? Or I can do still both work but not for a second db. Would be great if anyone could elaborate |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
I guess they are dropping support for MySQL database. |
Beta Was this translation helpful? Give feedback.
-
hey @newsve @tushargoyalofficial Unlike PostgreSQL, MySQL schemas are not the same. MySQL so called For proper understanding I'll plot the hierarchy of particular dialects:
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 ORM. I hope that makes sense now |
Beta Was this translation helpful? Give feedback.
-
Hey @AlexBlokh |
Beta Was this translation helpful? Give feedback.
-
I am trying to push a mysql schema to a new database in my planet scale organisation.. is this why I am coming across errors when I try to run drizzle commands db:push and db:studio? If this is the case what is the alternative to make updates from the mysql 'schema' database definition in schema.ts? Dependencies: |
Beta Was this translation helpful? Give feedback.
hey @newsve @tushargoyalofficial
Unlike PostgreSQL, MySQL schemas are not the same. MySQL so called
schemas
aredatabases
and thus we've made a wrong decision to try to support them with Drizzle Kit from the beginningFor proper understanding I'll plot the hierarchy of particular dialects:
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 …