db: add sqlite "source of truth" schema

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby
2025-05-21 11:08:33 +02:00
committed by Kristoffer Dalby
parent 855c48aec2
commit c6736dd6d6
248 changed files with 6228 additions and 207 deletions

View File

@@ -1,7 +1,6 @@
package db
import (
"context"
"log"
"net/url"
"os"
@@ -84,7 +83,7 @@ func newPostgresTestDB(t *testing.T) *HSDatabase {
func newPostgresDBForTest(t *testing.T) *url.URL {
t.Helper()
ctx := context.Background()
ctx := t.Context()
srv, err := postgrestest.Start(ctx)
if err != nil {
t.Fatal(err)