Skip to content

Commit

Permalink
OOps
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Feb 11, 2017
1 parent 3acd187 commit 9723de9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions nzbhydra/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,11 +627,14 @@ class Meta(object):

if vi.version == 16:
logger.info("Dropping time column for NZB downloads")
migrator = SqliteMigrator(db)
with db.transaction():
migrate(
migrator.drop_column('indexernzbdownload', 'time')
)
try:
migrator = SqliteMigrator(db)
with db.transaction():
migrate(
migrator.drop_column('indexernzbdownload', 'time')
)
except: #May not exist because I fucked up
pass
vi.version = 17
vi.save()
logger.info("Database migration completed successfully")

0 comments on commit 9723de9

Please sign in to comment.