From: Aaron Williamson Date: Thu, 30 Aug 2012 21:14:08 +0000 (-0400) Subject: Added default for 'collected' column to migration X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d8984df83fbdfd44b783d0ea8dcb9d878991b615;p=mediagoblin.git Added default for 'collected' column to migration --- diff --git a/mediagoblin/db/sql/migrations.py b/mediagoblin/db/sql/migrations.py index 35504ad0..fb178285 100644 --- a/mediagoblin/db/sql/migrations.py +++ b/mediagoblin/db/sql/migrations.py @@ -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()