root/sql/tables/noit.metric_text_changelog.sql

Revision 88d5aaab122fefd6471e1d4604f54cd1a6df433b, 1.5 kB (checked in by Robert Treat <robert@omniti.com>, 5 years ago)

text metric tables

  • Property mode set to 100644
Line 
1 -- loading_dock_metric_text_s_change_log
2 --
3 -- PostgreSQL database dump
4 --
5
6 SET client_encoding = 'UTF8';
7 SET standard_conforming_strings = off;
8 SET check_function_bodies = false;
9 SET client_min_messages = warning;
10 SET escape_string_warning = off;
11
12 SET search_path = noit, pg_catalog;
13
14 SET default_tablespace = '';
15
16 SET default_with_oids = false;
17
18 --
19 -- Name: metric_text_changelog; Type: TABLE; Schema: noit; Owner: reconnoiter; Tablespace:
20 --
21
22 CREATE TABLE metric_text_changelog (
23     sid integer NOT NULL,
24     whence timestamp with time zone NOT NULL,
25     name text NOT NULL,
26     value text
27 );
28
29
30 ALTER TABLE noit.metric_text_changelog OWNER TO reconnoiter;
31
32 --
33 -- Name: metric_text_changelog_pkey; Type: CONSTRAINT; Schema: noit; Owner: reconnoiter; Tablespace:
34 --
35
36 ALTER TABLE ONLY metric_text_changelog
37     ADD CONSTRAINT metric_text_changelog_pkey PRIMARY KEY (whence, sid, name);
38
39
40 --
41 -- Name: xx; Type: INDEX; Schema: noit; Owner: reconnoiter; Tablespace:
42 --
43
44 CREATE INDEX metric_text_changelog_sid_name_whence_idx ON metric_text_changelog USING btree (sid, name, whence);
45
46
47 --
48 -- Name: metric_text_changelog; Type: ACL; Schema: noit; Owner: reconnoiter
49 --
50
51 REVOKE ALL ON TABLE metric_text_changelog FROM PUBLIC;
52 REVOKE ALL ON TABLE metric_text_changelog FROM reconnoiter;
53 GRANT ALL ON TABLE metric_text_changelog TO reconnoiter;
54 GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE metric_text_changelog TO stratcon;
55 GRANT SELECT ON TABLE metric_text_changelog TO prism;
56
57
58 --
59 -- PostgreSQL database dump complete
60 --
61
Note: See TracBrowser for help on using the browser.