Skip to content

Commit 68daa9b

Browse files
Do not recreate tables
1 parent 23de320 commit 68daa9b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

installation_and_upgrade/ibex_install_utils/install_tasks.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,12 @@ def run_force_upgrade_mysql(self):
295295
"""
296296
self._mysql_tasks.install_mysql(force=True)
297297

298+
def run_upgrade_mysql(self):
299+
""":key
300+
Do upgrade of mysql with no table recreate.
301+
"""
302+
self._mysql_tasks.install_mysql(force=False)
303+
298304
def run_update_calibrations_repository(self):
299305
"""update_calibrations_repository"""
300306
self._server_tasks.update_calibrations_repository()
@@ -396,7 +402,11 @@ def run_vhd_post_install(self):
396402
),
397403
"force_upgrade_mysql": (
398404
UpgradeInstrument.run_force_upgrade_mysql,
399-
"upgrade mysql version to latest",
405+
"upgrade mysql version to latest and recreate tables",
406+
),
407+
"upgrade_mysql": (
408+
UpgradeInstrument.run_upgrade_mysql,
409+
"upgrade mysql version to latest but do not recreate tables",
400410
),
401411
"update_calibrations_repository": (
402412
UpgradeInstrument.run_update_calibrations_repository,

installation_and_upgrade/summer_update.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ IF %errorlevel% neq 0 (
1414
xcopy /y %SOURCE%\15.0.0\EPICS\utils\logrotate.py c:\instrument\apps\epics\utils
1515
IF %errorlevel% neq 0 goto ERROR
1616

17-
for %%t in ( truncate_database force_upgrade_mysql update_calibrations_repository setup_log_rotation ) do (
17+
for %%t in ( truncate_database upgrade_mysql update_calibrations_repository setup_log_rotation ) do (
1818
call "%LATEST_PYTHON%" "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" --release_suffix "%SUFFIX%" --confirm_step %%t
1919
IF !errorlevel! neq 0 goto ERROR
2020
)

0 commit comments

Comments
 (0)