assert was positive when it should be negative, fixed
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 2 Jan 2012 20:04:16 +0000 (14:04 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 22:33:45 +0000 (16:33 -0600)
mediagoblin/db/sql/util.py

index dfc36a61999756c115ef6b42c32be61737be9eea..604f040c8e3547142ad08bd66795edea813b0567 100644 (file)
@@ -107,7 +107,7 @@ class MigrationManager(object):
         Note that this will fail if there's no migration record for
         this class!
         """
-        assert self.database_current_migration is None
+        assert self.database_current_migration is not None
 
         db_current_migration = self.database_current_migration()