Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
64c604c2
Commit
64c604c2
authored
11 years ago
by
Giuseppe Lo Presti
Browse files
Options
Downloads
Patches
Plain Diff
(Empty) script for 2.1.14-3
parent
a9281dbf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
upgrades/vdqm_2.1.14-2_to_2.1.14-3.sql
+61
-0
61 additions, 0 deletions
upgrades/vdqm_2.1.14-2_to_2.1.14-3.sql
with
61 additions
and
0 deletions
upgrades/vdqm_2.1.14-2_to_2.1.14-3.sql
0 → 100644
+
61
−
0
View file @
64c604c2
/******************************************************************************
* vdqm_2.1.14-2_to_2.1.14-3.sql
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* This script upgrades a CASTOR v2.1.14-2 VDQM database to v2.1.14-3
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
/* Stop on errors */
WHENEVER
SQLERROR
EXIT
FAILURE
BEGIN
-- If we have encountered an error rollback any previously non committed
-- operations. This prevents the UPDATE of the UpgradeLog from committing
-- inconsistent data to the database.
ROLLBACK
;
UPDATE
UpgradeLog
SET
failureCount
=
failureCount
+
1
WHERE
schemaVersion
=
'2_1_12_0'
AND
release
=
'2_1_14_3'
AND
state
!=
'COMPLETE'
;
COMMIT
;
END
;
/
/* Verify that the script is running against the correct schema and version */
DECLARE
unused
VARCHAR
(
100
);
BEGIN
SELECT
release
INTO
unused
FROM
CastorVersion
WHERE
schemaName
=
'VDQM'
AND
release
LIKE
'2_1_14_2%'
;
EXCEPTION
WHEN
NO_DATA_FOUND
THEN
-- Error, we cannot apply this script
raise_application_error
(
-
20000
,
'PL/SQL release mismatch. Please run previous upgrade scripts for the VDQM before this one.'
);
END
;
/
INSERT
INTO
UpgradeLog
(
schemaVersion
,
release
,
type
)
VALUES
(
'2_1_12_0'
,
'2_1_14_3'
,
'TRANSPARENT'
);
/* Empty upgrade - flag the schema upgrade as COMPLETE */
UPDATE
UpgradeLog
SET
endDate
=
sysdate
,
state
=
'COMPLETE'
WHERE
release
=
'2_1_14_3'
;
COMMIT
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment