author | František Kučera <franta-hg@frantovo.cz> |
Wed, 03 Jun 2009 02:09:23 +0200 | |
changeset 40 | cc77526f46cf |
parent 29 | 4b6ab4ba1a95 |
child 43 | 8d1a92f64110 |
permissions | -rw-r--r-- |
franta-hg@29 | 1 |
-- |
franta-hg@29 | 2 |
-- PostgreSQL database dump |
franta-hg@29 | 3 |
-- |
franta-hg@29 | 4 |
|
franta-hg@29 | 5 |
-- Started on 2009-05-31 22:35:00 CEST |
franta-hg@29 | 6 |
|
franta-hg@29 | 7 |
SET client_encoding = 'UTF8'; |
franta-hg@29 | 8 |
SET standard_conforming_strings = off; |
franta-hg@29 | 9 |
SET check_function_bodies = false; |
franta-hg@29 | 10 |
SET client_min_messages = warning; |
franta-hg@29 | 11 |
SET escape_string_warning = off; |
franta-hg@29 | 12 |
|
franta-hg@29 | 13 |
-- |
franta-hg@29 | 14 |
-- TOC entry 10 (class 2615 OID 16788) |
franta-hg@29 | 15 |
-- Name: sqlvyukaaplikace; Type: SCHEMA; Schema: -; Owner: - |
franta-hg@29 | 16 |
-- |
franta-hg@29 | 17 |
|
franta-hg@29 | 18 |
CREATE SCHEMA sqlvyukaaplikace; |
franta-hg@29 | 19 |
|
franta-hg@29 | 20 |
|
franta-hg@29 | 21 |
SET search_path = sqlvyukaaplikace, pg_catalog; |
franta-hg@29 | 22 |
|
franta-hg@29 | 23 |
-- |
franta-hg@29 | 24 |
-- TOC entry 1579 (class 1259 OID 16797) |
franta-hg@29 | 25 |
-- Dependencies: 10 |
franta-hg@29 | 26 |
-- Name: historie_seq; Type: SEQUENCE; Schema: sqlvyukaaplikace; Owner: - |
franta-hg@29 | 27 |
-- |
franta-hg@29 | 28 |
|
franta-hg@29 | 29 |
CREATE SEQUENCE historie_seq |
franta-hg@29 | 30 |
INCREMENT BY 1 |
franta-hg@29 | 31 |
NO MAXVALUE |
franta-hg@29 | 32 |
NO MINVALUE |
franta-hg@29 | 33 |
CACHE 1; |
franta-hg@29 | 34 |
|
franta-hg@29 | 35 |
|
franta-hg@29 | 36 |
SET default_tablespace = ''; |
franta-hg@29 | 37 |
|
franta-hg@29 | 38 |
SET default_with_oids = false; |
franta-hg@29 | 39 |
|
franta-hg@29 | 40 |
-- |
franta-hg@29 | 41 |
-- TOC entry 1578 (class 1259 OID 16789) |
franta-hg@29 | 42 |
-- Dependencies: 1848 1849 10 |
franta-hg@29 | 43 |
-- Name: historie; Type: TABLE; Schema: sqlvyukaaplikace; Owner: -; Tablespace: |
franta-hg@29 | 44 |
-- |
franta-hg@29 | 45 |
|
franta-hg@29 | 46 |
CREATE TABLE historie ( |
franta-hg@29 | 47 |
id numeric DEFAULT nextval('historie_seq'::regclass) NOT NULL, |
franta-hg@29 | 48 |
datum timestamp with time zone DEFAULT now(), |
franta-hg@29 | 49 |
sql text, |
franta-hg@29 | 50 |
id_sezeni character varying(255), |
franta-hg@29 | 51 |
ip_adresa character varying(255) |
franta-hg@29 | 52 |
); |
franta-hg@29 | 53 |
|
franta-hg@29 | 54 |
|
franta-hg@29 | 55 |
-- |
franta-hg@29 | 56 |
-- TOC entry 1580 (class 1259 OID 16813) |
franta-hg@29 | 57 |
-- Dependencies: 10 |
franta-hg@29 | 58 |
-- Name: tip_seq; Type: SEQUENCE; Schema: sqlvyukaaplikace; Owner: - |
franta-hg@29 | 59 |
-- |
franta-hg@29 | 60 |
|
franta-hg@29 | 61 |
CREATE SEQUENCE tip_seq |
franta-hg@29 | 62 |
INCREMENT BY 1 |
franta-hg@29 | 63 |
NO MAXVALUE |
franta-hg@29 | 64 |
NO MINVALUE |
franta-hg@29 | 65 |
CACHE 1; |
franta-hg@29 | 66 |
|
franta-hg@29 | 67 |
|
franta-hg@29 | 68 |
-- |
franta-hg@29 | 69 |
-- TOC entry 1581 (class 1259 OID 16815) |
franta-hg@29 | 70 |
-- Dependencies: 1850 10 |
franta-hg@29 | 71 |
-- Name: tip; Type: TABLE; Schema: sqlvyukaaplikace; Owner: -; Tablespace: |
franta-hg@29 | 72 |
-- |
franta-hg@29 | 73 |
|
franta-hg@29 | 74 |
CREATE TABLE tip ( |
franta-hg@29 | 75 |
id numeric DEFAULT nextval('tip_seq'::regclass) NOT NULL, |
franta-hg@29 | 76 |
text character varying(512) NOT NULL |
franta-hg@29 | 77 |
); |
franta-hg@29 | 78 |
|
franta-hg@29 | 79 |
|
franta-hg@29 | 80 |
-- |
franta-hg@29 | 81 |
-- TOC entry 1859 (class 0 OID 0) |
franta-hg@29 | 82 |
-- Dependencies: 1581 |
franta-hg@29 | 83 |
-- Name: TABLE tip; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: - |
franta-hg@29 | 84 |
-- |
franta-hg@29 | 85 |
|
franta-hg@29 | 86 |
COMMENT ON TABLE tip IS 'Rady, tipy, odkazy a citáty… které budeme zobrazovat uživateli v náhodném pořadí.'; |
franta-hg@29 | 87 |
|
franta-hg@29 | 88 |
|
franta-hg@29 | 89 |
-- |
franta-hg@29 | 90 |
-- TOC entry 1860 (class 0 OID 0) |
franta-hg@29 | 91 |
-- Dependencies: 1581 |
franta-hg@29 | 92 |
-- Name: COLUMN tip.text; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: - |
franta-hg@29 | 93 |
-- |
franta-hg@29 | 94 |
|
franta-hg@29 | 95 |
COMMENT ON COLUMN tip.text IS 'HTML text. Bude vložen do <p>odstavce</p>. → Pozor na validitu.'; |
franta-hg@29 | 96 |
|
franta-hg@29 | 97 |
|
franta-hg@29 | 98 |
-- |
franta-hg@29 | 99 |
-- TOC entry 1852 (class 2606 OID 16796) |
franta-hg@29 | 100 |
-- Dependencies: 1578 1578 |
franta-hg@29 | 101 |
-- Name: historie_pk; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace: |
franta-hg@29 | 102 |
-- |
franta-hg@29 | 103 |
|
franta-hg@29 | 104 |
ALTER TABLE ONLY historie |
franta-hg@29 | 105 |
ADD CONSTRAINT historie_pk PRIMARY KEY (id); |
franta-hg@29 | 106 |
|
franta-hg@29 | 107 |
|
franta-hg@29 | 108 |
-- |
franta-hg@29 | 109 |
-- TOC entry 1854 (class 2606 OID 16823) |
franta-hg@29 | 110 |
-- Dependencies: 1581 1581 |
franta-hg@29 | 111 |
-- Name: tip_pk; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace: |
franta-hg@29 | 112 |
-- |
franta-hg@29 | 113 |
|
franta-hg@29 | 114 |
ALTER TABLE ONLY tip |
franta-hg@29 | 115 |
ADD CONSTRAINT tip_pk PRIMARY KEY (id); |
franta-hg@29 | 116 |
|
franta-hg@29 | 117 |
|
franta-hg@29 | 118 |
-- |
franta-hg@29 | 119 |
-- TOC entry 1856 (class 2606 OID 16825) |
franta-hg@29 | 120 |
-- Dependencies: 1581 1581 |
franta-hg@29 | 121 |
-- Name: tip_uq; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace: |
franta-hg@29 | 122 |
-- |
franta-hg@29 | 123 |
|
franta-hg@29 | 124 |
ALTER TABLE ONLY tip |
franta-hg@29 | 125 |
ADD CONSTRAINT tip_uq UNIQUE (text); |
franta-hg@29 | 126 |
|
franta-hg@29 | 127 |
|
franta-hg@29 | 128 |
-- Completed on 2009-05-31 22:35:01 CEST |
franta-hg@29 | 129 |
|
franta-hg@29 | 130 |
-- |
franta-hg@29 | 131 |
-- PostgreSQL database dump complete |
franta-hg@29 | 132 |
-- |
franta-hg@29 | 133 |