Skip to content

Commit

Permalink
fix: make goose statements case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Lutz committed May 28, 2024
1 parent 76b14ec commit b9707bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func RemoveRollbackStatements(contents string) string {
s := bufio.NewScanner(strings.NewReader(contents))
var lines []string
for s.Scan() {
if strings.HasPrefix(s.Text(), "-- +goose Down") {
if strings.HasPrefix(strings.ToLower(s.Text()), "-- +goose down") {
break
}
if strings.HasPrefix(s.Text(), "-- +migrate Down") {
Expand Down

0 comments on commit b9707bd

Please sign in to comment.