Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion migrations/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const createMigrationsTableSQL = `
)`

func ensureMigrationsTableExists(db *sqlx.DB) error {
row := db.QueryRow("SELECT EXISTS(SELECT 1 FROM information_schema.tables WHERE table_name = 'migration')")
row := db.QueryRow("SELECT EXISTS(SELECT 1 FROM information_schema.tables WHERE table_name = 'migration' AND table_schema = current_schema())")
exists := false
err := row.Scan(&exists)
if err != nil {
Expand Down