Skip to content

Commit

Permalink
Adapt db to pub with rucio (#7481)
Browse files Browse the repository at this point in the history
* allow tm_rest_(host|uri) values to be missing

* add rm_dbs_blockname and tm_block_complete to transferdb
  • Loading branch information
belforte authored Nov 25, 2022
1 parent ddb9bd7 commit 8a048d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions etc/updateOracle.sql
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,11 @@

--Add new column to store generic user config as json kv
-- ALTER TABLE tasks ADD tm_user_config CLOB;

--allow NULL in soon-to-be-removed columns
alter table filetransfersdb modify TM_REST_URI varchar(1000) NULL;
alter table filetransfersdb modify TM_REST_HOST varchar(1000) NULL;

-- Add new columns to allow RUCIO_Transfers communications with Publisher
ALTER TABLE filetransfersdb ADD tm_dbs_blockname VARCHAR(1000);
ALTER TABLE filetransfersdb ADD tm_block_complete VARCHAR(10);
6 changes: 4 additions & 2 deletions src/python/Databases/FileTransfersDB/Oracle/Create.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ def __init__(self, logger=None, dbi=None, param=None):
tm_transfer_max_retry_count NUMBER(5) DEFAULT 2,
tm_publication_retry_count NUMBER(5) DEFAULT 0,
tm_publication_max_retry_count NUMBER(5) DEFAULT 2,
tm_rest_host VARCHAR(50) NOT NULL,
tm_rest_uri VARCHAR(255) NOT NULL,
tm_rest_host VARCHAR(1000),
tm_rest_uri VARCHAR(1000),
tm_dbs_blockname VARCHAR(1000),
tm_block_complete VARCHAR(10),
tm_transfer_state NUMBER(1) NOT NULL,
tm_publication_state NUMBER(1) NOT NULL,
tm_transfer_failure_reason VARCHAR(1000),
Expand Down

0 comments on commit 8a048d1

Please sign in to comment.