gaurav1998
gaurav1998
Explore posts from servers
DTDrizzle Team
Created by gaurav1998 on 5/29/2024 in #help
How to check migration history?
It would be useful to see which migrations have been applied and which have not
1 replies
DTDrizzle Team
Created by gaurav1998 on 5/28/2024 in #help
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?
1 replies
DTDrizzle Team
Created by gaurav1998 on 5/20/2024 in #help
Exploring Type Safety in Drizzle: Does Zod Enhance or Redundantly Overlap?
I'm new to Drizzle and I'm curious: with Drizzle handling type checking, is there still a benefit to using Zod?
2 replies