Skip to content

Commit 5df1f76

Browse files
helaysvsclub
andauthored
fix:GetIndexes多余的Debug (#219)
Co-authored-by: vsclub <ccdacom@yeah.net>
1 parent 6294289 commit 5df1f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func (m Migrator) GetIndexes(value interface{}) ([]gorm.Index, error) {
339339
indexes := make([]gorm.Index, 0)
340340
err := m.RunWithValue(value, func(stmt *gorm.Statement) error {
341341
rst := make([]*Index, 0)
342-
if err := m.DB.Debug().Raw("SELECT * FROM PRAGMA_index_list(?)", stmt.Table).Scan(&rst).Error; err != nil { // alias `PRAGMA index_list(?)`
342+
if err := m.DB.Raw("SELECT * FROM PRAGMA_index_list(?)", stmt.Table).Scan(&rst).Error; err != nil { // alias `PRAGMA index_list(?)`
343343
return err
344344
}
345345
for _, index := range rst {

0 commit comments

Comments
 (0)