Fixed collections migration to add 'collected' column to media_entries instead of...
authorAaron Williamson <aaron@copiesofcopies.org>
Thu, 30 Aug 2012 20:07:54 +0000 (16:07 -0400)
committerJoar Wandborg <git@wandborg.com>
Tue, 18 Sep 2012 16:10:36 +0000 (18:10 +0200)
mediagoblin/db/sql/migrations.py

index 3db51ab9489200e2e1310c1ceac60f0872cac899..ea137ff1fe4bd0375996ae16b766c0cbe104a42e 100644 (file)
@@ -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()