Skip to content

Commit

Permalink
squash w/ db upgrade python change. Remove SQL instruction to increas…
Browse files Browse the repository at this point in the history
…e size of exe_status column.
  • Loading branch information
korydraughn committed Nov 8, 2024
1 parent 6be6722 commit 6a68e32
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scripts/irods/database_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,6 @@ def run_update(irods_config, cursor):
database_connect.execute_sql_statement(cursor, statement_str.format(scheme, option, password_config_dict[option]))

elif new_schema_version == 12:
# Increase the size of R_RULE_EXEC.exe_status to 300 characters. This change allows the delay server
# to store the FQDN in the column. This is necessary for making it possible to identify which delay server
# is processing a delay rule.
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 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));")

# Add three new columns to the R_RULE_EXEC table for storing delay server claim information:
# - delay_server_host: Holds the FQDN of the delay server which is executing the delay rule.
# - delay_server_pid: Holds the PID of the delay server which is executing the delay rule.
Expand Down

0 comments on commit 6a68e32

Please sign in to comment.