fix(stats): upsert hourly and daily stats on SQLite as PostgreSQL does

This commit is contained in:
2026-11-23 13:38:37 +00:00
parent ae5167ffa9
commit f46e079cee
5 changed files with 194 additions and 3 deletions
@@ -0,0 +1,15 @@
//go:build pgintegration
package gormstore
import (
"testing"
"github.com/stretchr/testify/require"
)
// The same scenario the SQLite test runs: both dialects must report the same totals.
func TestPostgresHourlyTotalsMatchSQLite(t *testing.T) {
store, _ := newPostgresStore(t)
require.Equal(t, wantHourlyScenario(), runHourlyScenario(t, store))
}