feat(routing): add logical group schema foundation
This commit is contained in:
@@ -102,6 +102,26 @@ func TestTableExists(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestOpenAppliesLogicalRoutingTables(t *testing.T) {
|
||||
store := openTestDB(t)
|
||||
db := store.SQLDB()
|
||||
|
||||
for _, table := range []string{
|
||||
"logical_groups",
|
||||
"logical_group_models",
|
||||
"logical_group_routes",
|
||||
"logical_group_route_models",
|
||||
} {
|
||||
found, err := tableExists(context.Background(), db, table)
|
||||
if err != nil {
|
||||
t.Fatalf("tableExists(%q) error = %v", table, err)
|
||||
}
|
||||
if !found {
|
||||
t.Fatalf("tableExists(%q) = false, want true", table)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestDetectLegacy0001Schema(t *testing.T) {
|
||||
store := openTestDB(t)
|
||||
db := store.SQLDB()
|
||||
|
||||
Reference in New Issue
Block a user