Skip to content
GitLab
Menu
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
2309e39d
Commit
2309e39d
authored
Jun 16, 2020
by
Michael Davis
Browse files
[migration] Removes non-existent CAPACITY_IN_BYTES column from TAPE table
parent
dda9d4e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
migration/oracle_catalogue_castor_migration.sql
View file @
2309e39d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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