Skip to content

[BUG]: drizzle-kit pull missing closing quote (MySQL) #4993

@TheColorRed

Description

@TheColorRed

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

0.44.7

What version of drizzle-kit are you using?

0.31.5

Other packages

No response

Describe the Bug

When running npx drizzle-kit pull, the default() function is not closing the opening quote. The first one generated in each table seems to be okay, but the moment a second, third, fourth, etc. one is generated it is broken.

export const postalCodes = mysqlTable("postal_codes", {
	country: char({ length: 2 }),
	postal: char({ length: 5 }).default('').notNull(),
	name: varchar({ length: 180 }).default(').notNull(), // <-- Missing closing quote
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions