/[openfoncier]/trunk/data/pgsql/v3.1.0-b1.sql
ViewVC logotype

Annotation of /trunk/data/pgsql/v3.1.0-b1.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 384 - (hide annotations)
Wed Sep 19 10:36:42 2012 UTC (12 years, 4 months ago) by nhaye
Original Path: trunk/data/pgsql/v3.1.0-dev.sql
File size: 1403 byte(s)
Mise à jour des contraintes sur la table om_utilisateur
Régénération et correction des surcharges

1 nhaye 379 --
2     -- Contenu de la table om_droit
3     --
4     INSERT INTO om_droit (om_droit, om_profil) VALUES
5 fmichon 380
6     ('menu_application', '1'),
7     ('menu_export', '1'),
8     ('menu_parametrage', '1'),
9     ('menu_sig', '1'),
10     ('menu_administration', '1'),
11    
12     ('om_sig_map', '4'),
13     ('om_sig_map_comp', '4'),
14     ('om_sig_map_wms', '4'),
15     ('om_sig_wms', '4'),
16    
17     ('parcelle_lot', '4'),
18     ('servitude_surfacique', '4'),
19     ('servitude_point', '4'),
20     ('servitude_ligne', '4'),
21    
22     ('parametre', '4'),
23     ('num_dossier', '4'),
24    
25     ('edition_d', '2'),
26     ('edition', '2'),
27     ('reqmo', '2'),
28     ('export_pc', '2'),
29     ('export_dp', '2'),
30     ('export_sitadel', '2'),
31    
32     ('instruction', '2'),
33     ('consultation', '3'),
34     ('terrain', '3'),
35     ('blocnote', '3'),
36     ('destination_shon', '3'),
37     ('modificatif', '3'),
38    
39     ('dossier', '3')
40    
41     ;
42    
43     delete from om_droit where om_droit='om_sig_point';
44 nhaye 383
45    
46     -- mise a jour OM
47     -- v4.2.0 -> v4.3.0
48    
49     ALTER TABLE om_droit ALTER COLUMN om_profil DROP DEFAULT;
50 nhaye 384
51     ALTER TABLE om_utilisateur ALTER COLUMN om_utilisateur DROP DEFAULT;
52     ALTER TABLE om_utilisateur ALTER COLUMN nom DROP DEFAULT;
53     ALTER TABLE om_utilisateur ALTER COLUMN email DROP DEFAULT;
54     ALTER TABLE om_utilisateur ALTER COLUMN login DROP DEFAULT;
55     ALTER TABLE om_utilisateur ALTER COLUMN pwd DROP DEFAULT;
56     ALTER TABLE om_utilisateur ALTER COLUMN om_profil DROP DEFAULT;
57     ALTER TABLE om_utilisateur ALTER COLUMN om_type SET DEFAULT 'DB';
58    
59     ALTER TABLE om_utilisateur ADD CONSTRAINT om_utilisateur_login_key UNIQUE (login);

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26