diff options
author | Jessica Tallon <tsyesika@tsyesika.se> | 2016-02-29 15:34:14 +0000 |
---|---|---|
committer | Jessica Tallon <tsyesika@tsyesika.se> | 2016-02-29 15:34:14 +0000 |
commit | 7fa67404eec307caaf682ac52e39af07425028c4 (patch) | |
tree | f276fae654249c430380491e609bf9c72fc94ce5 /mediagoblin/db | |
parent | f20e508dbc9f2ddb7e831974cff4611b72453b52 (diff) | |
download | mediagoblin-7fa67404eec307caaf682ac52e39af07425028c4.tar.lz mediagoblin-7fa67404eec307caaf682ac52e39af07425028c4.tar.xz mediagoblin-7fa67404eec307caaf682ac52e39af07425028c4.zip |
Simply for the Notification.object_id migration
Diffstat (limited to 'mediagoblin/db')
-rw-r--r-- | mediagoblin/db/migrations/versions/4066b9f8b84a_use_comment_link_ids_notifications.py | 10 |
1 files changed, 0 insertions, 10 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 2e9c7513..9dfef18d 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 @@ -36,12 +36,6 @@ def upgrade(): comment_table.c.comment_id == notification.object_id )).first() - # Okay now we need to update the notification with the ID of the link - # 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, @@ -86,10 +80,6 @@ def downgrade(): comment_table.c.id == notification.object_id )).first() - # 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, |