From: Christopher Allan Webber Date: Mon, 2 Jan 2012 19:38:08 +0000 (-0600) Subject: We should probably add that object to the DB also :P X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=23f4c6b2fd2440433bcb2443633d847ddad17238;p=mediagoblin.git We should probably add that object to the DB also :P --- diff --git a/mediagoblin/db/sql/util.py b/mediagoblin/db/sql/util.py index 61ba1b45..4938bcad 100644 --- a/mediagoblin/db/sql/util.py +++ b/mediagoblin/db/sql/util.py @@ -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):