Browse Source

Clear

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
2517321276
1 changed files with 2 additions and 10 deletions
  1. 2 10
      iOSClient/Data/NCDatabase.swift

+ 2 - 10
iOSClient/Data/NCDatabase.swift

@@ -246,6 +246,7 @@ class tableDirectEditingCreators: Object {
 
 
 class tableDashboardWidget: Object {
 class tableDashboardWidget: Object {
     
     
+    @Persisted(primaryKey: true) var index = ""
     @Persisted var account = ""
     @Persisted var account = ""
     @Persisted var id = ""
     @Persisted var id = ""
     @Persisted var title = ""
     @Persisted var title = ""
@@ -254,25 +255,16 @@ class tableDashboardWidget: Object {
     @Persisted var iconUrl: String?
     @Persisted var iconUrl: String?
     @Persisted var widgetUrl: String?
     @Persisted var widgetUrl: String?
     let button = List<tableDashboardWidgetButton>()
     let button = List<tableDashboardWidgetButton>()
-    @Persisted var index = ""
-    
-    override static func primaryKey() -> String {
-        return "index"
-    }
 }
 }
 
 
 class tableDashboardWidgetButton: Object {
 class tableDashboardWidgetButton: Object {
 
 
+    @Persisted(primaryKey: true) var index = ""
     @Persisted var account = ""
     @Persisted var account = ""
     @Persisted var id = ""
     @Persisted var id = ""
     @Persisted var type = ""
     @Persisted var type = ""
     @Persisted var text = ""
     @Persisted var text = ""
     @Persisted var link = ""
     @Persisted var link = ""
-    @Persisted var index = ""
-
-    override static func primaryKey() -> String {
-        return "index"
-    }
 }
 }
 
 
 class tableDirectEditingEditors: Object {
 class tableDirectEditingEditors: Object {