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
ae2d25bb
Commit
ae2d25bb
authored
6 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Simplfied check constraint syntax of CTA's boolean database columns
parent
e0cf5b75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
catalogue/common_catalogue_schema.sql
+3
-3
3 additions, 3 deletions
catalogue/common_catalogue_schema.sql
with
3 additions
and
3 deletions
catalogue/common_catalogue_schema.sql
+
3
−
3
View file @
ae2d25bb
...
...
@@ -102,9 +102,9 @@ CREATE TABLE TAPE(
REFERENCES
LOGICAL_LIBRARY
(
LOGICAL_LIBRARY_NAME
),
CONSTRAINT
TAPE_TAPE_POOL_FK
FOREIGN
KEY
(
TAPE_POOL_NAME
)
REFERENCES
TAPE_POOL
(
TAPE_POOL_NAME
),
CONSTRAINT
TAPE_IS_DISABLED_BOOL_CK
CHECK
(
IS_DISABLED
=
'0'
OR
IS_DISABLED
=
'1'
),
CONSTRAINT
TAPE_IS_FULL_BOOL_CK
CHECK
(
IS_FULL
=
'0'
OR
IS_FULL
=
'1'
),
CONSTRAINT
TAPE_LBP_IS_ON_BOOL_CK
CHECK
(
LBP_IS_ON
=
'0'
OR
LBP_IS_ON
=
'1'
)
CONSTRAINT
TAPE_IS_DISABLED_BOOL_CK
CHECK
(
IS_DISABLED
IN
(
'0'
,
'1'
)
)
,
CONSTRAINT
TAPE_IS_FULL_BOOL_CK
CHECK
(
IS_FULL
IN
(
'0'
,
'1'
)
)
,
CONSTRAINT
TAPE_LBP_IS_ON_BOOL_CK
CHECK
(
LBP_IS_ON
IN
(
'0'
,
'1'
)
)
);
CREATE
INDEX
TAPE_TAPE_POOL_NAME_IDX
ON
TAPE
(
TAPE_POOL_NAME
);
CREATE
TABLE
MOUNT_POLICY
(
...
...
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