Skip to content

Commit

Permalink
Commit db changes
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Jan 2, 2024
1 parent 7fa1f78 commit 4a84833
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/api/generated-schema-clean.gql
Original file line number Diff line number Diff line change
Expand Up @@ -6535,6 +6535,7 @@ type InteractivitySetting implements Node {
"""
nodeId: ID!
shortTemplate: String
title: String!
type: InteractivityType!
}

Expand All @@ -6550,6 +6551,7 @@ input InteractivitySettingInput {
layers: [String]
longTemplate: String
shortTemplate: String
title: String
type: InteractivityType
}

Expand All @@ -6567,6 +6569,7 @@ input InteractivitySettingPatch {
layers: [String]
longTemplate: String
shortTemplate: String
title: String
type: InteractivityType
}

Expand All @@ -6576,6 +6579,7 @@ enum InteractivityType {
FIXED_BLOCK
NONE
POPUP
SIDEBAR_OVERLAY
TOOLTIP
}

Expand Down
7 changes: 7 additions & 0 deletions packages/api/migrations/committed/000286.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--! Previous: sha1:ce627d322f59b0d212d699b84f86719b0a480cc8
--! Hash: sha1:e6c5fc331e8c572d3e8b7f38f6049415b3e7a7f3

-- Enter migration here
ALTER TYPE interactivity_type ADD VALUE IF NOT EXISTS 'SIDEBAR_OVERLAY';

alter table interactivity_settings add column if not exists title text not null default '';
3 changes: 0 additions & 3 deletions packages/api/migrations/current.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
-- Enter migration here
ALTER TYPE interactivity_type ADD VALUE IF NOT EXISTS 'SIDEBAR_OVERLAY';

alter table interactivity_settings add column if not exists title text not null default '';
30 changes: 28 additions & 2 deletions packages/api/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ CREATE TYPE public.interactivity_type AS ENUM (
'POPUP',
'FIXED_BLOCK',
'NONE',
'ALL_PROPERTIES_POPUP'
'ALL_PROPERTIES_POPUP',
'SIDEBAR_OVERLAY'
);


Expand Down Expand Up @@ -8059,6 +8060,23 @@ CREATE FUNCTION public.has_session() RETURNS boolean
COMMENT ON FUNCTION public.has_session() IS '@omit';


--
-- Name: id_lookup_get_key(integer); Type: FUNCTION; Schema: public; Owner: -
--

CREATE FUNCTION public.id_lookup_get_key(key integer) RETURNS integer
LANGUAGE plpgsql
AS $$
begin
if lookup is null then
raise exception 'lookup is null';
else
return (lookup->key)::int;
end if;
end;
$$;


--
-- Name: id_lookup_get_key(jsonb, integer); Type: FUNCTION; Schema: public; Owner: -
--
Expand Down Expand Up @@ -14197,7 +14215,8 @@ CREATE TABLE public.interactivity_settings (
short_template text,
long_template text,
cursor public.cursor_type DEFAULT 'AUTO'::public.cursor_type NOT NULL,
layers text[]
layers text[],
title text DEFAULT ''::text NOT NULL
);


Expand Down Expand Up @@ -22892,6 +22911,13 @@ REVOKE ALL ON FUNCTION public.hmac(bytea, bytea, text) FROM PUBLIC;
REVOKE ALL ON FUNCTION public.hmac(text, text, text) FROM PUBLIC;


--
-- Name: FUNCTION id_lookup_get_key(key integer); Type: ACL; Schema: public; Owner: -
--

REVOKE ALL ON FUNCTION public.id_lookup_get_key(key integer) FROM PUBLIC;


--
-- Name: FUNCTION id_lookup_get_key(lookup jsonb, key integer); Type: ACL; Schema: public; Owner: -
--
Expand Down

0 comments on commit 4a84833

Please sign in to comment.