/[openfoncier]/trunk/data/pgsql/parametrage.sql
ViewVC logotype

Contents of /trunk/data/pgsql/parametrage.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 571 - (show annotations)
Wed Oct 31 15:16:42 2012 UTC (12 years, 3 months ago) by nhaye
File size: 2098 byte(s)
Modification du code suite à la modification des nom de fichiers précédement commités.

1 ---
2 ---
3 ---
4
5 update om_collectivite set libelle='MARSEILLE' where om_collectivite=1;
6 update om_collectivite set niveau=1 where om_collectivite=1;
7
8 delete from om_parametre where libelle='ville';
9 insert into om_parametre(om_parametre, libelle, valeur, om_collectivite) values (nextval('om_parametre_seq'), 'ville', 'Marseille', 1);
10
11 ---
12 ---
13 ---
14
15 delete from om_utilisateur;
16 delete from om_droit;
17 delete from om_widget;
18 delete from om_profil;
19
20 ---
21 ---
22 ---
23
24 insert into om_profil(om_profil, libelle, hierarchie) values (1, 'ADMINISTRATEUR TECHNIQUE', 0);
25 insert into om_profil(om_profil, libelle, hierarchie) values (2, 'INSTRUCTEUR', 0);
26 insert into om_profil(om_profil, libelle, hierarchie) values (3, 'SERVICE CONSULTÉ', 0);
27 insert into om_profil(om_profil, libelle, hierarchie) values (4, 'CELLULE SUIVI', 0);
28
29 insert into om_utilisateur(om_utilisateur, nom, email, login, pwd, om_profil, om_collectivite) values
30 (1, 'Administrateur', '[email protected]', 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, 1),
31 (2, 'Instructeur', '[email protected]', 'instr', 'e1403d6e7f5e9a4b9090db9056e5b08a', 2, 1),
32 (3, 'Service consulté', '[email protected]', 'consu', '0da946569d9461a74e7495ade5719b16', 3, 1),
33 (4, 'Cellule suivi', '[email protected]', 'suivi', '88a76b5541cd34cea92bc20ec5bf75e2', 4, 1);
34
35 ---
36 --- INSTRUCTEUR
37 ---
38
39 insert into om_droit(om_droit, libelle, om_profil) values
40 (nextval('om_droit_seq'), 'menu_instruction', 2),
41 (nextval('om_droit_seq'), 'consultation_mes_retours', 2),
42 (nextval('om_droit_seq'), 'consultation_tous_retours', 2),
43 (nextval('om_droit_seq'), 'consultation_modifier_lu', 2);
44 ---
45 --- SERVICE CONSULTE
46 ---
47
48 insert into om_droit(om_droit, libelle, om_profil) values
49 (nextval('om_droit_seq'), 'menu_demande_avis', 3),
50 (nextval('om_droit_seq'), 'demande_avis_encours', 3),
51 (nextval('om_droit_seq'), 'demande_avis_passee', 3),
52 (nextval('om_droit_seq'), 'demande_avis_export', 3),
53 (nextval('om_droit_seq'), 'consultation_retour_avis_service', 3);
54 ---
55 --- CELLULE SUIVI
56 ---
57
58 insert into om_droit(om_droit, libelle, om_profil) values
59 (nextval('om_droit_seq'), 'menu_suivi', 4);
60

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26