mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
fix duplicate column crash when upgrading
This commit is contained in:
parent
18f31ad9d6
commit
ca57da44c6
1 changed files with 4 additions and 1 deletions
|
@ -225,7 +225,10 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||
setColumnsEqual( db, TABLE_NAME_SUM, VISID, "rowid" );
|
||||
makeAutoincrement( db, TABLE_NAME_SUM, s_summaryColsAndTypes );
|
||||
case 17:
|
||||
addSumColumn( db, THUMBNAIL );
|
||||
if ( 17 == oldVersion ) {
|
||||
// THUMBNAIL also added by makeAutoincrement above
|
||||
addSumColumn( db, THUMBNAIL );
|
||||
}
|
||||
case 18:
|
||||
createStudyTable( db );
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue