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
33b1de2d
Commit
33b1de2d
authored
Jun 10, 2020
by
Michael Davis
Browse files
[migration] Adds SQL script to clean up CTA Catalogue schema after migration is complete
parent
50399af1
Changes
1
Hide whitespace changes
Inline
Side-by-side
migration/cta_catalogue_remove_castor_migration.sql
0 → 100644
View file @
33b1de2d
/*!
* @project The CERN Tape Archive (CTA)
* @brief Clean up CTA Catalogue after migration from CASTOR
* @copyright Copyright 2020 CERN
* @license This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-- Remove Procedures
DROP
PROCEDURE
importTapePool
;
DROP
PROCEDURE
populateCTAFilesFromCASTOR
;
DROP
PROCEDURE
importFromCASTOR
;
DROP
PROCEDURE
removeCASTORMetadata
;
-- Drop temporary tables
DROP
TABLE
Temp_Remove_CASTOR_Metadata
;
-- Remove Types
DROP
TYPE
NUMLIST
;
-- Remove Synonyms
DROP
SYNONYM
CNS_CTAFilesHelper
;
DROP
SYNONYM
CNS_CTAFiles2ndCopyHelper
;
DROP
SYNONYM
CNS_CTADirsHelper
;
DROP
SYNONYM
CNS_CTAMigrationLog
;
DROP
SYNONYM
CNS_Class_Metadata
;
DROP
SYNONYM
CNS_Dirs_Full_Path
;
DROP
SYNONYM
CNS_filesForCTAExport
;
DROP
SYNONYM
CNS_zeroByteFilesForCTAExport
;
DROP
SYNONYM
CNS_dirsForCTAExport
;
DROP
SYNONYM
CNS_ctaLog
;
DROP
SYNONYM
CNS_getTime
;
DROP
SYNONYM
GetTime
;
DROP
SYNONYM
Vmgr_tape_side
;
DROP
SYNONYM
vmgr_tape_info
;
DROP
SYNONYM
Vmgr_tape_dgnmap
;
-- Remove Error Log
-- dbms_errlog.create_error_log(dml_table_name => 'Tape_File');
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