Missing perens
This commit is contained in:
parent
677bf0ef62
commit
f20e508dbc
@ -40,6 +40,7 @@ def upgrade():
|
|||||||
# rather than the ID of TextComment object.
|
# rather than the ID of TextComment object.
|
||||||
db.execute(notification_table.update().values(
|
db.execute(notification_table.update().values(
|
||||||
object_id=comment_link.id
|
object_id=comment_link.id
|
||||||
|
))
|
||||||
|
|
||||||
# Find the GMR for this comment or make one if one doesn't exist.
|
# Find the GMR for this comment or make one if one doesn't exist.
|
||||||
gmr = db.execute(gmr_table.select().where(and_(
|
gmr = db.execute(gmr_table.select().where(and_(
|
||||||
@ -88,6 +89,7 @@ def downgrade():
|
|||||||
# Update the notification with the TextComment (i.e. the comment object)
|
# Update the notification with the TextComment (i.e. the comment object)
|
||||||
db.execute(notification_table.update().values(
|
db.execute(notification_table.update().values(
|
||||||
object_id=comment_link.comment_id
|
object_id=comment_link.comment_id
|
||||||
|
))
|
||||||
# Find the GMR for the TextComment
|
# Find the GMR for the TextComment
|
||||||
gmr = db.execute(gmr_table.select().where(and_(
|
gmr = db.execute(gmr_table.select().where(and_(
|
||||||
gmr_table.c.obj_pk == comment_link.id,
|
gmr_table.c.obj_pk == comment_link.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user