aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db
diff options
context:
space:
mode:
authorJessica Tallon <tsyesika@tsyesika.se>2016-02-29 14:26:05 +0000
committerJessica Tallon <tsyesika@tsyesika.se>2016-02-29 14:26:05 +0000
commitf20e508dbc9f2ddb7e831974cff4611b72453b52 (patch)
treec98386ad25baf14184df8a2a4211ceeda5a31f1f /mediagoblin/db
parent677bf0ef6277a08ce523925d66919bd44b3b7779 (diff)
downloadmediagoblin-f20e508dbc9f2ddb7e831974cff4611b72453b52.tar.lz
mediagoblin-f20e508dbc9f2ddb7e831974cff4611b72453b52.tar.xz
mediagoblin-f20e508dbc9f2ddb7e831974cff4611b72453b52.zip
Missing perens
Diffstat (limited to 'mediagoblin/db')
-rw-r--r--mediagoblin/db/migrations/versions/4066b9f8b84a_use_comment_link_ids_notifications.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/db/migrations/versions/4066b9f8b84a_use_comment_link_ids_notifications.py b/mediagoblin/db/migrations/versions/4066b9f8b84a_use_comment_link_ids_notifications.py
index dd0fb883..2e9c7513 100644
--- a/mediagoblin/db/migrations/versions/4066b9f8b84a_use_comment_link_ids_notifications.py
+++ b/mediagoblin/db/migrations/versions/4066b9f8b84a_use_comment_link_ids_notifications.py
@@ -40,7 +40,8 @@ def upgrade():
# rather than the ID of TextComment object.
db.execute(notification_table.update().values(
object_id=comment_link.id
-
+ ))
+
# Find the GMR for this comment or make one if one doesn't exist.
gmr = db.execute(gmr_table.select().where(and_(
gmr_table.c.obj_pk == comment_link.id,
@@ -88,6 +89,7 @@ def downgrade():
# Update the notification with the TextComment (i.e. the comment object)
db.execute(notification_table.update().values(
object_id=comment_link.comment_id
+ ))
# Find the GMR for the TextComment
gmr = db.execute(gmr_table.select().where(and_(
gmr_table.c.obj_pk == comment_link.id,