From: Aaron Williamson Date: Thu, 30 Aug 2012 20:07:54 +0000 (-0400) Subject: Fixed collections migration to add 'collected' column to media_entries instead of... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=59fb87c944cf12ebe8294bd59be5adaa534edcd1;p=mediagoblin.git Fixed collections migration to add 'collected' column to media_entries instead of 'collections' --- diff --git a/mediagoblin/db/sql/migrations.py b/mediagoblin/db/sql/migrations.py index 3db51ab9..ea137ff1 100644 --- a/mediagoblin/db/sql/migrations.py +++ b/mediagoblin/db/sql/migrations.py @@ -62,12 +62,12 @@ def add_transcoding_progress(db_conn): @RegisterMigration(4, MIGRATIONS) -def add_mediaentry_collections(db_conn): +def add_mediaentry_collected(db_conn): metadata = MetaData(bind=db_conn.bind) media_entry = Table('core__media_entries', metadata, autoload=True, autoload_with=db_conn.bind) - col = Column('collections', Integer) + col = Column('collected', Integer) col.create(media_entry) db_conn.commit()