Add a macro for tv profile
[platform/core/connectivity/stc-manager.git] / src / database / db-common.c
old mode 100755 (executable)
new mode 100644 (file)
index a4c2a3d..372eb03
@@ -109,9 +109,11 @@ stc_error_e stc_db_initialize(void)
 
        stc_db_initialize_once();
 
+#ifndef TIZEN_TV_EXT
        EXEC(STC_ERROR_NONE, table_statistics_prepare(database));
        EXEC(STC_ERROR_NONE, table_restrictions_prepare(database));
        EXEC(STC_ERROR_NONE, table_counters_prepare(database));
+#endif
        EXEC(STC_ERROR_NONE, table_firewall_prepare(database));
        EXEC(STC_ERROR_NONE, stc_init_db_guard());
 
@@ -132,9 +134,11 @@ gboolean stc_db_deinitialize(void)
                return TRUE; //LCOV_EXCL_LINE
        }
 
+#ifndef TIZEN_TV_EXT
        table_statistics_finalize();
        table_restrictions_finalize();
        table_counters_finalize();
+#endif
        table_firewall_finalize();
        sqlite3_close(database);