We should probably add that object to the DB also :P
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 2 Jan 2012 19:38:08 +0000 (13:38 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 22:33:45 +0000 (16:33 -0600)
mediagoblin/db/sql/util.py

index 61ba1b4532998ea40fe66a4a65a17a32ffc936fa..4938bcad5829dccc30a68684f7750ad7d3956a5f 100644 (file)
@@ -137,9 +137,10 @@ class MigrationManager(object):
         """
         Create a new migration record for this migration set
         """
-        self.migration_model(
+        migration_record = self.migration_model(
             name=self.name,
             version=self.latest_migration())
+        self.database.add(migration_record)
         self.database.commit()
 
     def dry_run(self):