Commit fd4baa18 authored by Michael Davis's avatar Michael Davis
Browse files

gration] Adds TAPE_STATE, STATE_REASON, STATE_UPDATE_TIME, STATE_MODIFIED_BY to migration scripts

parent a2a55bff
...@@ -130,7 +130,8 @@ BEGIN ...@@ -130,7 +130,8 @@ BEGIN
is_full, is_from_castor, is_full, is_from_castor,
label_drive, label_time, last_read_drive, last_read_time, read_mount_count, label_drive, label_time, last_read_drive, last_read_time, read_mount_count,
last_write_drive, last_write_time, write_mount_count, last_write_drive, last_write_time, write_mount_count,
user_comment, creation_log_user_name, creation_log_host_name, creation_log_time, user_comment, tape_state, state_reason, state_update_time, state_modified_by,
creation_log_user_name, creation_log_host_name, creation_log_time,
last_update_user_name, last_update_host_name, last_update_time) last_update_user_name, last_update_host_name, last_update_time)
VALUES ( VALUES (
T.vid, T.vid,
...@@ -156,6 +157,10 @@ BEGIN ...@@ -156,6 +157,10 @@ BEGIN
T.rhost, T.rtime, T.rcount, -- last read drive/time and count T.rhost, T.rtime, T.rcount, -- last read drive/time and count
T.whost, T.wtime, T.wcount, -- last write drive/time and count T.whost, T.wtime, T.wcount, -- last write drive/time and count
'Imported from CASTOR', 'Imported from CASTOR',
(case when BITAND(T.status, 1) = 1 then 'DISABLED' else 'ACTIVE' end), -- tape_state
'Imported from CASTOR', -- state_reason
CNS_getTime(), -- state_update_time
'importTapePool@castor', -- state_modified_by
'CASTOR', 'CASTOR', CNS_getTime(), 'CASTOR', 'CASTOR', CNS_getTime(),
'CASTOR', 'CASTOR', CNS_getTime() 'CASTOR', 'CASTOR', CNS_getTime()
); );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment