mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-29 03:24:07 +00:00
feat(sql-migrate): skip +-prefixed files in migrations directory (refs #68)
This commit is contained in:
parent
3487702bf7
commit
b50696f64d
@ -371,7 +371,7 @@ func migrationsList(migrationsDir string, entries []os.DirEntry) (ups, downs []s
|
||||
continue
|
||||
}
|
||||
name := entry.Name()
|
||||
if strings.HasPrefix(name, ".") || strings.HasPrefix(name, "_") {
|
||||
if strings.HasPrefix(name, ".") || strings.HasPrefix(name, "_") || strings.HasPrefix(name, "+") {
|
||||
if name != LOG_QUERY_NAME {
|
||||
fmt.Fprintf(os.Stderr, " ignoring %s\n", filepathJoin(migrationsDir, name))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user