[Collab-qa-commits] r1057 - udd/src
lucas at alioth.debian.org
lucas at alioth.debian.org
Sun Aug 10 13:46:36 UTC 2008
Author: lucas
Date: 2008-08-10 13:46:36 +0000 (Sun, 10 Aug 2008)
New Revision: 1057
Modified:
udd/src/db_manager.py
Log:
added tables to drop
Modified: udd/src/db_manager.py
===================================================================
--- udd/src/db_manager.py 2008-08-10 13:45:55 UTC (rev 1056)
+++ udd/src/db_manager.py 2008-08-10 13:46:36 UTC (rev 1057)
@@ -9,9 +9,9 @@
TABLES = ('popcon_src_average', 'popcon_src', 'popcon',
'ubuntu_popcon_src_average', 'ubuntu_popcon_src', 'ubuntu_popcon',
'sources', 'packages', 'ubuntu_sources', 'ubuntu_packages', 'migrations',
- 'bugs_archived', 'bugs_unarchived', 'bug_merged_with', 'bug_user_tags',
- 'bug_found_in', 'bug_fixed_in', 'bug_tags', 'upload_history')
-VIEWS = ('bugs', )
+ 'bugs_archived', 'bugs', 'bug_merged_with', 'bug_user_tags',
+ 'bug_found_in', 'bug_fixed_in', 'bug_tags', 'upload_history', 'carnivore_emails', 'carnivore_keys', 'carnivore_login', 'carnivore_names', 'lintian', 'orphaned_packages')
+VIEWS = ('bugs_both',)
def print_help():
print "Usage: %s <config> <delete|setup>" % sys.argv[0]
@@ -23,7 +23,7 @@
c.execute("DROP VIEW " + v)
for t in TABLES:
- c.execute("DROP TABLE " + t)
+ c.execute("DROP TABLE " + t + " CASCADE")
def setup(conn, config):
Property changes on: udd/src/db_manager.py
___________________________________________________________________
Name: svn:executable
+ *
More information about the Collab-qa-commits
mailing list