SafeDispatch/UpdateHelper/4to5.sql

15 lines
1.4 KiB
SQL

CREATE TABLE public.user_radio (radio_id integer NOT NULL DEFAULT 0,user_id integer NOT NULL DEFAULT 0) WITH (OIDS=FALSE);
ALTER TABLE public.user_radio OWNER TO postgres;
CREATE TABLE public.reports(startdate integer NOT NULL DEFAULT 0, stopdate integer NOT NULL DEFAULT 0, unit_ids character varying(4096), geofence_id integer NOT NULL DEFAULT 0, type_stat integer NOT NULL DEFAULT 0, report_id integer NOT NULL DEFAULT 0, email character varying(255),idletime integer, idx serial NOT NULL) WITH (OIDS = FALSE);
ALTER TABLE public.reports OWNER TO postgres;
ALTER TABLE zonename ADD COLUMN useridx integer NOT NULL DEFAULT 0;
ALTER TABLE place ADD COLUMN useridx integer NOT NULL DEFAULT 0;
ALTER TABLE zonename ADD COLUMN alarmtype integer NOT NULL DEFAULT 3;
ALTER TABLE zonename ADD COLUMN sentmsg boolean NOT NULL DEFAULT false;
ALTER TABLE zonename ADD COLUMN msgbody character varying(255) NOT NULL DEFAULT '';
ALTER TABLE zonename ADD COLUMN unitids character varying(255) NOT NULL DEFAULT '';
ALTER TABLE zonename ADD COLUMN sentemail boolean NOT NULL DEFAULT false;
ALTER TABLE zonename ADD COLUMN email character varying(255) NOT NULL DEFAULT '';
ALTER TABLE zonename ADD COLUMN subj character varying(255) NOT NULL DEFAULT '';
ALTER TABLE zonename ADD COLUMN body character varying(255) NOT NULL DEFAULT '';
ALTER TABLE zonename ADD COLUMN imeilist character varying(255) NOT NULL DEFAULT '';