mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
fix(sql-migrate): add missing period 'basename+".up.sql"'
This commit is contained in:
parent
965c233543
commit
e9bf259856
@ -958,7 +958,7 @@ func fixupMigration(dir string, basename string) (up, down bool, warn error, err
|
||||
}
|
||||
if !deletesOnDown {
|
||||
if id == "" {
|
||||
return false, false, fmt.Errorf("must manually append \"DELETE FROM _migrations WHERE id = '<id>'\" to %s with id from %s", downPath, basename+"up.sql"), nil
|
||||
return false, false, fmt.Errorf("must manually append \"DELETE FROM _migrations WHERE id = '<id>'\" to %s with id from %s", downPath, basename+".up.sql"), nil
|
||||
}
|
||||
downScan.Close()
|
||||
downFile, err := os.OpenFile(downPath, os.O_APPEND|os.O_WRONLY, 0o644)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user