Skip to content

Commit 0fc492d

Browse files
committed
chore: test against custom schema
1 parent 93933d7 commit 0fc492d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/database/migrations/migrate_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ func testSQLDB(t testing.TB) *sql.DB {
105105

106106
// postgres.Open automatically runs migrations, but we want to actually test
107107
// migration behavior in this package.
108-
_, err = db.Exec(`DROP SCHEMA public CASCADE`)
108+
_, err = db.Exec(`DROP SCHEMA coder-test-schema CASCADE`)
109109
require.NoError(t, err)
110-
_, err = db.Exec(`CREATE SCHEMA public`)
110+
_, err = db.Exec(`CREATE SCHEMA coder-test-schema`)
111111
require.NoError(t, err)
112112

113113
return db

0 commit comments

Comments
 (0)