Open maietta opened 8 months ago
@Angelelz I would like to solve this issue. Assign this one to me.
You can't solve it because drizzle-kit is not open source yet.
@Angelelz Had been trying to find original code but couldnt now I get why :) Are there any beginner friendly issues I can help with that include coding work?
@ElvinPero the best way would be fork the code, familiarize yourself with it, then scan through the issues.
I appreciate your enthusiasm to help. Thanks.
Sorry for the late response. I'll take this issue now!
Thank you.
Um, it's back. :(
I tried installing drizzle-kit@beta but that didn't work either.
SvelteKit 2. Using Bun package manager.
It's still present on a fresh setup.
I have to manually clean up the double quotes.
Perhaps this is just a MySQL specific error? Notoby else seems to be complaining and most people are seemingly using PostgreSQL. I will switch the database I'm using and see if this problem goes away. This has been an ongoing problem for more than a half a year for me.
Just started trying out Drizzle today and I came across this issue as well. Yes, we have a MySQL database.
Here's a sample of the output I'm getting:
export const aros = mysqlTable("aros", {
id: int("id").autoincrement().notNull(),
parentId: int("parent_id").default('NULL'),
model: varchar("model", { length: 255 }).default(''''),
foreignKey: int("foreign_key").default('NULL'),
alias: varchar("alias", { length: 255 }).default(''''),
lft: int("lft").default('NULL'),
rght: int("rght").default('NULL'),
},
(table) => {
return {
idxArosLftRght: index("idx_aros_lft_rght").on(table.lft, table.rght),
idxArosAlias: index("idx_aros_alias").on(table.alias),
}
});
Those .default('NULL')
s are also giving me a type error.
What version of
drizzle-orm
are you using?0.29.3
What version of
drizzle-kit
are you using?0.20.10-3c347a7
Describe the Bug
When running
npm drizzle-kit introspect:mysql
, I get a schema that includes double "single quotes" as in the following:Expected behavior
I expect to see:
Environment & setup
Using fresh SvelteKit 2.0 with TypeScript enabled.