Commit e7f30d97 authored by Tomas Taraba's avatar Tomas Taraba

3386 Make display name in labels unique

parent bf1d3dba
......@@ -14,7 +14,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <>
from sqlalchemy.schema import Column, PrimaryKeyConstraint
from sqlalchemy.types import Integer, String, Text
......@@ -28,5 +27,5 @@ class Labels(Base):
id = Column(Integer, nullable=False, autoincrement=True)
display_name = Column(String(128), nullable=False)
display_name = Column(String(128), nullable=False, unique=True)
description = Column(Text)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment