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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 147 - (hide annotations)
Wed Sep 28 20:10:23 2011 UTC (13 years, 4 months ago) by fraynaud
File size: 2350 byte(s)
mise a niveau gestion sig independante


1 fraynaud 119 -- ver 3.00
2 fraynaud 134 -- ce script contient les modifications de la base version 2.xx
3     -- par la version 3.0.0
4 fraynaud 119
5 fraynaud 134 -- table action = parametrage hors
6    
7 fraynaud 119 ALTER TABLE action ADD regle_etat VARCHAR( 60 );
8     ALTER TABLE action ADD regle_delai VARCHAR( 60 );
9     ALTER TABLE action ADD regle_accord_tacite VARCHAR( 60 );
10     ALTER TABLE action ADD regle_avis VARCHAR( 60 );
11     ALTER TABLE action ADD regle_date_limite VARCHAR( 60 );
12     ALTER TABLE action ADD regle_date_notification_delai VARCHAR( 60 );
13     ALTER TABLE action ADD regle_date_complet VARCHAR( 60 );
14     ALTER TABLE action ADD regle_date_validite VARCHAR( 60 );
15     ALTER TABLE action ADD regle_date_decision VARCHAR( 60 );
16     ALTER TABLE action ADD regle_date_chantier VARCHAR( 60 );
17     ALTER TABLE action ADD regle_date_achevement VARCHAR( 60 );
18     ALTER TABLE action ADD regle_date_conformite VARCHAR( 60 );
19     ALTER TABLE action ADD regle_date_rejet VARCHAR( 60 );
20 fraynaud 127
21     -- dossier servitude
22    
23     ALTER TABLE dossier ADD servitude text;
24 fraynaud 142 ALTER TABLE dossier ADD parcelle_lot integer;
25     ALTER TABLE dossier ADD parcelle_lot_lotissement varchar(60) not null default '';
26 fraynaud 147
27     -- parcelle
28     alter table parcelle drop sig;
29    
30 fraynaud 134 -- creation de tables servitude_surfacique, servitude_ligne, servitude_point
31 fraynaud 127
32 fraynaud 147
33 fraynaud 134 CREATE TABLE servitude_surfacique (
34     servitude_surfacique integer,
35     libelle varchar(20),
36     observation varchar(80),
37     PRIMARY KEY (servitude_surfacique)
38     );
39    
40     CREATE TABLE servitude_ligne (
41     servitude_ligne integer,
42     libelle varchar(20),
43     observation varchar(80),
44     PRIMARY KEY (servitude_ligne)
45     );
46    
47     CREATE TABLE servitude_point (
48     servitude_point integer,
49     libelle varchar(20),
50     observation varchar(80),
51     PRIMARY KEY (servitude_point)
52     );
53    
54 fraynaud 142 CREATE TABLE parcelle_lot (
55     parcelle_lot integer,
56     lotissement varchar(50),
57     numero varchar(16),
58     surface numeric(10,3),
59     PRIMARY KEY (servitude_point)
60     );
61    
62 fraynaud 134 -- creation des sequences servitude_surfacique, servitude_ligne, servitude_point
63    
64     CREATE SEQUENCE servitude_surfacique_seq
65     INCREMENT 1
66     MINVALUE 1
67     MAXVALUE 9223372036854775807
68     START 1
69     CACHE 1;
70    
71     CREATE SEQUENCE servitude_ligne_seq
72     INCREMENT 1
73     MINVALUE 1
74     MAXVALUE 9223372036854775807
75     START 1
76     CACHE 1;
77    
78     CREATE SEQUENCE servitude_point_seq
79     INCREMENT 1
80     MINVALUE 1
81     MAXVALUE 9223372036854775807
82     START 1
83     CACHE 1;
84 fraynaud 142
85     CREATE SEQUENCE parcelle_lot_seq
86     INCREMENT 1
87     MINVALUE 1
88     MAXVALUE 9223372036854775807
89     START 1
90     CACHE 1;

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26