Skip to content

[BUG]: Always asking to add constraints of long past migrations #4914

@SirCameron

Description

@SirCameron

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.4

What version of drizzle-kit are you using?

0.31.4

Other packages

No response

Describe the Bug

In earlier migrations I setup some constraints.
using drizzle-kit push always asks me on every subsequent push if I want to add the constraint without truncating the table...
The point is that the constraint is already present from a previous migration.

Are constraints not captured in snapshots? why are they coming up again and again?

❯ No, add the constraint without truncating the table
  Yes, truncate the table

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