Skip to content

Commit 55a49f5

Browse files
committed
Update schema.ts
1 parent 2dee53b commit 55a49f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/database/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,10 +749,10 @@ export const videoUploads = mysqlTable("video_uploads", {
749749
videoId: nanoId("video_id").primaryKey().notNull().$type<Video.VideoId>(),
750750
uploaded: bigint("uploaded", { mode: "number", unsigned: true })
751751
.notNull()
752-
.default(0),
752+
.$defaultFn(() => 0),
753753
total: bigint("total", { mode: "number", unsigned: true })
754754
.notNull()
755-
.default(0),
755+
.$defaultFn(() => 0),
756756
startedAt: timestamp("started_at").notNull().defaultNow(),
757757
updatedAt: timestamp("updated_at").notNull().defaultNow(),
758758
mode: varchar("mode", { length: 255, enum: ["singlepart", "multipart"] }),

0 commit comments

Comments
 (0)