Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
b8b48d85
Commit
b8b48d85
authored
9 years ago
by
Jan Rinze Peterzon
Browse files
Options
Downloads
Patches
Plain Diff
Task #8900: ensure foreign keys are in place and CASCADE delete is defined.
parent
ac459dfa
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/ResourceAssignment/QPIDDatabase/sql/qpidinfradb.sql
+22
-22
22 additions, 22 deletions
SAS/ResourceAssignment/QPIDDatabase/sql/qpidinfradb.sql
with
22 additions
and
22 deletions
SAS/ResourceAssignment/QPIDDatabase/sql/qpidinfradb.sql
+
22
−
22
View file @
b8b48d85
DROP
TABLE
IF
EXISTS
exchanges
;
DROP
TABLE
IF
EXISTS
queues
;
DROP
TABLE
IF
EXISTS
hosts
;
DROP
TABLE
IF
EXISTS
persistentexchanges
;
DROP
TABLE
IF
EXISTS
persistentqueues
;
DROP
TABLE
IF
EXISTS
queueroutes
;
DROP
TABLE
IF
EXISTS
exchangeroutes
;
DROP
TABLE
IF
EXISTS
queuelistener
;
DROP
TABLE
IF
EXISTS
exchanges
CASCADE
;
DROP
TABLE
IF
EXISTS
queues
CASCADE
;
DROP
TABLE
IF
EXISTS
hosts
CASCADE
;
DROP
TABLE
IF
EXISTS
persistentexchanges
CASCADE
;
DROP
TABLE
IF
EXISTS
persistentqueues
CASCADE
;
DROP
TABLE
IF
EXISTS
queueroutes
CASCADE
;
DROP
TABLE
IF
EXISTS
exchangeroutes
CASCADE
;
DROP
TABLE
IF
EXISTS
queuelistener
CASCADE
;
CREATE
TABLE
exchanges
(
exchangeid
SERIAL
,
...
...
@@ -25,40 +25,40 @@ CREATE TABLE hosts(
CREATE
TABLE
persistentexchanges
(
pexid
SERIAL
,
eid
bigint
NOT
NULL
,
hid
bigint
NOT
NULL
,
eid
bigint
references
exchanges
(
exchangeid
)
ON
DELETE
CASCADE
,
hid
bigint
references
hosts
(
hostid
)
ON
DELETE
CASCADE
,
PRIMARY
KEY
(
pexid
)
);
CREATE
TABLE
persistentqueues
(
pquid
SERIAL
,
qid
bigint
NOT
NULL
,
hid
bigint
NOT
NULL
,
qid
bigint
references
queues
(
queueid
)
ON
DELETE
CASCADE
,
hid
bigint
references
hosts
(
hostid
)
ON
DELETE
CASCADE
,
PRIMARY
KEY
(
pquid
)
);
CREATE
TABLE
queueroutes
(
qrouteid
SERIAL
,
fromhost
bigint
NOT
NULL
,
tohost
bigint
NOT
NULL
,
qid
bigint
NOT
NULL
,
eid
bigint
NOT
NULL
,
fromhost
bigint
references
hosts
(
hostid
)
ON
DELETE
CASCADE
,
tohost
bigint
references
hosts
(
hostid
)
ON
DELETE
CASCADE
,
qid
bigint
references
queues
(
queueid
)
ON
DELETE
CASCADE
,
eid
bigint
references
exchanges
(
exchangeid
)
ON
DELETE
CASCADE
,
PRIMARY
KEY
(
qrouteid
)
);
CREATE
TABLE
exchangeroutes
(
erouteid
SERIAL
,
fromhost
bigint
NOT
NULL
,
tohost
bigint
NOT
NULL
,
eid
bigint
NOT
NULL
,
fromhost
bigint
references
hosts
(
hostid
)
ON
DELETE
CASCADE
,
tohost
bigint
references
hosts
(
hostid
)
ON
DELETE
CASCADE
,
eid
bigint
references
exchanges
(
exchangeid
)
ON
DELETE
CASCADE
,
dynamic
bool
default
false
,
routingkey
varchar
(
512
)
default
'#'
,
PRIMARY
KEY
(
erouteid
)
);
CREATE
TABLE
queuelistener
(
qlistenid
SERIAL
,
fromhost
bigint
NOT
NULL
,
eid
bigint
NOT
NULL
,
qid
bigint
NOT
NULL
,
fromhost
bigint
references
hosts
(
hostid
)
ON
DELETE
CASCADE
,
eid
bigint
references
exchanges
(
exchangeid
)
ON
DELETE
CASCADE
,
qid
bigint
references
queues
(
queueid
)
ON
DELETE
CASCADE
,
subject
varchar
(
512
)
NOT
NULL
,
PRIMARY
KEY
(
qlistenid
)
);
...
...
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