mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 06:45:22 +00:00
sync
This commit is contained in:
@@ -91,7 +91,7 @@ export const ImportCommand = cmd({
|
||||
.values({
|
||||
id: msg.info.id,
|
||||
session_id: exportData.info.id,
|
||||
created_at: msg.info.time?.created ?? Date.now(),
|
||||
time_created: msg.info.time?.created ?? Date.now(),
|
||||
data: msg.info,
|
||||
})
|
||||
.onConflictDoNothing()
|
||||
|
||||
@@ -139,7 +139,9 @@ export namespace Database {
|
||||
}
|
||||
|
||||
export const Timestamps = {
|
||||
time_created: integer().notNull(),
|
||||
time_created: integer()
|
||||
.notNull()
|
||||
.$default(() => Date.now()),
|
||||
time_updated: integer()
|
||||
.notNull()
|
||||
.$onUpdate(() => Date.now()),
|
||||
|
||||
Reference in New Issue
Block a user