Changeset 0.10.4 (#60)
This commit is contained in:
@@ -196,6 +196,19 @@ func TruncateAll(t *testing.T) {
|
||||
}'::jsonb)
|
||||
ON CONFLICT (key) DO NOTHING
|
||||
`)
|
||||
|
||||
// Re-seed platform_policies — also wiped by CASCADE from users truncation
|
||||
// (platform_policies.updated_by REFERENCES users(id)).
|
||||
DB.Exec(`
|
||||
INSERT INTO platform_policies (key, value) VALUES
|
||||
('allow_user_byok', 'false'),
|
||||
('allow_user_personas', 'false'),
|
||||
('allow_raw_model_access', 'true'),
|
||||
('allow_registration', 'true'),
|
||||
('default_user_active', 'false'),
|
||||
('allow_team_providers', 'true')
|
||||
ON CONFLICT (key) DO NOTHING
|
||||
`)
|
||||
}
|
||||
|
||||
// SeedTestUser creates a test user and returns the user ID.
|
||||
|
||||
Reference in New Issue
Block a user