Commit 2309e39d authored by Michael Davis's avatar Michael Davis
Browse files

[migration] Removes non-existent CAPACITY_IN_BYTES column from TAPE table

parent dda9d4e7
......@@ -127,8 +127,8 @@ BEGIN
AND TI.model = DGN.model
AND BITAND(TS.status, 2) = 0 AND BITAND(TS.status, 32) = 0 -- not already EXPORTED or ARCHIVED
AND TS.poolname = inTapePool) LOOP
INSERT INTO Tape (vid, media_type, vendor, logical_library_id, tape_pool_id,
encryption_key_name, capacity_in_bytes, data_in_bytes, last_fseq,
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,
label_drive, label_time, last_read_drive, last_read_time, read_mount_count,
last_write_drive, last_write_time, write_mount_count,
......@@ -148,14 +148,6 @@ BEGIN
(SELECT logical_library_id FROM Logical_Library WHERE logical_library_name = T.dgn),
varTapePoolId,
NULL, -- empty encryption key name
decode(T.density, -- capacity: only one of the options below (see #488)
'7000GC', 7000000000000,
'9TC', 9000000000000,
'10TC', 10000000000000,
'12TC', 12000000000000,
'15TC', 15000000000000,
'20TC', 20000000000000,
0),
0, -- total data: will be filled by populateCTAFilesFromCASTOR()
T.nbfiles,
decode(BITAND(T.status, 1), 1, '1', '0'), -- DISABLED flag
......
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