From: Andrea Zagli Date: Sat, 25 May 2013 12:44:37 +0000 (+0200) Subject: Mancava il file dello schema del db per l'aggiornamento agli uffici. X-Git-Tag: 0.0.3~12 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=585b9557abea3c946fd3db8289728096c8907034;p=solipa%2Forganigramma Mancava il file dello schema del db per l'aggiornamento agli uffici. --- diff --git a/docs/DBChangelog b/docs/DBChangelog new file mode 100644 index 0000000..4ced9f8 --- /dev/null +++ b/docs/DBChangelog @@ -0,0 +1,4 @@ +0.0.1 => 0.0.2 +================================================================================ +ALTER TABLE uffici ADD COLUMN id_uffici integer DEFAULT 0; + diff --git a/docs/organigramma.sql b/docs/organigramma.sql index 25e6664..c1a1370 100644 --- a/docs/organigramma.sql +++ b/docs/organigramma.sql @@ -2,23 +2,31 @@ -- 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; @@ -26,7 +34,8 @@ 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: - -- @@ -41,7 +50,8 @@ CREATE TABLE nodi ( -- --- 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: - -- @@ -62,7 +72,8 @@ CREATE TABLE persona_incarichi ( -- --- 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: - -- @@ -78,7 +89,8 @@ CREATE TABLE persona_nodi ( -- --- 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: - -- @@ -95,7 +107,8 @@ CREATE TABLE persona_nodo_recapiti ( -- --- 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: - -- @@ -111,7 +124,8 @@ CREATE TABLE persona_recapiti ( -- --- 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: - -- @@ -129,7 +143,8 @@ CREATE TABLE persona_uffici ( -- --- 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: - -- @@ -146,7 +161,8 @@ CREATE TABLE persona_ufficio_recapiti ( -- --- 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: - -- @@ -166,7 +182,8 @@ CREATE TABLE persone ( -- --- 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: - -- @@ -178,7 +195,8 @@ CREATE TABLE posizioni_economiche ( -- --- 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: - -- @@ -190,7 +208,8 @@ CREATE TABLE profili_professionali ( -- --- 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: - -- @@ -205,7 +224,8 @@ CREATE TABLE struttura_indirizzi ( -- --- 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: - -- @@ -220,7 +240,8 @@ CREATE TABLE strutture ( -- --- 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: - -- @@ -232,7 +253,8 @@ CREATE TABLE tipi_nodo ( -- --- 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: - -- @@ -244,7 +266,8 @@ CREATE TABLE tipi_prestazione ( -- --- 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: - -- @@ -256,7 +279,8 @@ CREATE TABLE tipi_rapporto_lavoro ( -- --- 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: - -- @@ -268,7 +292,8 @@ CREATE TABLE tipi_recapito ( -- --- 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: - -- @@ -281,7 +306,8 @@ CREATE TABLE titoli ( -- --- 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: - -- @@ -290,12 +316,14 @@ CREATE TABLE uffici ( 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: - -- @@ -309,7 +337,8 @@ CREATE TABLE ufficio_nodi ( -- --- 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: - -- @@ -336,7 +365,8 @@ CREATE TABLE ufficio_orari ( -- --- 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: - -- @@ -352,7 +382,8 @@ CREATE TABLE ufficio_recapiti ( -- --- 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: - -- @@ -368,7 +399,8 @@ CREATE TABLE ufficio_stanze ( -- --- 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: - -- @@ -377,7 +409,8 @@ ALTER TABLE ONLY nodi -- --- 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: - -- @@ -386,7 +419,8 @@ ALTER TABLE ONLY persona_incarichi -- --- 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: - -- @@ -395,7 +429,8 @@ ALTER TABLE ONLY persona_nodi -- --- 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: - -- @@ -404,7 +439,8 @@ ALTER TABLE ONLY persona_nodo_recapiti -- --- 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: - -- @@ -413,7 +449,8 @@ ALTER TABLE ONLY persona_recapiti -- --- 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: - -- @@ -422,7 +459,8 @@ ALTER TABLE ONLY persona_uffici -- --- 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: - -- @@ -431,7 +469,8 @@ ALTER TABLE ONLY persona_ufficio_recapiti -- --- 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: - -- @@ -440,7 +479,8 @@ ALTER TABLE ONLY persone -- --- 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: - -- @@ -449,7 +489,8 @@ ALTER TABLE ONLY posizioni_economiche -- --- 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: - -- @@ -458,7 +499,8 @@ ALTER TABLE ONLY profili_professionali -- --- 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: - -- @@ -467,7 +509,8 @@ ALTER TABLE ONLY struttura_indirizzi -- --- 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: - -- @@ -476,7 +519,8 @@ ALTER TABLE ONLY strutture -- --- 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: - -- @@ -485,7 +529,8 @@ ALTER TABLE ONLY tipi_nodo -- --- 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: - -- @@ -494,7 +539,8 @@ ALTER TABLE ONLY tipi_prestazione -- --- 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: - -- @@ -503,7 +549,8 @@ ALTER TABLE ONLY tipi_rapporto_lavoro -- --- 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: - -- @@ -512,7 +559,8 @@ ALTER TABLE ONLY tipi_recapito -- --- 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: - -- @@ -521,7 +569,8 @@ ALTER TABLE ONLY titoli -- --- 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: - -- @@ -530,7 +579,8 @@ ALTER TABLE ONLY uffici -- --- 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: - -- @@ -539,7 +589,8 @@ ALTER TABLE ONLY ufficio_nodi -- --- 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: - -- @@ -548,7 +599,8 @@ ALTER TABLE ONLY ufficio_orari -- --- 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: - -- @@ -557,7 +609,8 @@ ALTER TABLE ONLY ufficio_recapiti -- --- 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: - -- @@ -565,7 +618,7 @@ ALTER TABLE ONLY ufficio_stanze 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