X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/f76498047437fd53aa383dcc1fecb438f319da6d..5a22c7e79f1a53ccdbae04327e6ac500f3676a67:/src/com/owncloud/android/db/DbHandler.java diff --git a/src/com/owncloud/android/db/DbHandler.java b/src/com/owncloud/android/db/DbHandler.java index 3e4103a6..fb4e5399 100644 --- a/src/com/owncloud/android/db/DbHandler.java +++ b/src/com/owncloud/android/db/DbHandler.java @@ -17,6 +17,8 @@ */ package com.owncloud.android.db; +import com.owncloud.android.Log_OC; + import android.content.ContentValues; import android.content.Context; import android.database.Cursor; @@ -34,7 +36,7 @@ public class DbHandler { private SQLiteDatabase mDB; private OpenerHelper mHelper; private final String mDatabaseName = "ownCloud"; - private final int mDatabaseVersion = 2; + private final int mDatabaseVersion = 3; private final String TABLE_INSTANT_UPLOAD = "instant_upload"; @@ -56,7 +58,7 @@ public class DbHandler { cv.put("account", account); cv.put("attempt", UPLOAD_STATUS_UPLOAD_LATER); long result = mDB.insert(TABLE_INSTANT_UPLOAD, null, cv); - Log.d(TABLE_INSTANT_UPLOAD, "putFileForLater returns with: " + result + " for file: " + filepath); + Log_OC.d(TABLE_INSTANT_UPLOAD, "putFileForLater returns with: " + result + " for file: " + filepath); return result != -1; } @@ -64,7 +66,7 @@ public class DbHandler { ContentValues cv = new ContentValues(); cv.put("attempt", status); int result = mDB.update(TABLE_INSTANT_UPLOAD, cv, "path=?", new String[] { filepath }); - Log.d(TABLE_INSTANT_UPLOAD, "updateFileState returns with: " + result + " for file: " + filepath); + Log_OC.d(TABLE_INSTANT_UPLOAD, "updateFileState returns with: " + result + " for file: " + filepath); return result; } @@ -87,7 +89,7 @@ public class DbHandler { */ public boolean removeIUPendingFile(String localPath) { long result = mDB.delete(TABLE_INSTANT_UPLOAD, "path = ?", new String[] { localPath }); - Log.d(TABLE_INSTANT_UPLOAD, "delete returns with: " + result + " for file: " + localPath); + Log_OC.d(TABLE_INSTANT_UPLOAD, "delete returns with: " + result + " for file: " + localPath); return result != 0; }