Skip to content

[BUG]: drizzle-kit / Amazon Aurora DSQL : drizzle-kit push tries to drop the primary key index on reapply without changes #4779

@godu

Description

@godu

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

What version of drizzle-kit are you using?

0.31.4

Other packages

[email protected]

Describe the Bug

On a second drizzle-kit push run, drizzle tries to drop the primary key index.

PostgresError: cannot drop index "MyTable_pkey" because constraint MyTable_pkey on table "MyTable" requires it

Here is my schema :

import {pgTable, varchar} from 'drizzle-orm/pg-core';

export const MyTable = pgTable('MyTable', {
  A: varchar({length: 128}).notNull().primaryKey(),
});

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