[mythtv-commits] Ticket #8762: DB Schema Upgrade from 0.21 fails

MythTV mythtv at cvs.mythtv.org
Tue Aug 10 19:57:33 UTC 2010


#8762: DB Schema Upgrade from 0.21 fails
-----------------------------------------------------+----------------------
 Reporter:  Martin Bene <martin.bene@…>              |            Type:  defect          
   Status:  new                                      |        Priority:  minor           
Milestone:  unknown                                  |       Component:  MythTV - General
  Version:  Trunk Head                               |        Severity:  medium          
 Keywords:  schema upgrade                           |   Ticket locked:  0               
-----------------------------------------------------+----------------------
 When trying to update myth from 0.21, the pre-update dtabase check fails
 if the "people" table contains entries with names that differ only at
 character positions > 41.
 reason is in mythtv/libs/libmythtv/dbcheck.cpp 3593:

 the command generated for testing the table for unique utf8 entries is
 "ALTER TABLE temp_people   ADD UNIQUE INDEX verify_unique ( name(41) );".
 thus only the first 41 characters are indexed and failures occur if two
 entries only differ past char 41.
 removal of the "(41)" should fix this problem.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8762>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list