summaryrefslogtreecommitdiff
path: root/tko/save_query.cgi
diff options
context:
space:
mode:
authorshoward <showard@592f7852-d20e-0410-864c-8624ca9c26a4>2009-12-23 00:03:56 +0000
committershoward <showard@592f7852-d20e-0410-864c-8624ca9c26a4>2009-12-23 00:03:56 +0000
commitcf87d69c7b54c8f41e11a7ee6a7399a830dcfb5c (patch)
tree016f5ccf21a1e9870f2dc52e8a87efbe7b82a185 /tko/save_query.cgi
parent2bea5139735e5ead1ac3ba39cef272ecfd6b6e18 (diff)
Rename the tables in the databases, by prefixing the app name. This is
in preparation for merging the two databases and the two Django projects into one. Note that this renames *all* standard Autotest DB tables in both the autotest_web and tko databases. If you have scripts written directly against these databases, *they will break*. If your scripts access the RPC interfaces, they should continue to work. Another patch will be along within the next few weeks to actually move the TKO tables into the autotest_web database. From: James Ren <jamesren@google.com> Signed-off-by: Steve Howard <showard@google.com> Rename the tables in the databases, by prefixing the app name. This is in preparation for merging the two databases and the two Django projects into one. Note that this renames *all* standard Autotest DB tables in both the autotest_web and tko databases. If you have scripts written directly against these databases, *they will break*. If your scripts access the RPC interfaces, they should continue to work. From: James Ren <jamesren@google.com> Signed-off-by: Steve Howard <showard@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@4040 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/save_query.cgi')
-rwxr-xr-xtko/save_query.cgi7
1 files changed, 2 insertions, 5 deletions
diff --git a/tko/save_query.cgi b/tko/save_query.cgi
index 04db50bc..d651cf3b 100755
--- a/tko/save_query.cgi
+++ b/tko/save_query.cgi
@@ -31,7 +31,7 @@ def log_query():
data_to_insert = {'uid':uid, 'time_created':tm,
'user_comment':comment, 'url':HTTP_REFERER }
try:
- db_obj.insert('query_history', data_to_insert)
+ db_obj.insert('tko_query_history', data_to_insert)
except:
raise QueryHistoryError("Could not save query")
@@ -41,7 +41,7 @@ def delete_query(time_stamp):
db_obj = db.db()
data_to_delete = {'time_created':time_stamp}
try:
- db_obj.delete('query_history', data_to_delete)
+ db_obj.delete('tko_query_history', data_to_delete)
except Exception:
raise QueryHistoryError("Could not delete query")
@@ -78,6 +78,3 @@ def main():
main()
-
-
-