Skip to content

Commit

Permalink
Python: koshi fix for not dropping the cache tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Zydox authored and Zydox committed Jul 11, 2010
1 parent 9e110b4 commit 13c4540
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
from upload import parseZip
import os
db.Connect()

print 'DB: Rebuild init'
db.metadata.drop_all()
db.metadata.create_all()
tables = [ Crash, RecordsData, Status, Settings, SettingsData, Stacktrace, StacktraceData, StacktraceTranslated, DbConfig ]
for table in tables:
table.__table__.drop()
table.__table__.create()
print 'DB: Rebuild completed'

print 'Upload: parseing init'
Expand Down

0 comments on commit 13c4540

Please sign in to comment.