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
879a3fa8
Commit
879a3fa8
authored
16 years ago
by
Dennis Waldron
Browse files
Options
Downloads
Patches
Plain Diff
Updated to create named NOT NULL constraints on the Type2Obj table
parent
b02d10bb
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
tools/makeMagicNumbers.csh
+6
-2
6 additions, 2 deletions
tools/makeMagicNumbers.csh
with
6 additions
and
2 deletions
tools/makeMagicNumbers.csh
+
6
−
2
View file @
879a3fa8
...
...
@@ -44,10 +44,14 @@ endif
echo Creating SQL script for Type2Obj metatable...
echo '/* Fill Type2Obj metatable */' > fillType2Obj.sql
echo 'CREATE TABLE Type2Obj (type INTEGER CONSTRAINT I_Type2Obj_Type PRIMARY KEY NOT NULL, object VARCHAR2(100) NOT NULL, svcHandler VARCHAR2(100));' >> fillType2Obj.sql
echo 'CREATE TABLE Type2Obj (type INTEGER CONSTRAINT I_Type2Obj_Type PRIMARY KEY, object VARCHAR2(100), svcHandler VARCHAR2(100));\n' >> fillType2Obj.sql
echo '/* Type2Obj constraints */' >> fillType2Obj.sql
echo 'ALTER TABLE Type2Obj' >> fillType2Obj.sql
echo ' MODIFY (type CONSTRAINT NN_Type2Obj_Type NOT NULL);\n' >> fillType2Obj.sql
echo 'ALTER TABLE Type2Obj' >> fillType2Obj.sql
echo ' MODIFY (object CONSTRAINT NN_Type2Obj_Object NOT NULL);\n' >> fillType2Obj.sql
grep OBJ_ MagicNumbers | sed 's/OBJ_//g' | awk '{print "INSERT INTO Type2Obj (type, object) VALUES (" $1 ", '\''" $2 "'\'');" }' >> fillType2Obj.sql
echo >> fillType2Obj.sql
mv fillType2Obj.sql $CASTOR_ROOT/castor/db
a2ps --toc= --columns=4 -f 7.5 -c -o MagicNumbers.ps MagicNumbers
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