From 73c62182221d34ee57979e4e8833e33eae40d254 Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Thu, 15 Oct 2020 12:10:04 -0700 Subject: [PATCH] Give SQLite milisecond precision --- server/main/octoDatabase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main/octoDatabase.go b/server/main/octoDatabase.go index 487322a1d..f27c25efa 100644 --- a/server/main/octoDatabase.go +++ b/server/main/octoDatabase.go @@ -67,7 +67,7 @@ func (s *SQLStore) createTablesIfNotExists() error { if s.dbType == "sqlite3" { query = `CREATE TABLE IF NOT EXISTS blocks ( id VARCHAR(36), - insert_at DATETIME NOT NULL DEFAULT current_timestamp, + insert_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')), parent_id VARCHAR(36), type TEXT, json TEXT,