X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/b0ab3ce0872d2702e82b5979dddaa5a897be340b..a99f74bd9e09ed9acc74b0fe276ed030b91fc85d:/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 01518bac..bd0fcd17 100644 --- a/src/com/owncloud/android/db/DbHandler.java +++ b/src/com/owncloud/android/db/DbHandler.java @@ -3,7 +3,7 @@ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or + * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -31,14 +31,14 @@ import android.database.sqlite.SQLiteOpenHelper; */ public class DbHandler { private SQLiteDatabase mDB; - private OpenerHepler mHelper; + private OpenerHelper mHelper; private final String mDatabaseName = "ownCloud"; private final int mDatabaseVersion = 1; private final String TABLE_INSTANT_UPLOAD = "instant_upload"; public DbHandler(Context context) { - mHelper = new OpenerHepler(context); + mHelper = new OpenerHelper(context); mDB = mHelper.getWritableDatabase(); } @@ -74,15 +74,15 @@ public class DbHandler { } - private class OpenerHepler extends SQLiteOpenHelper { - public OpenerHepler(Context context) { + private class OpenerHelper extends SQLiteOpenHelper { + public OpenerHelper(Context context) { super(context, mDatabaseName, null, mDatabaseVersion); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE " + TABLE_INSTANT_UPLOAD + " (" - + " _id INTEGET PRIMARY KEY, " + + " _id INTEGER PRIMARY KEY, " + " path TEXT," + " account TEXT);"); }