diff --git a/core/src/main/scripts/migrate_db.py b/core/src/main/scripts/migrate_db.py index c2f1c0c0a05..96e8c4665e6 100755 --- a/core/src/main/scripts/migrate_db.py +++ b/core/src/main/scripts/migrate_db.py @@ -61,6 +61,9 @@ def get_db_cursor(portal_properties): connection_kwargs['db'] = portal_properties.database_name if portal_properties.database_use_ssl == 'true': connection_kwargs['ssl'] = {"ssl_mode": True} + connection_kwargs['ssl_mode'] = 'REQUIRED' + else: + connection_kwargs['ssl_mode'] = 'DISABLED' connection = MySQLdb.connect(**connection_kwargs) except MySQLdb.Error as exception: