Change uuid from varchar or varying to type uuid.

This commit is contained in:
FusionPBX 2021-05-18 10:06:57 -06:00 committed by GitHub
parent 554dacc1a6
commit 323729a383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -2,7 +2,7 @@
-- Name: agents; Type: TABLE; Schema: public; Owner: fusionpbx; Tablespace:
--
CREATE TABLE agents (
uuid character varying(255),
uuid uuid,
name character varying(255),
system character varying(255),
type character varying(255),
@ -57,7 +57,7 @@ ALTER TABLE calls OWNER TO fusionpbx;
--
CREATE TABLE channels (
channel_uuid uuid PRIMARY KEY default gen_random_uuid(),
uuid character varying(64),
uuid uuid,
direction character varying(32),
created character varying(128),
created_epoch integer,
@ -134,7 +134,7 @@ ALTER TABLE db_data OWNER TO fusionpbx;
-- Name: db_data; Type: TABLE; Schema: public; Owner: freeswitch; Tablespace:
--
CREATE TABLE fifo_outbound (
uuid varchar(255),
uuid uuid,
fifo_name varchar(255),
originate_string varchar(255),
simo_count integer,
@ -169,7 +169,7 @@ ALTER TABLE fifo_outbound OWNER TO fusionpbx;
--
CREATE TABLE fifo_bridge (
fifo_name varchar(1024) not null,
caller_uuid varchar(255) not null,
caller_uuid uuid not null,
caller_caller_id_name varchar(255),
caller_caller_id_number varchar(255),
consumer_uuid varchar(255) not null,
@ -184,7 +184,7 @@ ALTER TABLE fifo_bridge OWNER TO fusionpbx;
--
CREATE TABLE fifo_callers (
fifo_name varchar(255) not null,
uuid varchar(255) not null,
uuid uuid not null,
caller_caller_id_name varchar(255),
caller_caller_id_number varchar(255),
timestamp integer,
@ -235,8 +235,8 @@ ALTER TABLE limit_data OWNER TO fusionpbx;
CREATE TABLE members (
queue character varying(255),
system character varying(255),
uuid character varying(255) DEFAULT ''::character varying NOT NULL,
session_uuid character varying(255) DEFAULT ''::character varying NOT NULL,
uuid uuid NOT NULL,
session_uuid uuid NOT NULL,
cid_number character varying(255),
cid_name character varying(255),
system_epoch integer DEFAULT 0 NOT NULL,
@ -270,7 +270,7 @@ ALTER TABLE nat OWNER TO fusionpbx;
-- Name: recovery; Type: TABLE; Schema: public; Owner: freeswitch; Tablespace:
--
CREATE TABLE recovery (
runtime_uuid character varying(255),
runtime_uuid uuid,
technology character varying(255),
profile_name character varying(255),
hostname character varying(255),
@ -350,7 +350,7 @@ ALTER TABLE sip_authentication OWNER TO fusionpbx;
--
CREATE TABLE sip_dialogs (
call_id character varying(255),
uuid character varying(255),
uuid uuid,
sip_to_user character varying(255),
sip_to_host character varying(255),
sip_from_user character varying(255),