From b31f2840b9ba5cf40ac5d9c0f5951b1942a6f9d9 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Thu, 5 Mar 2026 13:34:01 +0800 Subject: [PATCH] temp --- src/db/drizzle/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/drizzle/schema.ts b/src/db/drizzle/schema.ts index 25ee634..42ad1c5 100644 --- a/src/db/drizzle/schema.ts +++ b/src/db/drizzle/schema.ts @@ -457,7 +457,7 @@ export const routerViews = pgTable("router_views", { views: jsonb().default([]).$type>(), createdAt: timestamp('createdAt').notNull().defaultNow(), - updatedAt: timestamp('updatedAt').notNull().defaultNow(), + updatedAt: timestamp('updatedAt').notNull().defaultNow().$onUpdate(() => new Date()), }, (table) => [ index('router_views_uid_idx').using('btree', table.uid.asc().nullsLast()), index('router_title_idx').using('btree', table.title.asc().nullsLast()),