Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
71240055
Commit
71240055
authored
Dec 31, 2025
by
ianshaw
Browse files
fix(lint): 移除错误信息末尾的句号
- 符合 Go staticcheck ST1005 规则 - 错误信息不应以标点符号结尾
parent
dd67d53d
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/repository/migrations_runner.go
View file @
71240055
...
...
@@ -133,7 +133,7 @@ func applyMigrationsFS(ctx context.Context, db *sql.DB, fsys fs.FS) error {
"Solutions:
\n
"
+
" 1. Revert to original: git log --oneline -- migrations/%s && git checkout <commit> -- migrations/%s
\n
"
+
" 2. For new changes, create a new migration file instead of modifying existing ones
\n
"
+
"Note: Modifying applied migrations breaks the immutability principle and can cause inconsistencies across environments
.
"
,
"Note: Modifying applied migrations breaks the immutability principle and can cause inconsistencies across environments"
,
name
,
existing
,
checksum
,
name
,
name
,
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment