From ec0443b2ce398b152bd8acff1c7a161209e3f3bb Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 22 Apr 2014 07:29:35 -0700 Subject: [PATCH] add constraint to loc table --- .../android/XWords4/src/org/eehouse/android/xw4/DBHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java index 3089e14c1..6f823cf90 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DBHelper.java @@ -181,6 +181,7 @@ public class DBHelper extends SQLiteOpenHelper { ,{ LOCALE, "TEXT(5)" } ,{ BLESSED, "INTEGER(1)" } ,{ XLATION, "TEXT" } + ,{ "UNIQUE", "(" + KEY + ", " + LOCALE + "," + BLESSED + ")" } }; private static final String[][] s_pairsSchema = {