Skip to content

Commit 5b868dc

Browse files
authored
fix: init lang version table failure (#1982)
Signed-off-by: 张启航 <[email protected]>
1 parent e781bf9 commit 5b868dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/mysql/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func (m *Manager) CheckTable() {
272272
}
273273

274274
func (m *Manager) patchTable() {
275-
var count int64
275+
count := -1
276276
m.db.Model(&model.EnterpriseLanguageVersion{}).Count(&count)
277277
if count == 0 {
278278
m.initLanguageVersion()

0 commit comments

Comments
 (0)