Adds migration on MediaEntry to add uuid
authorJessica Tallon <xray7224@googlemail.com>
Wed, 14 Aug 2013 14:41:02 +0000 (15:41 +0100)
committerJessica Tallon <jessica@megworld.co.uk>
Tue, 22 Jul 2014 22:13:13 +0000 (23:13 +0100)
mediagoblin/db/migrations.py
mediagoblin/db/models.py

index 59aec4d2f1f6df989da9c7be73eee4d1f6587e62..85b1edededaf132d2ef437bf7456360f12b1371d 100644 (file)
@@ -466,7 +466,6 @@ def create_oauth1_tables(db):
 
     db.commit()
 
-
 @RegisterMigration(15, MIGRATIONS)
 def wants_notifications(db):
     """Add a wants_notifications field to User model"""
index 61a7f251739ac2f3697be7b16edbb10a0c548ff3..02392792f98423af69fdbe55fcfab2817c01123d 100644 (file)
@@ -20,6 +20,7 @@ TODO: indexes on foreignkeys, where useful.
 
 import logging
 import datetime
+import base64
 
 from sqlalchemy import Column, Integer, Unicode, UnicodeText, DateTime, \
         Boolean, ForeignKey, UniqueConstraint, PrimaryKeyConstraint, \
@@ -422,7 +423,6 @@ class MediaEntry(Base, MediaEntryMixin):
         # pass through commit=False/True in kwargs
         super(MediaEntry, self).delete(**kwargs)
 
-
 class FileKeynames(Base):
     """
     keywords for various places.