This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ... | |
CREATE TABLE "image_likers" ( | |
_id INTEGER PRIMARY KEY AUTOINCREMENT, | |
image_id INTEGER, | |
user_id INTEGER, | |
UNIQUE(image_id, user_id) ON CONFLICT REPLACE, | |
FOREIGN KEY (image_id) REFERENCES "images" (_id), | |
FOREIGN KEY (user_id) REFERENCES "users" (_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/src/main/java/novoda/lib/sqliteprovider/provider/action/InsertHelper.java b/core/src/main/java/novoda/lib/sqliteprovider/provider/action/InsertHelper.java | |
index 864fb45..555da5f 100644 | |
--- a/core/src/main/java/novoda/lib/sqliteprovider/provider/action/InsertHelper.java | |
+++ b/core/src/main/java/novoda/lib/sqliteprovider/provider/action/InsertHelper.java | |
@@ -6,6 +6,8 @@ import android.database.Cursor; | |
import android.database.SQLException; | |
import android.net.Uri; | |
+import java.util.List; | |
+ |
NewerOlder