Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Ignore .gitignore inside sql version updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian committed Aug 18, 2020
1 parent 3ecc461 commit 3ee22cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/pgmodel/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ func (t *Migrator) upgradeVersion(tx pgx.Tx, from, to semver.Version) error {

for _, versionDirInfo := range versionDirInfoEntries {
if !versionDirInfo.IsDir() {
if versionDirInfo.Name() == ".gitignore" {
continue
}
return fmt.Errorf("Not a directory inside %v: %v", versionScripts, versionDirInfo.Name())
}

Expand Down

0 comments on commit 3ee22cc

Please sign in to comment.