Added default for 'collected' column to migration
authorAaron Williamson <aaron@copiesofcopies.org>
Thu, 30 Aug 2012 21:14:08 +0000 (17:14 -0400)
committerJoar Wandborg <git@wandborg.com>
Tue, 18 Sep 2012 16:10:36 +0000 (18:10 +0200)
mediagoblin/db/sql/migrations.py

index 35504ad0e3bb865fe822ab921a3aac9318e4f229..fb17828513b86692a0fd6a1648b94639fab8f493 100644 (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()