Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/coaching/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export async function submitAvailabilities({
userId: user.id,
serviceId: service.id,
coachId: service.coachId,
durationMinutes: service.durationMinutes,
selectedTimeSlots: availabilities,
status: "awaiting_payment",
})
Expand Down
1 change: 1 addition & 0 deletions drizzle/0001_remove_duration_minutes.sql

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure, but I don't think the migration file is needed since the schema is the same for everyone on Supabase after the migration.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "coaching_sessions" DROP COLUMN "duration_minutes";--> statement-breakpoint

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The migration is not needed, we use schema.ts as our single source of truth and push changes with db:push

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes made and pushed

1 change: 0 additions & 1 deletion lib/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export const coachingSessions = pgTable("coaching_sessions", {
.references(() => profiles.id, { onDelete: "cascade" })
.notNull(),
scheduledAt: timestamp("scheduled_at"),
durationMinutes: integer("duration_minutes").notNull().default(60),
status: sessionStatusEnum("status").notNull().default("pending"),
meetingUrl: text("meeting_url"),
notes: text("notes"),
Expand Down
Loading