Added default for 'collected' column to migration

This commit is contained in:
Aaron Williamson 2012-08-30 17:14:08 -04:00 committed by Joar Wandborg
parent 8926c94978
commit d8984df83f

View File

@ -99,7 +99,7 @@ def add_mediaentry_collected(db_conn):
media_entry = Table('core__media_entries', metadata, autoload=True,
autoload_with=db_conn.bind)
col = Column('collected', Integer)
col = Column('collected', Integer, default=0)
col.create(media_entry)
db_conn.commit()