/[openfoncier]/trunk/data/pgsql/v3.27.1.dev0.init_data.sql
ViewVC logotype

Contents of /trunk/data/pgsql/v3.27.1.dev0.init_data.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4174 - (show annotations)
Tue May 17 13:39:26 2016 UTC (8 years, 6 months ago) by nhaye
File size: 5434 byte(s)
Merge avec la branche de changement de collectivité agglo et modification de la synchro des contraintes

1 --
2 -- START - #459 — Des lignes de données techniques vides sans aucune liaison remplissent ~10% de la table
3 --
4
5 DELETE FROM donnees_techniques WHERE donnees_techniques = 17;
6 UPDATE donnees_techniques SET dossier_autorisation = 'AT0130551300001' WHERE donnees_techniques = 18;
7
8 --
9 -- END - #459 — Des lignes de données techniques vides sans aucune liaison remplissent ~10% de la table
10 --
11
12 --
13 -- START - #42 — Modification du fonctionnement de la synchro des contraintes
14 --
15
16 INSERT INTO om_utilisateur VALUES (
17 nextval('om_utilisateur_seq'),
18 'Administrateur gen Marseile',
19 '[email protected]',
20 'admingenmars',
21 md5('admingenmars'),
22 1,
23 'DB',
24 16
25 );
26
27 --
28 -- END - #42 — Modification du fonctionnement de la synchro des contraintes
29 --
30
31 UPDATE contrainte SET om_collectivite = 2 WHERE contrainte = 1;
32
33 INSERT INTO om_collectivite VALUES (12, 'temp', '1');
34
35 UPDATE om_etat SET om_collectivite = 12 WHERE om_collectivite = 1;
36 UPDATE om_lettretype SET om_collectivite = 12 WHERE om_collectivite = 1;
37 UPDATE om_logo SET om_collectivite = 12 WHERE om_collectivite = 1;
38 UPDATE om_parametre SET om_collectivite = 12 WHERE om_collectivite = 1;
39 UPDATE om_sig_flux SET om_collectivite = 12 WHERE om_collectivite = 1;
40 UPDATE om_sig_map SET om_collectivite = 12 WHERE om_collectivite = 1;
41 UPDATE om_sousetat SET om_collectivite = 12 WHERE om_collectivite = 1;
42 UPDATE om_utilisateur SET om_collectivite = 12 WHERE om_collectivite = 1;
43 UPDATE affectation_automatique SET om_collectivite = 12 WHERE om_collectivite = 1;
44 UPDATE bible SET om_collectivite = 12 WHERE om_collectivite = 1;
45 UPDATE contrainte SET om_collectivite = 12 WHERE om_collectivite = 1;
46 UPDATE demande SET om_collectivite = 12 WHERE om_collectivite = 1;
47 UPDATE demandeur SET om_collectivite = 12 WHERE om_collectivite = 1;
48 UPDATE direction SET om_collectivite = 12 WHERE om_collectivite = 1;
49 UPDATE dossier SET om_collectivite = 12 WHERE om_collectivite = 1;
50 UPDATE dossier_autorisation SET om_collectivite = 12 WHERE om_collectivite = 1;
51 UPDATE service SET om_collectivite = 12 WHERE om_collectivite = 1;
52 UPDATE signataire_arrete SET om_collectivite = 12 WHERE om_collectivite = 1;
53 UPDATE taxe_amenagement SET om_collectivite = 12 WHERE om_collectivite = 1;
54
55 UPDATE om_etat SET om_collectivite = 1 WHERE om_collectivite = 2;
56 UPDATE om_lettretype SET om_collectivite = 1 WHERE om_collectivite = 2;
57 UPDATE om_logo SET om_collectivite = 1 WHERE om_collectivite = 2;
58 UPDATE om_parametre SET om_collectivite = 1 WHERE om_collectivite = 2;
59 UPDATE om_sig_flux SET om_collectivite = 1 WHERE om_collectivite = 2;
60 UPDATE om_sig_map SET om_collectivite = 1 WHERE om_collectivite = 2;
61 UPDATE om_sousetat SET om_collectivite = 1 WHERE om_collectivite = 2;
62 UPDATE om_utilisateur SET om_collectivite = 1 WHERE om_collectivite = 2;
63 UPDATE affectation_automatique SET om_collectivite = 1 WHERE om_collectivite = 2;
64 UPDATE bible SET om_collectivite = 1 WHERE om_collectivite = 2;
65 UPDATE contrainte SET om_collectivite = 1 WHERE om_collectivite = 2;
66 UPDATE demande SET om_collectivite = 1 WHERE om_collectivite = 2;
67 UPDATE demandeur SET om_collectivite = 1 WHERE om_collectivite = 2;
68 UPDATE direction SET om_collectivite = 1 WHERE om_collectivite = 2;
69 UPDATE dossier SET om_collectivite = 1 WHERE om_collectivite = 2;
70 UPDATE dossier_autorisation SET om_collectivite = 1 WHERE om_collectivite = 2;
71 UPDATE service SET om_collectivite = 1 WHERE om_collectivite = 2;
72 UPDATE signataire_arrete SET om_collectivite = 1 WHERE om_collectivite = 2;
73 UPDATE taxe_amenagement SET om_collectivite = 1 WHERE om_collectivite = 2;
74
75 UPDATE om_etat SET om_collectivite = 2 WHERE om_collectivite = 12;
76 UPDATE om_lettretype SET om_collectivite = 2 WHERE om_collectivite = 12;
77 UPDATE om_logo SET om_collectivite = 2 WHERE om_collectivite = 12;
78 UPDATE om_parametre SET om_collectivite = 2 WHERE om_collectivite = 12;
79 UPDATE om_sig_flux SET om_collectivite = 2 WHERE om_collectivite = 12;
80 UPDATE om_sig_map SET om_collectivite = 2 WHERE om_collectivite = 12;
81 UPDATE om_sousetat SET om_collectivite = 2 WHERE om_collectivite = 12;
82 UPDATE om_utilisateur SET om_collectivite = 2 WHERE om_collectivite = 12;
83 UPDATE affectation_automatique SET om_collectivite = 2 WHERE om_collectivite = 12;
84 UPDATE bible SET om_collectivite = 2 WHERE om_collectivite = 12;
85 UPDATE contrainte SET om_collectivite = 2 WHERE om_collectivite = 12;
86 UPDATE demande SET om_collectivite = 2 WHERE om_collectivite = 12;
87 UPDATE demandeur SET om_collectivite = 2 WHERE om_collectivite = 12;
88 UPDATE direction SET om_collectivite = 2 WHERE om_collectivite = 12;
89 UPDATE dossier SET om_collectivite = 2 WHERE om_collectivite = 12;
90 UPDATE dossier_autorisation SET om_collectivite = 2 WHERE om_collectivite = 12;
91 UPDATE service SET om_collectivite = 2 WHERE om_collectivite = 12;
92 UPDATE signataire_arrete SET om_collectivite = 2 WHERE om_collectivite = 12;
93 UPDATE taxe_amenagement SET om_collectivite = 2 WHERE om_collectivite = 12;
94
95 DELETE FROM om_collectivite WHERE om_collectivite = 12;
96
97 UPDATE om_collectivite SET libelle = 'agglo', niveau = '2' WHERE om_collectivite = 1;
98 UPDATE om_collectivite SET libelle = 'MARSEILLE', niveau = '1' WHERE om_collectivite = 2;
99
100 UPDATE om_parametre SET om_collectivite = 1 WHERE libelle = 'id_evenement_completude_at';
101 UPDATE om_parametre SET om_collectivite = 1 WHERE libelle = 'id_evenement_cloture_at';
102
103 DELETE FROM om_parametre WHERE libelle = 'departement' and om_collectivite = 3;

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26