Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
fd4baa18
Commit
fd4baa18
authored
Mar 05, 2021
by
Michael Davis
Browse files
gration] Adds TAPE_STATE, STATE_REASON, STATE_UPDATE_TIME, STATE_MODIFIED_BY to migration scripts
parent
a2a55bff
Changes
1
Hide whitespace changes
Inline
Side-by-side
migration/oracle_catalogue_castor_migration.sql
View file @
fd4baa18
...
...
@@ -130,7 +130,8 @@ BEGIN
is_full
,
is_from_castor
,
label_drive
,
label_time
,
last_read_drive
,
last_read_time
,
read_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
)
VALUES
(
T
.
vid
,
...
...
@@ -156,6 +157,10 @@ BEGIN
T
.
rhost
,
T
.
rtime
,
T
.
rcount
,
-- last read drive/time and count
T
.
whost
,
T
.
wtime
,
T
.
wcount
,
-- last write drive/time and count
'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
()
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment