/[openfoncier]/trunk/data/pgsql/ver_3.00.sql
ViewVC logotype

Diff of /trunk/data/pgsql/ver_3.00.sql

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 152 by fraynaud, Thu Sep 29 15:23:51 2011 UTC revision 168 by fraynaud, Tue Oct 4 15:35:29 2011 UTC
# Line 93  CREATE SEQUENCE parcelle_lot_seq Line 93  CREATE SEQUENCE parcelle_lot_seq
93    MINVALUE 1    MINVALUE 1
94    MAXVALUE 9223372036854775807    MAXVALUE 9223372036854775807
95    START 1    START 1
   CACHE 1;  
96      CACHE 1;
97      
98      
99      
100      -- creation table stats sitadel
101      
102      CREATE TABLE statistique(
103      statistique integer NOT NULL,
104      parametre varchar(20) NOT NULL,
105      valeur varchar(50) NOT NULL,
106      dossier varchar(12) NOT NULL,
107      PRIMARY KEY  (statistique)
108    );
109    
110    CREATE TABLE parametre(
111      parametre varchar(20) NOT NULL,
112      valeur varchar(50) NOT NULL,
113      actif char(3) NOT NULL,
114      sitadel char(3),
115      PRIMARY KEY  (parametre)
116    );
117    
118    CREATE SEQUENCE statistique_seq
119      INCREMENT 1
120      MINVALUE 1
121      MAXVALUE 9223372036854775807
122      START 1
123      CACHE 1;
124    
125    
126    
127    ALTER TABLE ONLY statistique
128        ADD CONSTRAINT statistique_parametre_fkey FOREIGN KEY (parametre) REFERENCES parametre(parametre);
129    
130    ALTER TABLE ONLY statistique
131        ADD CONSTRAINT statistique_dossier_fkey FOREIGN KEY (dossier) REFERENCES dossier(dossier);
132    
133    -- destination shon
134    
135    ALTER TABLE destination_shon ADD shon_anterieure float;
136    ALTER TABLE destination_shon ADD shon_demolie float;
137    ALTER TABLE destination_shon ADD shon_anterieure_supprimee float;
138    ALTER TABLE destination_shon ADD shon_nouvelle_transformee float;
139    ALTER TABLE destination_shon ADD shon_nouvelle float;
140    ALTER TABLE destination_shon ADD shon_shob_transformee float;
141    
142    

Legend:
Removed from v.152  
changed lines
  Added in v.168

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26