From 4f48f303055268fdc6b2f423abafc079849c5f02 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Mon, 4 Nov 2024 19:58:00 -0500 Subject: [PATCH] squash w/ startup/shutdown. Use VARCHAR instead of VARCHAR2 for MySQL. --- scripts/irods/database_upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/irods/database_upgrade.py b/scripts/irods/database_upgrade.py index 2d1e21a62f..2ddb5c0799 100644 --- a/scripts/irods/database_upgrade.py +++ b/scripts/irods/database_upgrade.py @@ -196,7 +196,7 @@ def run_update(irods_config, cursor): if irods_config.catalog_database_type == 'postgres': database_connect.execute_sql_statement(cursor, "alter table R_RULE_EXEC alter column exe_status type varchar(300);") elif irods_config.catalog_database_type == 'mysql': - database_connect.execute_sql_statement(cursor, "alter table R_RULE_EXEC modify exe_status varchar2(300);") + database_connect.execute_sql_statement(cursor, "alter table R_RULE_EXEC modify exe_status varchar(300);") elif irods_config.catalog_database_type == 'oracle': database_connect.execute_sql_statement(cursor, "alter table R_RULE_EXEC modify (exe_status varchar2(300));")