Skip to content

Commit 83a4977

Browse files
committed
fixup! fix(coderd): remove CREATE INDEX CONCURRENTLY from migrations
1 parent 3381ed2 commit 83a4977

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/database/migrations/migrate_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ func testSQLDB(t testing.TB) *sql.DB {
103103
require.NoError(t, err)
104104
t.Cleanup(func() { _ = db.Close() })
105105

106+
// postgres.Open automatically runs migrations, but we want to actually test
107+
// migration behavior in this package.
106108
_, err = db.Exec(`DROP SCHEMA public CASCADE`)
107109
require.NoError(t, err)
108110
_, err = db.Exec(`CREATE SCHEMA public`)

0 commit comments

Comments
 (0)