Drizzle not migrating (SupaBase) when I run npx drizzle-kit migrate

In the terminal the execution get's stuck infinitely:
➜ dgcl git:(main) ✗ npx drizzle-kit migrate
drizzle-kit: v0.21.2
drizzle-orm: v0.30.10

No config path provided, using default path
Reading config file '/Users/gauravvarma/2024/dgcl/drizzle.config.ts'
Using 'postgres' driver for database querying
[⣟] applying migrations...
➜ dgcl git:(main) ✗ npx drizzle-kit migrate
drizzle-kit: v0.21.2
drizzle-orm: v0.30.10

No config path provided, using default path
Reading config file '/Users/gauravvarma/2024/dgcl/drizzle.config.ts'
Using 'postgres' driver for database querying
[⣟] applying migrations...
I am attempting to add two columns to my current table, and before I run migrate I first generate successfully. Below is the schema with the two added columns (the card columns specifically):
export const servicesTable = pgTable("services_table", {
id: serial("id").primaryKey(),
name: text("name").notNull(),
slug: text("slug").notNull(),
html: text("html").notNull(),
card_title: text("card_title"),
card_description: text("card_description"),
editor_state: text("editor_state").notNull(),
createdAt: timestamp("created_at").notNull().defaultNow(),
updatedAt: timestamp("updated_at")
.notNull()
.$onUpdate(() => new Date()),
});
export const servicesTable = pgTable("services_table", {
id: serial("id").primaryKey(),
name: text("name").notNull(),
slug: text("slug").notNull(),
html: text("html").notNull(),
card_title: text("card_title"),
card_description: text("card_description"),
editor_state: text("editor_state").notNull(),
createdAt: timestamp("created_at").notNull().defaultNow(),
updatedAt: timestamp("updated_at")
.notNull()
.$onUpdate(() => new Date()),
});
Any idea what is happening here?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server