Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
32ef911b
Commit
32ef911b
authored
14 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
Add view 'logic_name_overview'.
parent
a0d4c2c2
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
misc-scripts/production_database/sql/tables.sql
+23
-9
23 additions, 9 deletions
misc-scripts/production_database/sql/tables.sql
with
23 additions
and
9 deletions
misc-scripts/production_database/sql/tables.sql
+
23
−
9
View file @
32ef911b
...
...
@@ -135,12 +135,26 @@ SELECT list.full_db_name AS full_db_name,
ad
.
display_label
AS
display_label
,
awd
.
displayable
AS
displayable
,
wd
.
data
AS
web_data
FROM
db_list
list
JOIN
db
USING
(
db_id
)
JOIN
analysis_web_data
awd
ON
(
db
.
species_id
=
awd
.
species_id
AND
db
.
db_type
=
awd
.
db_type
)
JOIN
analysis_description
ad
USING
(
analysis_description_id
)
LEFT
JOIN
web_data
wd
USING
(
web_data_id
)
WHERE
db
.
is_current
=
1
;
FROM
db_list
list
JOIN
db
USING
(
db_id
)
JOIN
analysis_web_data
awd
ON
(
db
.
species_id
=
awd
.
species_id
AND
db
.
db_type
=
awd
.
db_type
)
JOIN
analysis_description
ad
USING
(
analysis_description_id
)
LEFT
JOIN
web_data
wd
USING
(
web_data_id
)
WHERE
db
.
is_current
=
1
;
CREATE
VIEW
logic_name_overview
AS
SELECT
ad
.
logic_name
AS
logic_name
,
ad
.
analysis_description_id
AS
analysis_description_id
,
s
.
db_name
AS
species
,
s
.
species_id
AS
species_id
,
awd
.
db_type
AS
db_type
,
wd
.
web_data_id
AS
web_data_id
,
awd
.
displayable
AS
displayable
FROM
analysis_description
ad
JOIN
analysis_web_data
awd
USING
(
analysis_description_id
)
JOIN
species
s
USING
(
species_id
)
LEFT
JOIN
web_data
wd
USING
(
web_data_id
)
WHERE
s
.
is_current
=
1
;
This diff is collapsed.
Click to expand it.
Preview
0%
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