diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-01-02 13:38:08 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-01-29 16:33:45 -0600 |
commit | 23f4c6b2fd2440433bcb2443633d847ddad17238 (patch) | |
tree | 8b730d6efaaed3f277f826fe89f0e981402be064 /mediagoblin/db/sql/util.py | |
parent | 09dcc34c95a361c76a1aeed59b41cb14f91c17c6 (diff) | |
download | mediagoblin-23f4c6b2fd2440433bcb2443633d847ddad17238.tar.lz mediagoblin-23f4c6b2fd2440433bcb2443633d847ddad17238.tar.xz mediagoblin-23f4c6b2fd2440433bcb2443633d847ddad17238.zip |
We should probably add that object to the DB also :P
Diffstat (limited to 'mediagoblin/db/sql/util.py')
-rw-r--r-- | mediagoblin/db/sql/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |