mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-18 12:09:30 +00:00
Use strings.TrimSuffix instead of strings.TrimRight for schema ID extraction
This commit is contained in:
@@ -84,7 +84,7 @@ func dbApplySchemas() error {
|
||||
continue
|
||||
}
|
||||
|
||||
schemaID := strings.TrimRight(s.Name(), ".sql")
|
||||
schemaID := strings.TrimSuffix(s.Name(), ".sql")
|
||||
|
||||
if !semver.IsValid(schemaID) {
|
||||
logger.Log().Warnf("[db] invalid schema name: %s", s.Name())
|
||||
|
||||
Reference in New Issue
Block a user