We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drizzle-orm
0.38.3
drizzle-kit
0.30.1
No response
If we try to add a new index to an existing column, drizzle-kit generate doesn't account for it.
drizzle-kit generate
For example An existing table like this:
export const myTable = pgTable( "my_table", { id: uuid("id").primaryKey().defaultRandom(), slug: text("slug").notNull(), filenames: text("filenames").array().notNull(), commonName: text("common_name").notNull(), }, (table) => [ { commonNameIdx: index("common_name_idx").on(table.commonName), }, ] );
Now if I try t add one more index on an existing column
export const myTable = pgTable( "my_table", { id: uuid("id").primaryKey().defaultRandom(), slug: text("slug").notNull(), filenames: text("filenames").array().notNull(), commonName: text("common_name").notNull(), }, (table) => [ { commonNameIdx: index("common_name_idx").on(table.commonName), slugIdx: index("slug_idx").on(table.slug), }, ] );
drizzle-kit generate says No schema changes, nothing to migrate
The text was updated successfully, but these errors were encountered:
Closing this as the there some issue with the syntax, if it returns object instead of array ob objects it works
Sorry, something went wrong.
No branches or pull requests
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.38.3
What version of
drizzle-kit
are you using?0.30.1
Other packages
No response
Describe the Bug
If we try to add a new index to an existing column,
drizzle-kit generate
doesn't account for it.For example
An existing table like this:
Now if I try t add one more index on an existing column
drizzle-kit generate
says No schema changes, nothing to migrateThe text was updated successfully, but these errors were encountered: