We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7706f5b commit 0ccef1bCopy full SHA for 0ccef1b
2 files changed
packages/opencode/src/cli/cmd/import.ts
@@ -91,7 +91,7 @@ export const ImportCommand = cmd({
91
.values({
92
id: msg.info.id,
93
session_id: exportData.info.id,
94
- created_at: msg.info.time?.created ?? Date.now(),
+ time_created: msg.info.time?.created ?? Date.now(),
95
data: msg.info,
96
})
97
.onConflictDoNothing()
packages/opencode/src/storage/db.ts
@@ -139,7 +139,9 @@ export namespace Database {
139
}
140
141
export const Timestamps = {
142
- time_created: integer().notNull(),
+ time_created: integer()
143
+ .notNull()
144
+ .$default(() => Date.now()),
145
time_updated: integer()
146
.notNull()
147
.$onUpdate(() => Date.now()),
0 commit comments