Drizzle migration error with Example table.
Any reason why I am getting this error when I do
pnpm db:push for the 2nd time? No changes made.
db:push, changed the users schema then tried to run db:push again. But I get this error because of the example table which I did not change.drizzle-kit generate and manually copies the migrations to TablePlusdb:pushdb:pushexport const example = mysqlTable(
"example",
{
id: bigint("id", { mode: "number" }).primaryKey().autoincrement(),
name: varchar("name", { length: 256 }),
createdAt: timestamp("created_at")
.default(sql`CURRENT_TIMESTAMP`)
.notNull(),
updatedAt: timestamp("updatedAt").onUpdateNow(),
},
(example) => ({
nameIndex: uniqueIndex("name_idx").on(example.name),
}),
);