feat(backend): update main entry and test DB utilities

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-06-18 16:26:50 +01:00
co-authored by Sisyphus
parent 2dbb1486b0
commit f7cc278423
2 changed files with 35 additions and 6 deletions
+7 -1
View File
@@ -15,7 +15,7 @@ import (
"github.com/jackc/pgx/v5/pgxpool"
)
const defaultTestDSN = "postgres://myuser:mypassword@localhost:5432/crussell_test?sslmode=disable"
const defaultTestDSN = "postgres://myuser:mypassword@localhost:5432/crussell_test?sslmode=disable&require_auth=scram-sha-256"
func Pool(t *testing.T) *pgxpool.Pool {
t.Helper()
@@ -140,6 +140,9 @@ func Migrate(t *testing.T, pool *pgxpool.Pool) {
"exceptional_working_hours",
"exceptional_working_hours_groups",
"business_settings",
"login_audit",
"refresh_tokens",
"revoked_jtis",
}
for _, table := range dropOrder {
@@ -312,6 +315,9 @@ func TruncateTables(t *testing.T, pool *pgxpool.Pool) {
"users",
"images",
"tags",
"login_audit",
"refresh_tokens",
"revoked_jtis",
}
for _, table := range tables {