From 9723de97312885c0acb4729be7d80b152e285915 Mon Sep 17 00:00:00 2001 From: "theotherp@gmx.de" Date: Sat, 11 Feb 2017 16:39:31 +0100 Subject: [PATCH] OOps --- nzbhydra/database.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nzbhydra/database.py b/nzbhydra/database.py index d50f458..942f0a2 100644 --- a/nzbhydra/database.py +++ b/nzbhydra/database.py @@ -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") \ No newline at end of file