feat(org): add organization and membership contract and storage
This commit is contained in:
1 parent
a0551a34b8
commit
bdc5855001
90 files changed
+17545
-480
No files matched your search
@@ -143,7 +143,9 @@ func (env *testEnvironment) createIsolatedDatabase(ctx context.Context, t *testi
|
||||
}
|
||||
|
||||
// truncateTables resets shared tables between sequential subtests. Callers
|
||||
// must not run subtests that use these tables in parallel.
|
||||
// must not run subtests that use these tables in parallel. PostgreSQL refuses
|
||||
// to truncate a table that another table references unless both are listed,
|
||||
// so a test that truncates users names usersDependentTables.
|
||||
func truncateTables(ctx context.Context, t *testing.T, pool *pgxpool.Pool, tables ...pgx.Identifier) {
|
||||
t.Helper()
|
||||
names := make([]string, 0, len(tables))
|
||||
|
||||
Reference in new issue
Block a user