From 0b67be2e89ef850d182057021294d2607153780e Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 7 Feb 2017 13:46:29 +0000 Subject: [PATCH] Remove db reference to homesets. --- .../java/at/bitfire/davdroid/model/ServiceDB.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/src/main/java/at/bitfire/davdroid/model/ServiceDB.java b/app/src/main/java/at/bitfire/davdroid/model/ServiceDB.java index 06ad1fd4..447f5cdd 100644 --- a/app/src/main/java/at/bitfire/davdroid/model/ServiceDB.java +++ b/app/src/main/java/at/bitfire/davdroid/model/ServiceDB.java @@ -46,14 +46,6 @@ public class ServiceDB { SERVICE_CARDDAV = CollectionInfo.Type.ADDRESS_BOOK.toString(); } - public static class HomeSets { - public static final String - _TABLE = "homesets", - ID = "_id", - SERVICE_ID = "serviceID", - URL = "url"; - } - public static class Collections { public static final String _TABLE = "collections", @@ -109,13 +101,6 @@ public class ServiceDB { ")"); db.execSQL("CREATE UNIQUE INDEX services_account ON " + Services._TABLE + " (" + Services.ACCOUNT_NAME + "," + Services.SERVICE + ")"); - db.execSQL("CREATE TABLE " + HomeSets._TABLE + "(" + - HomeSets.ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + - HomeSets.SERVICE_ID + " INTEGER NOT NULL REFERENCES " + Services._TABLE +" ON DELETE CASCADE," + - HomeSets.URL + " TEXT NOT NULL" + - ")"); - db.execSQL("CREATE UNIQUE INDEX homesets_service_url ON " + HomeSets._TABLE + "(" + HomeSets.SERVICE_ID + "," + HomeSets.URL + ")"); - db.execSQL("CREATE TABLE " + Collections._TABLE + "(" + Collections.ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + Collections.SERVICE_ID + " INTEGER NOT NULL REFERENCES " + Services._TABLE +" ON DELETE CASCADE," +