From 93a61d99e986cdaa1d6a16b6e69385593f69e6fe Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 01 2015 09:51:38 +0000 Subject: Add a unique identifier to the pull_request_flags table This unique identifier can be provided by the 3rd party tool and thus be used to update an previously inserted flag. --- diff --git a/pagure/lib/model.py b/pagure/lib/model.py index 07572dc..d1d1cc7 100644 --- a/pagure/lib/model.py +++ b/pagure/lib/model.py @@ -838,6 +838,7 @@ class PullRequestFlag(BASE): __tablename__ = 'pull_request_flags' id = sa.Column(sa.Integer, primary_key=True) + uid = sa.Column(sa.String(32), unique=True, nullable=False) pull_request_uid = sa.Column( sa.Text, sa.ForeignKey(