Skip to content

Commit

Permalink
Merge f575ce8 into ec83954
Browse files Browse the repository at this point in the history
  • Loading branch information
Joscorbe committed Jun 11, 2018
2 parents ec83954 + f575ce8 commit 52fd134
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sql/0.90-base_schema/1-db-base.sql
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ CREATE TABLE public.volume_attribute (
UNIQUE (volume_id, name)
);

CREATE INDEX IF NOT EXISTS volume_attribute_volume_idx ON public.volume_attribute (id);
CREATE INDEX volume_attribute_volume_idx ON public.volume_attribute (id);

-- FUNCTIONAL ALIASES
CREATE TABLE public.functional_aliases (
Expand Down
8 changes: 8 additions & 0 deletions sql/0.90-base_schema/3-db_api_views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,11 @@ CREATE OR REPLACE VIEW api.rundeck_instances AS
(instance.type_id::text || ','::text) || instance.category::text AS tags
FROM instance
JOIN functional_aliases ON instance.name::text = functional_aliases.db_name::text;

-- Instance types
CREATE VIEW api.instance_type AS
SELECT * FROM public.instance_type;

-- Volume types
CREATE VIEW api.volume_type AS
SELECT * FROM public.volume_type;

0 comments on commit 52fd134

Please sign in to comment.