# test that add index keeps cardinality for older indexessourceinclude/have_tokudb.inc;disable_warnings;droptableifexiststt;enable_warnings;createtablett(aint,bint,cint,key(b),key(c),primarykey(a));insertintottvalues(1,0,0),(2,0,0),(3,0,1),(4,0,1);# compute cardinalityshowindexesfromtt;analyzetablett;showindexesfromtt;# drop key aaltertablettdropprimarykey;showindexesfromtt;# test that cardinality is persistentflushtables;showindexesfromtt;droptablett;