From 66ac5edf61fa844941f119d633f575f6810e5119 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Wed, 20 Apr 2022 18:13:42 +0300 Subject: [PATCH] v6.0.0.0 Changelog: https://roxy-wi.org/changelog.py#6 --- app/db_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/db_model.py b/app/db_model.py index 52985bab..ba6de13f 100644 --- a/app/db_model.py +++ b/app/db_model.py @@ -481,6 +481,7 @@ class Services(BaseModel): class Meta: table_name = 'services' primary_key = False + constraints = [SQL('UNIQUE (service_id, service)')] def create_tables():