From b16ce1a02ac38a1a9de72ef70f062a8ec5690bc1 Mon Sep 17 00:00:00 2001 From: Aidaho Date: Sat, 3 Jun 2023 20:05:04 +0300 Subject: [PATCH] v6.3.13.0 Changelog: https://roxy-wi.org/changelog#6_3_13 --- app/modules/db/db_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/db/db_model.py b/app/modules/db/db_model.py index 10f8b632..6486580b 100644 --- a/app/modules/db/db_model.py +++ b/app/modules/db/db_model.py @@ -433,11 +433,11 @@ class SMON(BaseModel): ssl_expire_critical_alert = IntegerField(constraints=[SQL('DEFAULT 0')]) ssl_expire_date = CharField(null=True) pd_channel_id = IntegerField(null=True) - check_type = CharField(constraints=[SQL('DEFAULT tcp')]) + check_type = CharField(constraints=[SQL('DEFAULT "tcp"')]) class Meta: table_name = 'smon' - constraints = [SQL('UNIQUE (ip, port, http, body)')] + constraints = [SQL('UNIQUE (name, port, http, body)')] class Alerts(BaseModel):