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

[migration] Removes IS_DISABLED, IS_READ_ONLY, IS_ARCHIVED, IS_EXPORTED from migration scripts

parent 860a4ebd
......@@ -127,7 +127,7 @@ BEGIN
AND TS.poolname = inTapePool) LOOP
INSERT INTO Tape (vid, media_type_id, vendor, logical_library_id, tape_pool_id,
encryption_key_name, data_in_bytes, last_fseq,
is_disabled, is_full, is_read_only, is_archived, is_exported, is_from_castor,
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,
......@@ -148,11 +148,9 @@ BEGIN
NULL, -- empty encryption key name
0, -- total data: will be filled by populateCTAFilesFromCASTOR()
T.nbfiles,
decode(BITAND(T.status, 1), 1, '1', '0'), -- DISABLED flag
-- decode(BITAND(T.status, 1), 1, '1', '0'), -- DISABLED flag
decode(BITAND(T.status, 8), 8, '1', '0'), -- FULL flag
decode(BITAND(T.status, 16), 16, '1', '0'), -- RDONLY flag
'0', -- ARCHIVED flag
'0', -- EXPORTED flag
-- decode(BITAND(T.status, 16), 16, '1', '0'), -- RDONLY flag
'1', -- is_from_castor flag
'CASTOR', 0, -- label drive and time (unknown)
T.rhost, T.rtime, T.rcount, -- last read drive/time and count
......
Markdown is supported
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