|
a/Allura/allura/websetup/bootstrap.py |
|
b/Allura/allura/websetup/bootstrap.py |
|
... |
|
... |
179 |
clear_all_database_tables()
|
179 |
clear_all_database_tables()
|
180 |
for db in conn.database_names():
|
180 |
for db in conn.database_names():
|
181 |
db = conn[db]
|
181 |
db = conn[db]
|
182 |
else:
|
182 |
else:
|
183 |
for database in conn.database_names():
|
183 |
for database in conn.database_names():
|
|
|
184 |
if database not in ( 'allura', 'pyforge', 'project-data'): continue
|
184 |
log.info('Wiping database %s', database)
|
185 |
log.info('Wiping database %s', database)
|
185 |
db = conn[database]
|
186 |
db = conn[database]
|
186 |
for coll in db.collection_names():
|
187 |
for coll in db.collection_names():
|
187 |
if coll.startswith('system.'): continue
|
188 |
if coll.startswith('system.'): continue
|
188 |
log.info('Dropping collection %s:%s', database, coll)
|
189 |
log.info('Dropping collection %s:%s', database, coll)
|