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
350a27d1
Commit
350a27d1
authored
11 years ago
by
Giuseppe Lo Presti
Browse files
Options
Downloads
Patches
Plain Diff
Fixed stupid mistake
parent
77488420
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
upgrades/cns_2.1.14_switch_openmode.sql
+4
-3
4 additions, 3 deletions
upgrades/cns_2.1.14_switch_openmode.sql
with
4 additions
and
3 deletions
upgrades/cns_2.1.14_switch_openmode.sql
+
4
−
3
View file @
350a27d1
...
...
@@ -18,7 +18,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* This script switches the Open mode from Compatibility to New.
* It is applicable on any CASTOR v2.1.14-x CNS database.
* It is applicable on any CASTOR v2.1.14-x CNS database. See release notes
* for version 2.1.14-2 for more details.
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
...
...
@@ -40,7 +41,7 @@ BEGIN
END
;
BEGIN
SELECT
1
INTO
unused
FROM
Cns_file_metadata
WHERE
stagerTime
IS
NOT
NULL
WHERE
stagerTime
IS
NULL
AND
ROWNUM
<
2
;
-- we found at least one file with stagerTime not set, complain
raise_application_error
(
-
20000
,
'Cannot proceed, at least one file has its stagertime field set to NULL'
);
...
...
@@ -51,7 +52,7 @@ BEGIN
END
;
/
-- add constraint now that all rows are populated
ALTER
TABLE
Cns_file_metadata
ADD
CONSTRAINT
NN_File_stagerTime
(
stagerTime
NOT
NULL
);
-- update configuration
...
...
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