mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
add col to dictinfo telling whether dict is available on server
This commit is contained in:
parent
9680733899
commit
e8beb103cb
1 changed files with 12 additions and 2 deletions
|
@ -41,7 +41,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||||
private static final String TAG = DBHelper.class.getSimpleName();
|
private static final String TAG = DBHelper.class.getSimpleName();
|
||||||
|
|
||||||
private static final String DB_NAME = BuildConfig.DB_NAME;
|
private static final String DB_NAME = BuildConfig.DB_NAME;
|
||||||
private static final int DB_VERSION = 32;
|
private static final int DB_VERSION = 33;
|
||||||
|
|
||||||
public static final String GAME_NAME = "GAME_NAME";
|
public static final String GAME_NAME = "GAME_NAME";
|
||||||
public static final String VISID = "VISID";
|
public static final String VISID = "VISID";
|
||||||
|
@ -62,6 +62,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||||
public static final String EXTRAS = "EXTRAS";
|
public static final String EXTRAS = "EXTRAS";
|
||||||
private static final String DICTLANG = "DICTLANG";
|
private static final String DICTLANG = "DICTLANG";
|
||||||
public static final String ISOCODE = "ISOCODE";
|
public static final String ISOCODE = "ISOCODE";
|
||||||
|
public static final String ON_SERVER = "ON_SERVER";
|
||||||
public static final String LANGNAME = "LANGNAME";
|
public static final String LANGNAME = "LANGNAME";
|
||||||
public static final String DICTLIST = "DICTLIST";
|
public static final String DICTLIST = "DICTLIST";
|
||||||
public static final String HASMSGS = "HASMSGS";
|
public static final String HASMSGS = "HASMSGS";
|
||||||
|
@ -179,8 +180,9 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||||
{ FULLSUM, "TEXT(32)" },
|
{ FULLSUM, "TEXT(32)" },
|
||||||
{ WORDCOUNT, "INTEGER" },
|
{ WORDCOUNT, "INTEGER" },
|
||||||
{ LANGCODE, "INTEGER" }, // deprecated
|
{ LANGCODE, "INTEGER" }, // deprecated
|
||||||
{ LANGNAME, "TEXT" },
|
{ LANGNAME, "TEXT" },
|
||||||
{ ISOCODE, "TEXT(8)" },
|
{ ISOCODE, "TEXT(8)" },
|
||||||
|
{ ON_SERVER, "INTEGER DEFAULT 0" },
|
||||||
}, 12 ),
|
}, 12 ),
|
||||||
GROUPS( "groups", new String[][] {
|
GROUPS( "groups", new String[][] {
|
||||||
{ GROUPNAME, "TEXT" },
|
{ GROUPNAME, "TEXT" },
|
||||||
|
@ -372,6 +374,14 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||||
} catch ( SQLiteException ex ) {
|
} catch ( SQLiteException ex ) {
|
||||||
Log.ex( TAG, ex );
|
Log.ex( TAG, ex );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 32:
|
||||||
|
if ( !madeDITable ) {
|
||||||
|
addColumn( db, TABLE_NAMES.DICTINFO, ON_SERVER );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
for ( TABLE_NAMES table : TABLE_NAMES.values() ) {
|
for ( TABLE_NAMES table : TABLE_NAMES.values() ) {
|
||||||
|
|
Loading…
Reference in a new issue