Adds migration on MediaEntry to add uuid
This commit is contained in:
parent
d7b3805f2d
commit
e590179ab6
@ -466,7 +466,6 @@ def create_oauth1_tables(db):
|
|||||||
|
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
|
|
||||||
@RegisterMigration(15, MIGRATIONS)
|
@RegisterMigration(15, MIGRATIONS)
|
||||||
def wants_notifications(db):
|
def wants_notifications(db):
|
||||||
"""Add a wants_notifications field to User model"""
|
"""Add a wants_notifications field to User model"""
|
||||||
|
@ -20,6 +20,7 @@ TODO: indexes on foreignkeys, where useful.
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import datetime
|
import datetime
|
||||||
|
import base64
|
||||||
|
|
||||||
from sqlalchemy import Column, Integer, Unicode, UnicodeText, DateTime, \
|
from sqlalchemy import Column, Integer, Unicode, UnicodeText, DateTime, \
|
||||||
Boolean, ForeignKey, UniqueConstraint, PrimaryKeyConstraint, \
|
Boolean, ForeignKey, UniqueConstraint, PrimaryKeyConstraint, \
|
||||||
@ -422,7 +423,6 @@ class MediaEntry(Base, MediaEntryMixin):
|
|||||||
# pass through commit=False/True in kwargs
|
# pass through commit=False/True in kwargs
|
||||||
super(MediaEntry, self).delete(**kwargs)
|
super(MediaEntry, self).delete(**kwargs)
|
||||||
|
|
||||||
|
|
||||||
class FileKeynames(Base):
|
class FileKeynames(Base):
|
||||||
"""
|
"""
|
||||||
keywords for various places.
|
keywords for various places.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user