From 492d7430bbcd449b02ca1ae8b115421bfac5cd89 Mon Sep 17 00:00:00 2001 From: khamitovdr Date: Mon, 23 Dec 2024 18:16:28 +0300 Subject: [PATCH] Add missing SSL fields to MySQL connection storage schema --- .../core/storage_schemas/connection.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/dl_connector_mysql/dl_connector_mysql/core/storage_schemas/connection.py b/lib/dl_connector_mysql/dl_connector_mysql/core/storage_schemas/connection.py index 6ccaa7124..06db9fe34 100644 --- a/lib/dl_connector_mysql/dl_connector_mysql/core/storage_schemas/connection.py +++ b/lib/dl_connector_mysql/dl_connector_mysql/core/storage_schemas/connection.py @@ -1,3 +1,5 @@ +from marshmallow import fields as ma_fields + from dl_core.us_manager.storage_schemas.connection import ConnectionSQLDataStorageSchema from dl_connector_mysql.core.us_connection import ConnectionMySQL @@ -5,3 +7,16 @@ class ConnectionMySQLDataStorageSchema(ConnectionSQLDataStorageSchema[ConnectionMySQL.DataModel]): TARGET_CLS = ConnectionMySQL.DataModel + + ssl_enable = ma_fields.Boolean( + required=False, + allow_none=False, + dump_default=False, + load_default=False, + ) + ssl_ca = ma_fields.String( + required=False, + allow_none=True, + dump_default=None, + load_default=None, + )