diff --git a/murano/db/models.py b/murano/db/models.py index ed87fc47..45710579 100644 --- a/murano/db/models.py +++ b/murano/db/models.py @@ -56,6 +56,8 @@ Base = declarative.declarative_base(cls=_MuranoBase) class Environment(Base, TimestampMixin): """Represents a Environment in the metadata-store.""" __tablename__ = 'environment' + __table_args__ = (sa.Index( + 'ix_name_tenant_id', 'name', 'tenant_id', unique=True),) id = sa.Column(sa.String(255), primary_key=True,