Fixed collections migration to add 'collected' column to media_entries instead of 'collections'

This commit is contained in:
Aaron Williamson 2012-08-30 16:07:54 -04:00 committed by Joar Wandborg
parent a0fdc00fab
commit 59fb87c944

View 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()