/[openfoncier]/trunk/data/pgsql/v3.2.0-dev.sql
ViewVC logotype

Diff of /trunk/data/pgsql/v3.2.0-dev.sql

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

revision 915 by mlimic, Thu Nov 29 18:25:39 2012 UTC revision 1010 by fmichon, Thu Dec 6 16:48:08 2012 UTC
# Line 362  ALTER TABLE om_parametre ALTER COLUMN va Line 362  ALTER TABLE om_parametre ALTER COLUMN va
362  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'avis_code_barre', '2');  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'avis_code_barre', '2');
363    
364  --  --
365  -- Ajout des tables arrondissement, quartier et lien_localisation_nature  -- Ajout des tables arrondissement, quartier et affectation_automatique
366  --  --
367  CREATE TABLE arrondissement (  CREATE TABLE arrondissement (
368          arrondissement integer NOT NULL,          arrondissement integer NOT NULL,
# Line 399  CREATE SEQUENCE quartier_seq Line 399  CREATE SEQUENCE quartier_seq
399    START 1    START 1
400    CACHE 1;    CACHE 1;
401    
402  CREATE TABLE lien_localisation_nature (  CREATE TABLE affectation_automatique (
403          lien_localisation_nature integer NOT NULL,          affectation_automatique integer NOT NULL,
         nature character varying(2),  
404          arrondissement integer,          arrondissement integer,
405          quartier integer ,          quartier integer ,
406          section varchar(2),          section varchar(2),
407          instructeur integer NOT NULL          instructeur integer NOT NULL
408  );  );
409    
410  ALTER TABLE ONLY lien_localisation_nature  ALTER TABLE ONLY affectation_automatique
411      ADD CONSTRAINT lien_localisation_nature_pkey PRIMARY KEY (lien_localisation_nature);      ADD CONSTRAINT affectation_automatique_pkey PRIMARY KEY (affectation_automatique);
412  ALTER TABLE ONLY lien_localisation_nature  ALTER TABLE ONLY affectation_automatique
413      ADD CONSTRAINT lien_localisation_nature_nature_fkey FOREIGN KEY (nature) REFERENCES nature(nature);      ADD CONSTRAINT affectation_automatique_arrondissement_fkey FOREIGN KEY (arrondissement) REFERENCES arrondissement(arrondissement);
414  ALTER TABLE ONLY lien_localisation_nature  ALTER TABLE ONLY affectation_automatique
415      ADD CONSTRAINT lien_localisation_nature_arrondissement_fkey FOREIGN KEY (arrondissement) REFERENCES arrondissement(arrondissement);      ADD CONSTRAINT affectation_automatique_quartier_fkey FOREIGN KEY (quartier) REFERENCES quartier(quartier);
416  ALTER TABLE ONLY lien_localisation_nature  ALTER TABLE ONLY affectation_automatique
417      ADD CONSTRAINT lien_localisation_nature_quartier_fkey FOREIGN KEY (quartier) REFERENCES quartier(quartier);      ADD CONSTRAINT affectation_automatique_instructeur_fkey FOREIGN KEY (instructeur) REFERENCES instructeur(instructeur);
 ALTER TABLE ONLY lien_localisation_nature  
     ADD CONSTRAINT lien_localisation_nature_instructeur_fkey FOREIGN KEY (instructeur) REFERENCES instructeur(instructeur);  
418    
419  CREATE SEQUENCE lien_localisation_nature_seq  CREATE SEQUENCE affectation_automatique_seq
420    INCREMENT 1    INCREMENT 1
421    MINVALUE 1    MINVALUE 1
422    MAXVALUE 9223372036854775807    MAXVALUE 9223372036854775807
# Line 439  INSERT INTO om_droit VALUES (nextval('om Line 436  INSERT INTO om_droit VALUES (nextval('om
436  -- Ajout des droits pour le retour des services  -- Ajout des droits pour le retour des services
437  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'demande_avis_passee', '2');  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'demande_avis_passee', '2');
438    
439  -- Ajout des droits sur lien_localisation_nature  -- Ajout des droits sur affectation_automatique
440  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'lien_localisation_nature', '2');  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'affectation_automatique', '2');
441    
442  -- Ajout du droit pour changer l'état (lu/non lu) d'une  consultation  -- Ajout du droit pour changer l'état (lu/non lu) d'une  consultation
443  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'consultation_modifier_lu', '2');  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'consultation_modifier_lu', '2');
# Line 455  ALTER TABLE terrain ALTER COLUMN parcell Line 452  ALTER TABLE terrain ALTER COLUMN parcell
452  --  --
453    
454  -- create sequence for the message ID generation  -- create sequence for the message ID generation
455  CREATE SEQUENCE messages_seq  CREATE SEQUENCE dossier_message_seq
456      START WITH 1      START WITH 1
457      INCREMENT BY 1      INCREMENT BY 1
458      NO MINVALUE      NO MINVALUE
# Line 464  CREATE SEQUENCE messages_seq Line 461  CREATE SEQUENCE messages_seq
461    
462  -- Create table dossier_message  -- Create table dossier_message
463  CREATE TABLE dossier_message (  CREATE TABLE dossier_message (
464      message integer PRIMARY KEY DEFAULT nextval('messages_seq'),      dossier_message integer PRIMARY KEY,
465      dossier character varying(12),      dossier character varying(20),
466      type character varying(60),      type character varying(60),
467      emetteur character varying(40),      emetteur character varying(40),
468      date_emission TIMESTAMP NOT NULL,      date_emission TIMESTAMP NOT NULL,
# Line 473  CREATE TABLE dossier_message ( Line 470  CREATE TABLE dossier_message (
470      contenu text,      contenu text,
471      FOREIGN KEY ( dossier ) REFERENCES dossier ( dossier )      FOREIGN KEY ( dossier ) REFERENCES dossier ( dossier )
472  );  );
 ALTER SEQUENCE messages_seq OWNED BY dossier_message.message;  
473    
474  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'menu_suivi', '2');  INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'menu_suivi', '2');
475    
# Line 565  CREATE SEQUENCE dossier_autorisation_typ Line 561  CREATE SEQUENCE dossier_autorisation_typ
561    START 1    START 1
562    CACHE 1;    CACHE 1;
563    
564    -- Ajout du champs dossier_autorisation_type_detaille dans la table affectation_automatique et de la contrainte FK
565    
566    ALTER TABLE affectation_automatique ADD COLUMN dossier_autorisation_type_detaille integer;
567    
568    ALTER TABLE ONLY affectation_automatique
569        ADD CONSTRAINT affectation_automatique_dossier_autorisation_type_detaille_fkey FOREIGN KEY (dossier_autorisation_type_detaille) REFERENCES dossier_autorisation_type_detaille(dossier_autorisation_type_detaille);
570    
571  --  --
572    
573  CREATE TABLE dossier_instruction_type (  CREATE TABLE dossier_instruction_type (
# Line 703  INSERT INTO dossier_autorisation_type_de Line 706  INSERT INTO dossier_autorisation_type_de
706  -- Table dossier_autorisation  -- Table dossier_autorisation
707    
708  CREATE TABLE dossier_autorisation (  CREATE TABLE dossier_autorisation (
709      dossier_autorisation character varying(12),      dossier_autorisation character varying(20),
710      nature character varying(2),      nature character varying(2),
711      dossier_autorisation_type_detaille integer,      dossier_autorisation_type_detaille integer,
712      exercice integer,      exercice integer,
# Line 724  CREATE TABLE dossier_autorisation ( Line 727  CREATE TABLE dossier_autorisation (
727      erp_ouvert boolean,      erp_ouvert boolean,
728      erp_date_ouverture date,      erp_date_ouverture date,
729      erp_arrete_decision boolean,      erp_arrete_decision boolean,
730      erp_date_arrete_decision date      erp_date_arrete_decision date,
731            numero_version integer DEFAULT 0
732  );  );
733    
734  ALTER TABLE ONLY dossier_autorisation  ALTER TABLE ONLY dossier_autorisation
# Line 749  CREATE SEQUENCE dossier_autorisation_seq Line 753  CREATE SEQUENCE dossier_autorisation_seq
753    
754  CREATE TABLE demande (  CREATE TABLE demande (
755          demande integer,          demande integer,
756          dossier_autorisation_type_detaille integer,          dossier_autorisation_type_detaille integer NOT NULL,
757          demande_type integer,          demande_type integer NOT NULL,
758          dossier_instruction character varying(12),          dossier_instruction character varying(20),
759          dossier_autorisation character varying(12),          dossier_autorisation character varying(20),
760          date_demande date,          date_demande date NOT NULL,
761          terrain_references_cadastrales character varying(100),          terrain_references_cadastrales character varying(100),
762          terrain_adresse_voie_numero integer,          terrain_adresse_voie_numero integer,
763          complement character varying(30),          complement character varying(30),
# Line 763  CREATE TABLE demande ( Line 767  CREATE TABLE demande (
767          terrain_adresse_bp character varying(15),          terrain_adresse_bp character varying(15),
768          terrain_adresse_cedex character varying(15),          terrain_adresse_cedex character varying(15),
769          terrain_superficie double precision,          terrain_superficie double precision,
770          nombre_lots integer          nombre_lots integer,
771            instruction_recepisse integer,
772            arrondissement integer
773  );  );
774    
775  ALTER TABLE ONLY demande  ALTER TABLE ONLY demande
# Line 776  ALTER TABLE ONLY demande Line 782  ALTER TABLE ONLY demande
782      ADD CONSTRAINT demande_dossier_instruction_fkey FOREIGN KEY (dossier_instruction) REFERENCES dossier(dossier);      ADD CONSTRAINT demande_dossier_instruction_fkey FOREIGN KEY (dossier_instruction) REFERENCES dossier(dossier);
783  ALTER TABLE ONLY demande  ALTER TABLE ONLY demande
784      ADD CONSTRAINT demande_dossier_autorisation_fkey FOREIGN KEY (dossier_autorisation) REFERENCES dossier_autorisation(dossier_autorisation);      ADD CONSTRAINT demande_dossier_autorisation_fkey FOREIGN KEY (dossier_autorisation) REFERENCES dossier_autorisation(dossier_autorisation);
785    ALTER TABLE ONLY demande
786        ADD CONSTRAINT demande_instruction_recepisse_fkey FOREIGN KEY (instruction_recepisse) REFERENCES instruction(instruction);
787    ALTER TABLE ONLY demande
788        ADD CONSTRAINT demande_arrondissement_fkey FOREIGN KEY (arrondissement) REFERENCES arrondissement(arrondissement);
789    
790  CREATE SEQUENCE demande_seq  CREATE SEQUENCE demande_seq
791    INCREMENT 1    INCREMENT 1
# Line 1012  UPDATE civilite SET libelle='Monsieur' W Line 1022  UPDATE civilite SET libelle='Monsieur' W
1022  CREATE TABLE lien_dossier_autorisation_demandeur (  CREATE TABLE lien_dossier_autorisation_demandeur (
1023      lien_dossier_autorisation_demandeur integer,      lien_dossier_autorisation_demandeur integer,
1024      petitionnaire_principal boolean,      petitionnaire_principal boolean,
1025      dossier_autorisation character varying(12),      dossier_autorisation character varying(20),
1026      demandeur integer      demandeur integer
1027  );  );
1028    
# Line 1060  UPDATE om_sousetat SET om_sql='SELECT  ' Line 1070  UPDATE om_sousetat SET om_sql='SELECT  '
1070  INSERT INTO om_etat VALUES (nextval('om_etat_seq'), 1, 'dossier_m', 'import du 25/11/2012', true, 'L', 'A4', 'helvetica', 'I', 8, 'pixel.png', 58, 7, 'Registre des dossiers en cours', 5, 7, 100, 10, 'helvetica', 'B', 15, '1', 'L', '  INSERT INTO om_etat VALUES (nextval('om_etat_seq'), 1, 'dossier_m', 'import du 25/11/2012', true, 'L', 'A4', 'helvetica', 'I', 8, 'pixel.png', 58, 7, 'Registre des dossiers en cours', 5, 7, 100, 10, 'helvetica', 'B', 15, '1', 'L', '
1071  No commune : &departement &commune &ville', 120, 7, 195, 5, 'helvetica', '', 10, '0', 'J', 'select nom from om_utilisateur', 'dossier_m', 'helvetica', 8, 5, 5, '0-0-0');  No commune : &departement &commune &ville', 120, 7, 195, 5, 'helvetica', '', 10, '0', 'J', 'select nom from om_utilisateur', 'dossier_m', 'helvetica', 8, 5, 5, '0-0-0');
1072    
1073  INSERT INTO om_sousetat VALUES (nextval('om_sousetat_seq'), 1, 'dossier_m', 'import du 26/11/2012', true, 'Edition du &aujourdhui', 8, 'helvetica', '', 9, '0', 'L', '0', '243-246-246', '0-0-0', 5, 0, '1', '1', '0|0|0|0|0|0|90|90|0|0|0|90|90', 37, 'TLB|LTB|LTBR|TLB|LTB|LTBR|TLB|LTB|LTBR|LTBR|TLB|LTB|LTBR|LTBR|LTBR', 'C|C|C|L|L|R|R|R|L|R|R|R|R', '145-184-189', '0-0-0', 280, '1', 7, '0-0-0', '243-246-246', '255-255-255', '1', 9, '20|20|20|50|57|15|15|10|20|20|11|21|21', 'LTBR|LTBR|LTBRL|LTBR|LTBR|LTBRL|LTBR|LTBR|LTBR|LTBRL|LTBR|LTBR|LTBR', 'LTBR|LTBR|LTBR|LTBR|LTBR|LTBRL|LTBR|LTBR|LTBR|LTBRL|LTBR|LTBR|LTBR', 'C|C|C|L|L|C|R|R|L|C|R|C|C', '1', 10, 15, '196-213-215', 'TBL|TBL|TBL|TBLR|TBL|TBL|TBLR|TBLR|TBL|TBL|TBLR|TBLR|TBLR', 'L|L|L|C|L|L|C|C|L|L|C|C|C', '1', 10, 5, '212-219-220', 'BTL|BTL|BTL|BTLR|BTL|BTL|BTLR|TBLR|BTL|BTL|BTLR|TBLR|TBLR', 'L|L|L|C|L|L|C|C|L|L|C|C|C', '1', 10, 15, '255-255-255', 'TBL|TBL|TBL|TBLR|TBL|TBL|TBLR|TBLR|TBL|TBL|TBLR|TBLR|TBLR', 'L|L|L|R|L|L|R|R|L|L|R|R|R', '999|999|999|999|999|999|999|999|999|999|999|999|999', '0|0|0|0|0|0|0|0|0|0|0|0|0', '0|0|0|0|0|0|0|0|0|0|0|0|0', '0|0|0|0|0|0|0|0|0|0|0|0|0', 'SELECT  ''Commune &commune''||'' ''||''Dossier ''||dossier as dossier,  ''Depot ''||to_char(date_depot,''DD/MM/YYYY'')||'' Notifie le  ''||COALESCE(to_char(date_complet,''DD/MM/YYYY''),''inconu'') as date_dp_n, arrondissement.libelle as arrondissement, TRIM(CONCAT(civilite.libelle,'' '',demandeur_nom,'' '',demandeur_adresse,'' '',demandeur_cp,''  '',demandeur_ville,'' Parcelle '',parcelle)) as nom_adresse_demandeur, CONCAT(terrain_numero, '' '', terrain_numero_complement, '' '', terrain_adresse, '' '', terrain_adresse_complement, ''  '', terrain_cp, ''  '', terrain_ville, '' '', travaux.libelle) as adresse_terrain_travaux, CONCAT(''shon  '', shon, '' shob '', shob) as SN_SB, terrain_surface as superficie, logement_nombre as nbr_logement, COALESCE(avis_decision.libelle,''inconu'') as avis_decision, ''Decision''||COALESCE(to_char(date_decision,''DD/MM/YYYY''),''inconu'')||'' Limite ''||COALESCE(to_char(date_limite,''DD/MM/YYYY''),''inconu'') as date_dc_l, delai||'' mois'' as delai, '' '' as date_affichage_decision, '' '' as DOC_DAT_Conformite from dossier left join civilite on demandeur_civilite = civilite.civilite left join travaux on dossier.travaux=travaux.travaux left join avis_decision on dossier.avis_decision=avis_decision.avis_decision left join arrondissement on terrain_cp = arrondissement.code_postal where (select e.statut from etat e where e.etat = dossier.etat ) = ''encours''  ORDER BY arrondissement.libelle');  INSERT INTO om_sousetat VALUES (11, 1, 'dossier_m', 'import du 26/11/2012', true, 'Edition du &aujourdhui', 8, 'helvetica', '', 9, '0', 'L', '0', '243-246-246', '0-0-0', 5, 0, '1', '1', '0|0|0|0|0|0|90|90|0|0|0|90|90', 37, 'TLB|LTB|LTBR|TLB|LTB|LTBR|TLB|LTB|LTBR|LTBR|TLB|LTB|LTBR|LTBR|LTBR', 'C|C|C|L|L|R|R|R|L|R|R|R|R', '145-184-189', '0-0-0', 280, '1', 7, '0-0-0', '243-246-246', '255-255-255', '1', 9, '20|20|20|50|57|15|15|10|20|20|11|21|21', 'LTBR|LTBR|LTBRL|LTBR|LTBR|LTBRL|LTBR|LTBR|LTBR|LTBRL|LTBR|LTBR|LTBR', 'LTBR|LTBR|LTBR|LTBR|LTBR|LTBRL|LTBR|LTBR|LTBR|LTBRL|LTBR|LTBR|LTBR', 'C|C|C|L|L|C|R|R|L|C|R|C|C', '1', 10, 15, '196-213-215', 'TBL|TBL|TBL|TBLR|TBL|TBL|TBLR|TBLR|TBL|TBL|TBLR|TBLR|TBLR', 'L|L|L|C|L|L|C|C|L|L|C|C|C', '1', 10, 5, '212-219-220', 'BTL|BTL|BTL|BTLR|BTL|BTL|BTLR|TBLR|BTL|BTL|BTLR|TBLR|TBLR', 'L|L|L|C|L|L|C|C|L|L|C|C|C', '1', 10, 15, '255-255-255', 'TBL|TBL|TBL|TBLR|TBL|TBL|TBLR|TBLR|TBL|TBL|TBLR|TBLR|TBLR', 'L|L|L|R|L|L|R|R|L|L|R|R|R', '999|999|999|999|999|999|999|999|999|999|999|999|999', '0|0|0|0|0|0|0|0|0|0|0|0|0', '0|0|0|0|0|0|0|0|0|0|0|0|0', '0|0|0|0|0|0|0|0|0|0|0|0|0', 'SELECT  
1074        CONCAT(''Commune &commune'','' '',''Dossier '', dossier) as dossier,  
1075        CONCAT(''Depot '', to_char(date_depot,''DD/MM/YYYY''), '' Notifie le  '', COALESCE(to_char(date_complet,''DD/MM/YYYY''),''inconu'')) as date_dp_n,
1076        arrondissement.libelle as arrondissement,
1077        TRIM(CONCAT(civilite.libelle,'' '',demandeur_nom,'' '',demandeur_adresse,'' '',demandeur_cp,''  '',demandeur_ville,'' Parcelle '',parcelle)) as nom_adresse_demandeur,
1078        CONCAT(dossier.terrain_adresse_voie_numero, '' '', dossier.complement, ''  '', dossier.terrain_adresse_code_postal, ''  '', dossier.terrain_adresse_localite, '' '', travaux.libelle) as adresse_terrain_travaux,
1079        CONCAT(''shon  '', shon, '' shob '', shob) as SN_SB,
1080        terrain_surface as superficie,
1081        logement_nombre as nbr_logement,
1082        COALESCE(avis_decision.libelle,''inconu'') as avis_decision,
1083        CONCAT(''Decision'', COALESCE(to_char(date_decision,''DD/MM/YYYY''),''inconu''), '' Limite '', COALESCE(to_char(date_limite,''DD/MM/YYYY''),''inconu'')) as date_dc_l,
1084        CONCAT(delai, '' mois'') as delai,
1085        '' '' as date_affichage_decision,
1086        '' '' as DOC_DAT_Conformite
1087    FROM
1088        dossier
1089    INNER JOIN dossier_autorisation ON dossier.dossier_autorisation = dossier_autorisation.dossier_autorisation
1090    INNER JOIN dossier_autorisation_type_detaille ON dossier_autorisation.dossier_autorisation_type_detaille = dossier_autorisation_type_detaille.dossier_autorisation_type_detaille
1091    INNER JOIN dossier_autorisation_type ON dossier_autorisation_type_detaille.dossier_autorisation_type = dossier_autorisation_type.dossier_autorisation_type
1092    LEFT JOIN civilite ON demandeur_civilite = civilite.civilite
1093    LEFT JOIN travaux ON dossier.travaux=travaux.travaux
1094    LEFT JOIN avis_decision ON dossier.avis_decision=avis_decision.avis_decision
1095    LEFT JOIN arrondissement ON dossier.terrain_adresse_code_postal = arrondissement.code_postal
1096    WHERE
1097        (select e.statut from etat e where e.etat = dossier.etat ) = ''encours''  
1098    ORDER BY
1099        dossier_autorisation_type.libelle, arrondissement.libelle');
1100    
1101  -- Ajout d'un nouvel évènement "affichage_obligatoire"  -- Ajout d'un nouvel évènement "affichage_obligatoire"
1102  INSERT INTO evenement VALUES (89, 'affichage_obligatoire', 'T', 'divers', NULL, 0, 'Non', 0, 'attestation_affichage', '   ', NULL);  INSERT INTO evenement VALUES (89, 'affichage_obligatoire', 'T', 'divers', NULL, 0, 'Non', 0, 'attestation_affichage', '   ', NULL);
# Line 1086  INSERT INTO om_lettretype VALUES (nextva Line 1122  INSERT INTO om_lettretype VALUES (nextva
1122  CREATE TABLE lien_dossier_demandeur (  CREATE TABLE lien_dossier_demandeur (
1123      lien_dossier_demandeur integer,      lien_dossier_demandeur integer,
1124      petitionnaire_principal boolean,      petitionnaire_principal boolean,
1125      dossier character varying(12),      dossier character varying(20),
1126      demandeur integer      demandeur integer
1127  );  );
1128    
# Line 1103  CREATE SEQUENCE lien_dossier_demandeur_s Line 1139  CREATE SEQUENCE lien_dossier_demandeur_s
1139    MAXVALUE 9223372036854775807    MAXVALUE 9223372036854775807
1140    START 1    START 1
1141    CACHE 1;    CACHE 1;
1142    
1143    ALTER TABLE dossier ALTER nature TYPE character varying(3);
1144    ALTER TABLE nature ALTER nature TYPE character varying(3);
1145    ALTER TABLE nature ALTER libelle TYPE character varying(150);
1146    ALTER TABLE dossier ALTER nature DROP NOT NULL;
1147    
1148    INSERT INTO nature VALUES ('PCI', 'Permis de construire pour une maison individuelle et / ou ses annexes');
1149    INSERT INTO nature VALUES ('PCA', 'Permis de construire comprenant ou non des démolitions');
1150    INSERT INTO nature VALUES ('AZ', 'Demande d''autorisation spéciale de travaux dans le périmètre d''une AVAP');
1151    INSERT INTO nature VALUES ('DAT', 'Demande d''autorisation de construire, d''aménager ou de modifier un ERP');
1152    
1153    ALTER TABLE dossier ALTER COLUMN dossier TYPE character varying(20);
1154    
1155    ALTER TABLE dossier ADD column dossier_autorisation character varying(20) NOT NULL;
1156    ALTER TABLE ONLY dossier
1157        ADD CONSTRAINT dossier_dossier_autorisation_fkey FOREIGN KEY (dossier_autorisation) REFERENCES dossier_autorisation(dossier_autorisation);
1158    
1159    ALTER TABLE instruction ALTER COLUMN dossier TYPE character varying(20);
1160    
1161    ALTER TABLE instruction ALTER COLUMN dossier TYPE character varying(20);
1162    ALTER TABLE consultation ALTER COLUMN dossier TYPE character varying(20);
1163    ALTER TABLE terrain ALTER COLUMN dossier TYPE character varying(20);
1164    ALTER TABLE blocnote ALTER COLUMN dossier TYPE character varying(20);
1165    ALTER TABLE destination_shon ALTER COLUMN dossier TYPE character varying(20);
1166    ALTER TABLE statistique ALTER COLUMN dossier TYPE character varying(20);
1167    
1168    INSERT INTO om_parametre VALUES (nextval('om_parametre_seq'), 'option_ERP', 'true', 1);
1169    INSERT INTO om_parametre VALUES (nextval('om_parametre_seq'), 'option_GED', 'false', 1);
1170    
1171    ALTER TABLE om_utilisateur ALTER COLUMN email TYPE character varying(100);
1172    
1173    --Droit sur le menu
1174    INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'demande_recepisse_demande', '6');
1175    
1176    --Droit sur les liens affichés dans le portlet
1177    INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'demande_modifier', '2');
1178    INSERT INTO om_droit VALUES (nextval('om_droit_seq'),'demande_supprimer', '2');

Legend:
Removed from v.915  
changed lines
  Added in v.1010

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26