avoid caught exception with better sql statement

This commit is contained in:
Eric House 2022-06-28 08:59:04 -07:00
parent 2c26af0e68
commit 1c6afc7909

View file

@ -367,7 +367,7 @@ public class DBHelper extends SQLiteOpenHelper {
}
langCodeToISOCode( db, TABLE_NAMES.DICTINFO, LANGCODE, ISOCODE );
try {
db.execSQL( "DROP TABLE " + TABLE_NAMES._OBITS + ";" );
db.execSQL( "DROP TABLE IF EXISTS " + TABLE_NAMES._OBITS + ";" );
} catch ( SQLiteException ex ) {
Log.ex( TAG, ex );
}