aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db
diff options
context:
space:
mode:
authortilly-Q <nattilypigeonfowl@gmail.com>2013-11-19 15:14:14 -0500
committertilly-Q <nattilypigeonfowl@gmail.com>2013-11-19 15:14:14 -0500
commit9412fffef1fc7d07ff76c1614c56ff8bd0b1ecbc (patch)
treee5425258f38105f41e35437c7038d3e9a22771ee /mediagoblin/db
parent7dfcc538d3a5f9aaedee294d4a870c2676470d68 (diff)
downloadmediagoblin-9412fffef1fc7d07ff76c1614c56ff8bd0b1ecbc.tar.lz
mediagoblin-9412fffef1fc7d07ff76c1614c56ff8bd0b1ecbc.tar.xz
mediagoblin-9412fffef1fc7d07ff76c1614c56ff8bd0b1ecbc.zip
I went through the code and just removed some blank spaces. I also looked it
thru and it looked great.
Diffstat (limited to 'mediagoblin/db')
-rw-r--r--mediagoblin/db/migrations.py5
-rw-r--r--mediagoblin/db/models.py2
2 files changed, 3 insertions, 4 deletions
diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py
index 339bc963..426080a2 100644
--- a/mediagoblin/db/migrations.py
+++ b/mediagoblin/db/migrations.py
@@ -713,11 +713,10 @@ def drop_MediaEntry_collected(db):
Drop unused MediaEntry.collected column
"""
metadata = MetaData(bind=db.bind)
- media_collected= inspect_table(metadata, 'core__media_entries')
+ media_collected= inspect_table(metadata, 'core__media_entries')
media_collected = media_collected.columns['collected']
-
media_collected.drop()
-
+
db.commit()
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index 079578a2..b750375d 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -219,11 +219,11 @@ class MediaEntry(Base, MediaEntryMixin):
state = Column(Unicode, default=u'unprocessed', nullable=False)
# or use sqlalchemy.types.Enum?
license = Column(Unicode)
-
file_size = Column(Integer, default=0)
fail_error = Column(Unicode)
fail_metadata = Column(JSONEncoded)
+
transcoding_progress = Column(SmallInteger)
queued_media_file = Column(PathTupleWithSlashes)