From 3d55a98865c4eaba4b02c2366739b995b8ca726b Mon Sep 17 00:00:00 2001 From: William Ellis Date: Mon, 29 Jun 2026 15:15:49 +0100 Subject: [PATCH] fix: changed upper bound to be able to be null so it can be set blank and db:generation time --- packages/database/src/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/database/src/schema.ts b/packages/database/src/schema.ts index ec12be9..544f7df 100644 --- a/packages/database/src/schema.ts +++ b/packages/database/src/schema.ts @@ -48,7 +48,7 @@ export const runs = pgTable("runs", { location: varchar("location", { length: 255 }), // place or tag for run profile: integer("profile").references(() => profiles.id), // associated profile lower_bound_idx: integer("lower_bound_idx").notNull().default(0), // inclusive trim start index (default: 0) - upper_bound_idx: integer("upper_bound_idx").notNull(), // inclusive trim end index (set by service layer to length-1) + upper_bound_idx: integer("upper_bound_idx"), // inclusive trim end index (set by service layer to length-1) front_freq: integer("front_freq"), // front suspension sample frequency rear_freq: integer("rear_freq"), // rear suspension sample frequency createdAt: timestamp("created_at").defaultNow(),