Skip to content

[BUG] [Kit] Field length for MySQL #3038

Open
@Sparticuz

Description

@Sparticuz

What version of drizzle-orm are you using?

0.33.0

What version of drizzle-kit are you using?

0.24.2

Describe the Bug

I'm trying to migrate from skeema to drizzle and seem to be stuck on a few issues. This is one that I've not been able to find an existing issue for. When I try to push, I get dozens or more of these 'errors'

· You're about to change customersTotal column type from int(11) to int with 6381 items
· You're about to change emailResponsesMTD column type from int(11) to int with 6381 items
· You're about to change emailResponsesNinety column type from int(11) to int with 6381 items
· You're about to change emailResponsesOtherMTD column type from int(11) to int with 6381 items
· You're about to change emailResponsesOtherNinety column type from int(11) to int with 6381 items
· You're about to change emailTotal column type from int(11) to int with 6381 items
· You're about to change inspectionResponsesMTD column type from int(11) to int with 6381 items
· You're about to change inspectionResponsesNinety column type from int(11) to int with 6381 items
· You're about to change inspectionResponsesOtherMTD column type from int(11) to int with 6381 items
· You're about to change inspectionResponsesOtherNinety column type from int(11) to int with 6381 items

Honestly, I don't care at all what the length of the fields are, but at least with (mariadb) mysql, field length seems to be required and returned when kit checks the schema.

Expected behavior

When I don't specify the length in my schema.ts file, I wouldn't expect it to care about what the database field length is returning.

Environment & setup

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions