22-- Doesn't clean codebase tables since that just slows things down, but does clean out codebase ownership.
33SET client_min_messages TO WARNING;
44TRUNCATE TABLE users CASCADE;
5+ TRUNCATE TABLE superadmins CASCADE;
6+ TRUNCATE TABLE role_memberships CASCADE;
57TRUNCATE TABLE loose_code_roots CASCADE;
68TRUNCATE TABLE org_members CASCADE;
79TRUNCATE TABLE tours CASCADE;
@@ -22,9 +24,18 @@ TRUNCATE TABLE contribution_status_events CASCADE;
2224TRUNCATE TABLE tickets CASCADE;
2325TRUNCATE TABLE comments CASCADE;
2426TRUNCATE TABLE comment_revisions CASCADE;
27+ TRUNCATE TABLE teams CASCADE;
28+ TRUNCATE TABLE team_members CASCADE;
29+ TRUNCATE TABLE orgs CASCADE;
30+ TRUNCATE TABLE subjects CASCADE;
31+ TRUNCATE TABLE resources CASCADE;
32+ TRUNCATE TABLE contribution_diff_queue CASCADE;
33+ TRUNCATE TABLE namespace_diffs CASCADE;
2534
2635TRUNCATE TABLE namespace_ownership CASCADE;
2736TRUNCATE TABLE causal_ownership CASCADE;
37+ -- Transcripts should generally behave the same with or without truncating these, and leaving them in place saves
38+ -- time when rerunning tests.
2839-- TRUNCATE TABLE branch_hashes CASCADE;
2940-- TRUNCATE TABLE namespaces CASCADE;
3041-- TRUNCATE TABLE causals CASCADE;
0 commit comments