From af5a0dd9472522474090d011eb16387d4dd71c5d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 13 Oct 2016 15:48:09 -0600 Subject: [PATCH] Update switch.sql Add json_store table. --- resources/install/sql/switch.sql | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/install/sql/switch.sql b/resources/install/sql/switch.sql index 36420492d1..8acda5ea65 100644 --- a/resources/install/sql/switch.sql +++ b/resources/install/sql/switch.sql @@ -481,6 +481,17 @@ CREATE TABLE tiers ( ); ALTER TABLE tiers OWNER TO fusionpbx; + +-- +-- Name: json_store; Type: TABLE; Schema: public; Owner: fusionpbx; Tablespace: +-- +CREATE TABLE json_store ( + name varchar(255) not null, + data text, + json_store_uuid uuid PRIMARY KEY default gen_random_uuid() +); + ALTER TABLE json_store OWNER TO fusionpbx; + --Create Views -- Name: basic_calls; Type: VIEW; Schema: public; Owner: fusionpbx @@ -611,7 +622,6 @@ b.read_bit_rate AS b_read_bit_rate, ALTER TABLE detailed_calls OWNER TO fusionpbx; - --Indexes and Constraints CREATE INDEX alias1 ON aliases USING btree (alias);