sqlalchemy table webhooks unique constraint removed

shouldn't be unique as different tenants can use the same url and regex
 also, this column type is not support on some systems

Change-Id: Ifb29217e103c68ea82e421a250e827afd2a0fc65
This commit is contained in:
Idan Hefetz 2018-01-29 07:57:53 +00:00
parent b10b083480
commit f2c63bc388

View File

@ -16,7 +16,7 @@ import json
from oslo_db.sqlalchemy import models
from sqlalchemy import Column, DateTime, INTEGER, String, \
SmallInteger, BigInteger, Index, Boolean, UniqueConstraint
SmallInteger, BigInteger, Index, Boolean
from sqlalchemy.ext.declarative import declarative_base
import sqlalchemy.types as types
@ -172,9 +172,6 @@ class Webhooks(Base):
url = Column(String(256), nullable=False)
headers = Column(String(1024))
regex_filter = Column(String(512))
constraint = UniqueConstraint('url', 'regex_filter')
__table_args__ = (UniqueConstraint('url', 'regex_filter'),)
def __repr__(self):
return \