Refactor: sql on conflict; fix unittest; page names to vars

This commit is contained in:
Grail Finder
2024-12-11 18:43:04 +03:00
parent 5f780287ae
commit ed5cb75134
5 changed files with 58 additions and 27 deletions

View File

@@ -95,6 +95,7 @@ func TestChatHistory(t *testing.T) {
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
msgs TEXT NOT NULL,
agent TEXT NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);`)