[tracker/wip/carlosg/sparql1.1: 62/201] libtracker-data: Remove unneeded column



commit eb83d4e861b67369ac8834930439062102a5830b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Mar 7 18:13:13 2019 +0100

    libtracker-data: Remove unneeded column

 src/libtracker-data/tracker-data-manager.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 502a2ca82..d98a0d958 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -3029,7 +3029,6 @@ create_decomposed_metadata_tables (TrackerDataManager  *manager,
        GString          *sel_col_sql = NULL;
        TrackerProperty **properties, *property, **domain_indexes;
        GSList           *class_properties = NULL, *field_it;
-       gboolean          main_class;
        guint             i, n_props;
        gboolean          in_alter = in_update;
        GError           *internal_error = NULL;
@@ -3041,8 +3040,6 @@ create_decomposed_metadata_tables (TrackerDataManager  *manager,
 
        g_return_if_fail (service_name != NULL);
 
-       main_class = (strcmp (service_name, "rdfs:Resource") == 0);
-
        if (g_str_has_prefix (service_name, "xsd:")) {
                /* xsd classes do not derive from rdfs:Resource and do not need separate tables */
                return;
@@ -3067,10 +3064,6 @@ create_decomposed_metadata_tables (TrackerDataManager  *manager,
                in_alter = FALSE;
                create_sql = g_string_new ("");
                g_string_append_printf (create_sql, "CREATE TABLE \"%s\" (ID INTEGER NOT NULL PRIMARY KEY", 
service_name);
-               if (main_class) {
-                       /* FIXME: This column is unneeded */
-                       g_string_append (create_sql, ", Available INTEGER DEFAULT 1");
-               }
        }
 
        properties = tracker_ontologies_get_properties (manager->ontologies, &n_props);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]