From 6633ba7144dbc884732ee521d380456bbb2146f7 Mon Sep 17 00:00:00 2001
From: Tim Laszlo <tim.laszlo@gmail.com>
Date: Mon, 4 Jun 2012 14:05:25 -0500
Subject: DBStats: Remove custom sql

Remove the custom sql file.  This failed to install in MySQL.
Use django to index Interaction.timestamp instead of custom sql.
---
 src/lib/Bcfg2/Server/Reports/reports/sql/client.sql | 7 -------
 1 file changed, 7 deletions(-)
 delete mode 100644 src/lib/Bcfg2/Server/Reports/reports/sql/client.sql

(limited to 'src/lib/Bcfg2/Server/Reports/reports/sql/client.sql')

diff --git a/src/lib/Bcfg2/Server/Reports/reports/sql/client.sql b/src/lib/Bcfg2/Server/Reports/reports/sql/client.sql
deleted file mode 100644
index 28e785450..000000000
--- a/src/lib/Bcfg2/Server/Reports/reports/sql/client.sql
+++ /dev/null
@@ -1,7 +0,0 @@
-CREATE VIEW reports_current_interactions AS SELECT x.client_id AS client_id, reports_interaction.id AS interaction_id FROM (select client_id, MAX(timestamp) as timer FROM reports_interaction GROUP BY client_id) x, reports_interaction WHERE reports_interaction.client_id = x.client_id AND reports_interaction.timestamp = x.timer;
-
-create index reports_interaction_client_id on reports_interaction (client_id);
-create index reports_client_current_interaction_id on reports_client (current_interaction_id);
-create index reports_performance_interaction_performance_id on reports_performance_interaction (performance_id);
-create index reports_interaction_timestamp on reports_interaction (timestamp);
-create index reports_performance_interation_interaction_id on reports_performance_interaction (interaction_id);
-- 
cgit v1.2.3-1-g7c22

