File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -364,12 +364,9 @@ func (ta *Table) fetchIndexes(conn mysql.Executer) error {
364364 colName , _ := r .GetString (i , 4 )
365365 currentIndex .AddColumn (colName , cardinality )
366366 currentIndex .NoneUnique , _ = r .GetUint (i , 1 )
367- // Only set to false if explicitly marked as invisible
368367 if hasInvisibleIndex {
369368 visible , _ := r .GetString (i , 13 )
370- if isIndexInvisible (visible ) {
371- currentIndex .Visible = false
372- }
369+ currentIndex .Visible = ! isIndexInvisible (visible )
373370 }
374371 }
375372
@@ -438,9 +435,8 @@ func (ta *Table) fetchIndexesViaSqlDB(conn *sql.DB) error {
438435 }
439436 currentIndex .NoneUnique = noneUnique
440437
441- // Only set to false if explicitly marked as invisible
442- if hasInvisibleIndex && visible .Valid && isIndexInvisible (visible .String ) {
443- currentIndex .Visible = false
438+ if hasInvisibleIndex && visible .Valid {
439+ currentIndex .Visible = ! isIndexInvisible (visible .String )
444440 }
445441 }
446442
You can’t perform that action at this time.
0 commit comments