From 36678154432f542529d98716c4dfc678fd3c5f22 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 20 2015 11:19:05 +0000 Subject: Make the uid on Issue and PullRequest be not nullable --- diff --git a/progit/model.py b/progit/model.py index abdef1f..6d801f9 100644 --- a/progit/model.py +++ b/progit/model.py @@ -264,7 +264,7 @@ class Issue(BASE): __tablename__ = 'issues' id = sa.Column(sa.Integer, primary_key=True) - uid = sa.Column(sa.String(32), unique=True) + uid = sa.Column(sa.String(32), unique=True, nullable=False) project_id = sa.Column( sa.Integer, sa.ForeignKey( @@ -431,7 +431,7 @@ class PullRequest(BASE): __tablename__ = 'pull_requests' id = sa.Column(sa.Integer, primary_key=True) - uid = sa.Column(sa.String(32), unique=True) + uid = sa.Column(sa.String(32), unique=True, nullable=False) title = sa.Column( sa.Text, nullable=False)