Commit 33b1de2d authored by Michael Davis's avatar Michael Davis
Browse files

[migration] Adds SQL script to clean up CTA Catalogue schema after migration is complete

parent 50399af1
/*!
* @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');
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