-- PostgreSQL database dump
--
--- Dumped from database version 8.4.14
--- Dumped by pg_dump version 9.2.0
--- Started on 2012-11-27 17:43:02
+-- Dumped from database version 9.1.9
+-- Dumped by pg_dump version 9.1.9
+-- Started on 2013-05-25 14:43:44 CEST
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
-SET standard_conforming_strings = off;
+SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
-SET escape_string_warning = off;
--
--- TOC entry 538 (class 2612 OID 16386)
--- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: -
+-- TOC entry 183 (class 3079 OID 11649)
+-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
--
-CREATE OR REPLACE PROCEDURAL LANGUAGE plpgsql;
+CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
+
+
+--
+-- TOC entry 2093 (class 0 OID 0)
+-- Dependencies: 183
+-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
+--
+
+COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_with_oids = false;
--
--- TOC entry 140 (class 1259 OID 59279)
+-- TOC entry 161 (class 1259 OID 17751)
+-- Dependencies: 1954 1955 1956 6
-- Name: nodi; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 160 (class 1259 OID 61344)
+-- TOC entry 162 (class 1259 OID 17760)
+-- Dependencies: 1957 1958 1959 1960 1961 1962 1963 1964 1965 6
-- Name: persona_incarichi; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 155 (class 1259 OID 61295)
+-- TOC entry 163 (class 1259 OID 17775)
+-- Dependencies: 1966 1967 1968 1969 6
-- Name: persona_nodi; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 156 (class 1259 OID 61307)
+-- TOC entry 164 (class 1259 OID 17785)
+-- Dependencies: 1970 1971 1972 1973 1974 1975 1976 6
-- Name: persona_nodo_recapiti; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 153 (class 1259 OID 61266)
+-- TOC entry 165 (class 1259 OID 17798)
+-- Dependencies: 1977 1978 1979 1980 1981 1982 6
-- Name: persona_recapiti; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 152 (class 1259 OID 61243)
+-- TOC entry 166 (class 1259 OID 17810)
+-- Dependencies: 1983 1984 1985 1986 6
-- Name: persona_uffici; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 154 (class 1259 OID 61280)
+-- TOC entry 167 (class 1259 OID 17820)
+-- Dependencies: 1987 1988 1989 1990 1991 1992 1993 6
-- Name: persona_ufficio_recapiti; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 150 (class 1259 OID 61227)
+-- TOC entry 168 (class 1259 OID 17833)
+-- Dependencies: 1994 1995 1996 1997 1998 1999 2000 2001 2002 6
-- Name: persone; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 157 (class 1259 OID 61322)
+-- TOC entry 169 (class 1259 OID 17848)
+-- Dependencies: 2003 2004 6
-- Name: posizioni_economiche; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 159 (class 1259 OID 61336)
+-- TOC entry 170 (class 1259 OID 17853)
+-- Dependencies: 2005 2006 6
-- Name: profili_professionali; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 145 (class 1259 OID 59346)
+-- TOC entry 171 (class 1259 OID 17858)
+-- Dependencies: 2007 2008 2009 6
-- Name: struttura_indirizzi; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 144 (class 1259 OID 59327)
+-- TOC entry 172 (class 1259 OID 17867)
+-- Dependencies: 2010 2011 2012 2013 2014 6
-- Name: strutture; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 141 (class 1259 OID 59290)
+-- TOC entry 173 (class 1259 OID 17878)
+-- Dependencies: 2015 2016 6
-- Name: tipi_nodo; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 158 (class 1259 OID 61329)
+-- TOC entry 174 (class 1259 OID 17883)
+-- Dependencies: 2017 2018 6
-- Name: tipi_prestazione; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 151 (class 1259 OID 61236)
+-- TOC entry 175 (class 1259 OID 17888)
+-- Dependencies: 2019 2020 6
-- Name: tipi_rapporto_lavoro; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 142 (class 1259 OID 59297)
+-- TOC entry 176 (class 1259 OID 17893)
+-- Dependencies: 2021 2022 6
-- Name: tipi_recapito; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 149 (class 1259 OID 61219)
+-- TOC entry 177 (class 1259 OID 17898)
+-- Dependencies: 2023 2024 2025 6
-- Name: titoli; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 143 (class 1259 OID 59311)
+-- TOC entry 178 (class 1259 OID 17904)
+-- Dependencies: 2026 2027 2028 2029 6
-- Name: uffici; Type: TABLE; Schema: public; Owner: -
--
id_strutture integer,
nome character varying(100) DEFAULT ''::character varying,
descrizione text DEFAULT ''::text,
- status character varying(1) DEFAULT ''::character varying
+ status character varying(1) DEFAULT ''::character varying,
+ id_uffici integer DEFAULT 0
);
--
--- TOC entry 146 (class 1259 OID 59357)
+-- TOC entry 179 (class 1259 OID 17913)
+-- Dependencies: 2030 2031 6
-- Name: ufficio_nodi; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 147 (class 1259 OID 59399)
+-- TOC entry 180 (class 1259 OID 17921)
+-- Dependencies: 2032 2033 6
-- Name: ufficio_orari; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 148 (class 1259 OID 59409)
+-- TOC entry 181 (class 1259 OID 17929)
+-- Dependencies: 2034 2035 2036 6
-- Name: ufficio_recapiti; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 161 (class 1259 OID 61417)
+-- TOC entry 182 (class 1259 OID 17938)
+-- Dependencies: 2037 2038 2039 2040 2041 2042 6
-- Name: ufficio_stanze; Type: TABLE; Schema: public; Owner: -
--
--
--- TOC entry 1958 (class 2606 OID 59289)
+-- TOC entry 2044 (class 2606 OID 17951)
+-- Dependencies: 161 161 2088
-- Name: nodi_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1998 (class 2606 OID 61360)
+-- TOC entry 2046 (class 2606 OID 17953)
+-- Dependencies: 162 162 2088
-- Name: persona_incarichi_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1988 (class 2606 OID 61305)
+-- TOC entry 2048 (class 2606 OID 17955)
+-- Dependencies: 163 163 2088
-- Name: persona_nodi_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1990 (class 2606 OID 61321)
+-- TOC entry 2050 (class 2606 OID 17957)
+-- Dependencies: 164 164 2088
-- Name: persona_nodo_recapiti_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1984 (class 2606 OID 61279)
+-- TOC entry 2052 (class 2606 OID 17959)
+-- Dependencies: 165 165 2088
-- Name: persona_recapiti_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1982 (class 2606 OID 61252)
+-- TOC entry 2054 (class 2606 OID 17961)
+-- Dependencies: 166 166 2088
-- Name: persona_uffici_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1986 (class 2606 OID 61294)
+-- TOC entry 2056 (class 2606 OID 17963)
+-- Dependencies: 167 167 2088
-- Name: persona_ufficio_recapiti_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1978 (class 2606 OID 61235)
+-- TOC entry 2058 (class 2606 OID 17965)
+-- Dependencies: 168 168 2088
-- Name: persone_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1992 (class 2606 OID 61328)
+-- TOC entry 2060 (class 2606 OID 17967)
+-- Dependencies: 169 169 2088
-- Name: posizioni_economiche_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1996 (class 2606 OID 61342)
+-- TOC entry 2062 (class 2606 OID 17969)
+-- Dependencies: 170 170 2088
-- Name: profili_professionali_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1968 (class 2606 OID 59356)
+-- TOC entry 2064 (class 2606 OID 17971)
+-- Dependencies: 171 171 2088
-- Name: struttura_indirizzi_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1966 (class 2606 OID 59339)
+-- TOC entry 2066 (class 2606 OID 17973)
+-- Dependencies: 172 172 2088
-- Name: strutture_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1960 (class 2606 OID 59296)
+-- TOC entry 2068 (class 2606 OID 17975)
+-- Dependencies: 173 173 2088
-- Name: tipi_nodo_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1994 (class 2606 OID 61335)
+-- TOC entry 2070 (class 2606 OID 17977)
+-- Dependencies: 174 174 2088
-- Name: tipi_prestazione_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1980 (class 2606 OID 61242)
+-- TOC entry 2072 (class 2606 OID 17979)
+-- Dependencies: 175 175 2088
-- Name: tipi_rapporto_lavoro_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1962 (class 2606 OID 59303)
+-- TOC entry 2074 (class 2606 OID 17981)
+-- Dependencies: 176 176 2088
-- Name: tipi_recapito_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1976 (class 2606 OID 61226)
+-- TOC entry 2076 (class 2606 OID 17983)
+-- Dependencies: 177 177 2088
-- Name: titoli_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1964 (class 2606 OID 59321)
+-- TOC entry 2078 (class 2606 OID 17985)
+-- Dependencies: 178 178 2088
-- Name: uffici_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1970 (class 2606 OID 59366)
+-- TOC entry 2080 (class 2606 OID 17987)
+-- Dependencies: 179 179 2088
-- Name: ufficio_nodi_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1972 (class 2606 OID 59408)
+-- TOC entry 2082 (class 2606 OID 17989)
+-- Dependencies: 180 180 2088
-- Name: ufficio_orari_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 1974 (class 2606 OID 59419)
+-- TOC entry 2084 (class 2606 OID 17991)
+-- Dependencies: 181 181 2088
-- Name: ufficio_recapiti_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
--
--- TOC entry 2000 (class 2606 OID 61430)
+-- TOC entry 2086 (class 2606 OID 17993)
+-- Dependencies: 182 182 2088
-- Name: ufficio_stanze_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ADD CONSTRAINT ufficio_stanze_pkey PRIMARY KEY (id);
--- Completed on 2012-11-27 17:43:02
+-- Completed on 2013-05-25 14:43:45 CEST
--
-- PostgreSQL database dump complete