Skip to content
Snippets Groups Projects
Commit 44488499 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Make te db_current view sane.

parent 6c5ce4f6
No related branches found
No related tags found
No related merge requests found
......@@ -123,14 +123,13 @@ WHERE species.is_current = 1;
CREATE VIEW db_current AS
SELECT
d.db_id AS db_id,
species.species_id AS species_id,
d.db_type AS db_type
db.db_id AS db_id,
db.db_type AS db_type
FROM db
JOIN species USING (species_id)
JOIN db d USING (db_id)
WHERE species.is_current = 1
AND d.is_current = 1;
AND db.is_current = 1;
-- CREATE VIEW readable_web_data AS
-- SELECT CONCAT('{',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment