[SE-3040] Enables Auto Commit for MYSQLdb When Retrieving Cursor for DB
Created by: nizarmah
Previously, any preupgrade sql commands ran would not be committed to the MySQL database. So, this PR enables auto commit in order to commit any changes during instance_redeploy
to the MySQL database.
JIRA tickets: SE-3040
Testing instructions:
- Checkout the changes on Stage
- Run the
instance_redeploy
command with--preupgrade-sql-commands
argument specified - Make sure changes to MySQL database are committed / applied
Reviewers
-
@Kelketek