ALTER TABLE `etat_reservation` CHANGE `nom` `nom` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, CHANGE `nomEn` `nomEn` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; INSERT INTO `etat_reservation` (`id`, `nom`, `nomEn`) VALUES (11, 'Demande sur liste d''attente', 'Request pendding list'); INSERT INTO `etat_reservation` (`id`, `nom`, `nomEn`) VALUES (12, 'Refus Etudiant', 'Refused by the student'); UPDATE `etat_reservation` SET `nom` = 'Refus gestionnaire' WHERE `etat_reservation`.`id` = 4; INSERT INTO `etat_reservation` (`id`, `nom`, `nomEn`) VALUES (13, 'Désistement en cours', 'Disclaimer pendding'); INSERT INTO `etat_reservation` (`id`, `nom`, `nomEn`) VALUES (14, 'Désistement validé', 'disclaimer validated'); INSERT INTO `type_liste` (`id`, `type`) VALUES ('9', 'Désistement en cours'); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (17, 'Refus logement etudiant', 'ludovic.gerard@iriga-networks.com', '1'); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (18, 'Refus logement gestionnaire', 'ludovic.gerard@iriga-networks.com', '1'); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (19, 'Désistement pris en compte moins 1 mois', 'ludovic.gerard@iriga-networks.com', '1'); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (20, 'Désistement pris en compte plus 1 mois', 'ludovic.gerard@iriga-networks.com', '1'); ALTER TABLE `reservations` ADD `horaireArrivee` ENUM('horaire','horshoraire') NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'horaireArrivee', 'Horaire arrivé', '2', '30', '100', 'horaireArrivee', '', '1', '0', 'reservations'); ALTER TABLE `content` ADD `dateDebut` DATE NULL , ADD `dateFin` DATE NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'RefusComment', 'Commentaire refus', '2', '30', '100', 'RefusComment', '', '1', '0', 'reservations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'DesistComment', 'Commentaire désistement', '2', '30', '100', 'DesistComment', '', '1', '0', 'reservations'); -------------------------------------------------------------- ALTER TABLE `reservations` ADD `flag` VARCHAR(100) NULL ; INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (21, 'Confirmation de date arrviée', 'ludovic.gerard@iriga-networks.com', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Refus de réservation', 'liste-btn-refus', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Désistement de réservation', 'liste-btn-desist', 'bouton', '1'); CREATE TABLE IF NOT EXISTS `config_global` ( `id` mediumint(9) NOT NULL AUTO_INCREMENT, `param` varchar(255) NOT NULL, `valeurTest` varchar(255) NOT NULL, `valeurProd` varchar(255) NOT NULL, `environement` enum('TEST','PROD') NOT NULL DEFAULT 'TEST', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Contenu de la table `config_global` -- INSERT INTO `config_global` (`id`, `param`, `valeurTest`, `valeurProd`, `environement`) VALUES (1, 'MYESSEC', 'https://rec7login.essec.fr/webservice/iriga/studentidentity/', 'https://login.essec.fr/webservice/iriga/studentidentity/', 'TEST'), (2, 'CASURL', 'rec7login.essec.fr/cas', 'login.essec.fr/cas', 'TEST'), (3, 'CASCERT', '/public/cgi-bin/CAS/rec7login.essec.fr-ca.pem', '/public/cgi-bin/CAS/login.essec.fr-ca.pem', 'TEST'); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (22, 'Remboursement DG : confirmation du RIB', 'ludovic.gerard@iriga-networks.com', '1'); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (23, 'Remboursement DG : confirmation du paiement', 'ludovic.gerard@iriga-networks.com', '1'); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (24, 'Remboursement DG : virement échoué', 'ludovic.gerard@iriga-networks.com', '1'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantRemboursement', 'Montant remboursement DG', '2', '30', '100', 'montantRemboursement', '', '1', '0', 'remboursements'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateRemboursement', 'Date remboursement DG', '2', '30', '100', 'dateRemboursement', '', '1', '0', 'remboursements'); INSERT INTO `type_liste` (`id`, `type`) VALUES (10, 'Demandes en attente'); ------------18-07-2017 INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (59, 'Facturation', 'zfcadmin/facturation', 'menu', '0'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Brouillard', 'zfcadmin/brouillard', 'menu', '59'); CREATE TABLE IF NOT EXISTS `brouillard` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dateValidation` datetime NOT NULL, `mois` int(11) NOT NULL, `etat` varchar(50) NOT NULL, `idGestionnaire` mediumint(9) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; ALTER TABLE `brouillard` CHANGE `mois` `mois` VARCHAR(8) NOT NULL; -----------------19-07-2017 INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mise en attente de réservation', 'liste-btn-attente', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Revalidation de réservation', 'liste-btn-revalider', 'bouton', '1'); ALTER TABLE `reservations` ADD `methodePaiement` VARCHAR(3) NULL , ADD `paiementComment` TEXT NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'methodePaiement', 'Paiement par virement', '2', '30', '100', 'methodePaiement', '', '1', '0', 'reservations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'paiementComment', 'Commentaire paiement', '2', '30', '100', 'paiementComment', '', '1', '0', 'reservations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'flag', 'Flag réservation', '2', '30', '100', 'flag', '', '1', '0', 'reservations'); ----------------20-07-2017 INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (25, 'Demande mise en attente', 'ludovic.gerard@iriga-networks.com', '1'); ALTER TABLE `brouillard` ADD `idResidence` MEDIUMINT NOT NULL ; ALTER TABLE `brouillard` ADD `libre` TEXT NULL ; ----------------24-07-2017 INSERT INTO `type_liste` (`id`, `type`) VALUES (11, 'Demandes refusées'); ----------------25-07-2017 INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Champ date début de contrat', 'liste-input-dateArriveeTheorique', 'champs', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Champ date fin de contrat', 'liste-input-dateDepartTheorique', 'champs', '1'); INSERT INTO `type_liste` (`id`, `type`) VALUES (12, 'Affectations'); ----------------27-07-2017 = WADIE : GESTION DES DEMANDES INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Demandes', 'zfcadmin/demandes', 'menu', 4); // WADIE : LE 28/07/2017 -- -------------------------------------------------------- -- -- Structure de la table `champs_demandes` -- CREATE TABLE IF NOT EXISTS `champs_demandes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libelle` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `classCss` varchar(255) DEFAULT NULL, `idCss` varchar(255) NOT NULL, `options` text, `description` text, `obligatoire` tinyint(1) NOT NULL, `equivalentSql` varchar(255) DEFAULT NULL, `actionJS` varchar(255) DEFAULT NULL, `active` int(1) NOT NULL, `sourceListe` varchar(100) DEFAULT NULL, `ordre` tinyint(4) NOT NULL, `column` tinyint(1) NOT NULL DEFAULT '1', `row` int(2) NOT NULL, `idType` tinyint(4) NOT NULL, `idModele` int(11) NOT NULL, `idsCampagne` varchar(100) DEFAULT NULL, `nature` enum('standard','libre','texte') NOT NULL DEFAULT 'standard', `tailleColumn` tinyint(1) NOT NULL DEFAULT '1', `tailleRow` tinyint(1) NOT NULL DEFAULT '1', `nomXML` varchar(200) DEFAULT NULL, `size` smallint(6) DEFAULT NULL, `acces` tinyint(1) NOT NULL DEFAULT '1', `obligatoireDemande` tinyint(1) NOT NULL, `modifiable` tinyint(1) NOT NULL DEFAULT '1', `equivalentWS` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `demandes` -- CREATE TABLE IF NOT EXISTS `demandes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idLocataire` int(11) NOT NULL, `etat` int(11) NOT NULL, `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Structure de la table `demandes_etat` -- CREATE TABLE IF NOT EXISTS `demandes_etat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Contenu de la table `demandes_etat` -- INSERT INTO `demandes_etat` (`id`, `nom`) VALUES (1, 'En attente de prise en compte'), (2, 'En cours'), (3, 'En attente de réponse'), (4, 'Compléments à prendre en compte'), (5, 'Validée'); -- -------------------------------------------------------- -- -- Structure de la table `demandes_messages` -- CREATE TABLE IF NOT EXISTS `demandes_messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `creation_date` datetime NOT NULL, `idDemande` int(11) NOT NULL, `idSender` int(11) NOT NULL, `message` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Structure de la table `demandes_modeles` -- CREATE TABLE IF NOT EXISTS `demandes_modeles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `type` int(11) NOT NULL, `etat` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Structure de la table `demandes_type` -- CREATE TABLE IF NOT EXISTS `demandes_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `tabNom` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; -- -- Contenu de la table `demandes_type` -- INSERT INTO `demandes_type` (`id`, `nom`, `tabNom`) VALUES (1, 'Réservation de salle', 'reservationSalle'), (2, 'Changement de chambre', 'changementChambre'), (3, 'Prolongation de séjour', 'prolongationSejour'), (4, 'Départ anticipé', 'depart'), (5, 'Travaux', 'travaux'), (6, 'Renonce', 'renonce'); -- -------------------------------------------------------- -- -- Structure de la table `demandes_values` -- CREATE TABLE IF NOT EXISTS `demandes_values` ( `id` int(11) NOT NULL AUTO_INCREMENT, `valeur` text NOT NULL, `idChamp` int(11) NOT NULL, `idDemande` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (null, 'Demandes', 'zfcadmin/demandes', 'menu', 4); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Demandes', 'demandes', 'Reservation\\Controller\\Demandes', 'index', 26); -- 29-07-2017 ALTER TABLE `reservations` ADD `dateConfirmation` DATE NULL ; -- 02-08-2017 ALTER TABLE `reservations` ADD `flagDemande` VARCHAR(100) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'flagDemande', 'Flag demande réservation', '2', '30', '100', 'flagDemande', '', '1', '0', 'reservations'); -- 03-08-2017 ALTER TABLE `reservations` ADD `flagConfirmation` VARCHAR(100) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'flagConfirmation', 'Flag confirmation arrivée', '2', '30', '100', 'flagConfirmation', '', '1', '0', 'reservations'); ALTER TABLE `remboursements` ADD `bic` VARCHAR(20) NULL ; -- 04-08-2017 ALTER TABLE `configuration` ADD `mode` VARCHAR(10) NULL ; UPDATE `configuration` SET `mode` = 'ESSEC' WHERE `configuration`.`id` = 1; ALTER TABLE `configuration` ADD `avecSignatureContrat` TINYINT(1) NOT NULL DEFAULT '0' ; CREATE TABLE IF NOT EXISTS `api_signature` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `className` varchar(100) NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `api_setting_signature` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `cle` varchar(255) NOT NULL, `valeur` varchar(255) NOT NULL, `idAPI` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `etat_reservation` (`id`, `nom`, `nomEn`) VALUES (15, 'Signature en cours', 'Signature in progress'); INSERT INTO `etat_reservation` (`id`, `nom`, `nomEn`) VALUES (16, 'Contrat signé', 'Signed contract'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'API signature', 'systeme-tab-api-signature', 'menu', 7); INSERT INTO `api_signature` (`id`, `nom`, `className`, `active`) VALUES (NULL, 'ConcordNow', 'ConcordNow', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Signature du contrat', 'liste-btn-contrat', 'bouton', '1'); -- commit : 3c1a7f6 -- 07-08-2017 ALTER TABLE `reservations` ADD `commentaireIC` TEXT NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'commentaireIC', 'Commentaire intervention comp', '2', '30', '100', 'commentaireIC', '', '1', '0', 'reservations'); -- 08-08-2017 INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'ecart', 'Ecart rotation(jours)', '2', '30', '100', 'ecart', '', '5', '0', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'risque', 'Risque', '2', '30', '100', 'risque', '', '5', '0', ''); ALTER TABLE `logements` ADD `collective` TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE `configuration` ADD `validationEtatCollective` TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE `logements` ADD `idEtatIC` TINYINT NULL ; CREATE TABLE IF NOT EXISTS `intercontrat_pieces_collectives` ( `id` mediumint(9) NOT NULL AUTO_INCREMENT, `duree` tinyint(4) NOT NULL DEFAULT '0', `decalage` tinyint(4) NOT NULL DEFAULT '0', `idEtat` tinyint(4) NOT NULL, `idLogement` mediumint(9) NOT NULL, `valide` enum('0','1') NOT NULL DEFAULT '0', `dateEtat` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- 23-08-2017 ALTER TABLE `demandes_messages` ADD `idLocataire` INT(11) NOT NULL DEFAULT '0' ; ALTER TABLE `demandes_messages` RENAME COLUMN `idSender` TO `userid` ; -- 24-08-2017 EDL_PRESTATIONS CREATE TABLE IF NOT EXISTS `edl_prestations` ( `id` int(11) NOT NULL, `code` varchar(20) NOT NULL, `libelle` varchar(100) NOT NULL, `libelle_ajouter` varchar(100) DEFAULT NULL, `unite` varchar(20) NOT NULL, `montant_unitaire` float NOT NULL, `quantite` int(11) NOT NULL, `montant_total` float NOT NULL, `commentaires` text, `edl_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Index pour la table `edl_prestations` -- ALTER TABLE `edl_prestations` ADD PRIMARY KEY (`id`); -- AUTO_INCREMENT pour la table `edl_prestations` ALTER TABLE `edl_prestations` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- 30-08-2017 CAF IN RESERVATION TABLE ALTER TABLE `reservations` ADD `cafCode` varchar(13); ALTER TABLE `reservations` ADD `cafNum` varchar(15); -- 05-09-2017 DEMANDES ALTER TABLE `demandes` ADD `last_user` INT(11) NOT NULL DEFAULT '0' ; CREATE TABLE `demandes_historique` ( `id` int(11) NOT NULL, `idDemande` int(11) NOT NULL, `type` varchar(255) NOT NULL, `commentaire` text NOT NULL, `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `demandes_historique` ADD PRIMARY KEY (`id`); ALTER TABLE `demandes_historique` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- 05-09-2017 05d8364 CREATE TABLE IF NOT EXISTS `pile_loyer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idLocataire` int(11) NOT NULL, `idReservation` int(11) NOT NULL, `datePaiement` date NOT NULL, `noFacture` varchar(20) DEFAULT NULL, `statutPaiement` enum('ok','ko') DEFAULT NULL, `dateRefus` date DEFAULT NULL, `codeErreur` varchar(10) DEFAULT NULL, `msgErreur` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- 06-09-2017 DEMANDES UPDATE `demandes_etat` SET `nom` = "Nouvelle demande" WHERE `id` = 1; UPDATE `demandes_etat` SET `nom` = "Traitement en cours" WHERE `id` = 2; UPDATE `demandes_etat` SET `nom` = "Message gestionnaire envoyé" WHERE `id` = 3; UPDATE `demandes_etat` SET `nom` = "Message résident envoyé" WHERE `id` = 4; UPDATE `demandes_etat` SET `nom` = "Acceptée ou Refusée" WHERE `id` = 5; INSERT INTO `demandes_type` values ("", "Autre", "autre"); ALTER TABLE `demandes` ADD `commentaire` TEXT NULL ; -- 08-09-2017 MAMIHERY RZF --MAJ --Tables: -- edl: UPDATE edl SET type = 'entrant' WHERE type = 'entree'; ALTER TABLE `edl` ADD `edl_control` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT 'Detecter si l''EDL a ete changer' AFTER `type_validation`; ALTER TABLE `edl` ADD `edl_etat_prestations` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `edl_control`; ALTER TABLE `edl` ADD `num_facture` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `edl_etat_prestations`; ALTER TABLE `edl` ADD `date_revalidation` DATE NULL AFTER `num_facture`; ALTER TABLE `edl` ADD `user_id` MEDIUMINT(9) NULL AFTER `id_logement`; -- edl_parametres: ALTER TABLE `edl_parametres` ADD `edl_modele_en_tete` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `nb_jours_max_faire_edl`, ADD `edl_modele_pied_de_page` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `edl_modele_en_tete`; --Import: edl_prestations.sql -- 12-09-2017 DEMANDES INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'demande_id', 'Numéro demande', 5, 1, 11, 'id', NULL, 5, 1, 'demandes'), ('', 'demande_type', 'Type', 5, 3, 255, 'type', NULL, 3, 1, 'demandes_type'), ('', 'demande_etat', 'Etat', 5, 5, 255, 'etat', NULL, 3, 1, 'demandes_etat'), ('', 'demande_creation_date', 'Date de création', 5, 6, 0, 'creation_date', NULL, 2, 1, 'demandes'), ('', 'demande_model', 'Modele', 5, 7, 0, 'model', NULL, 3, 1, 'demandes_modeles'), ('', 'demande_display_name', 'Dernier admin', 5, 8, 255, 'display_name', NULL, 3, 1, 'users'); -- 13-09-2017 MAMIHERY RZF UPDATE edl SET edl_control = 'acontroler' WHERE type_validation = 'manuelle'; -- 13-09-2017 DEMANDES UPDATE `demandes_etat` SET `nom` = "Acceptée" WHERE `id` = 5; INSERT INTO `demandes_etat` VALUES ('', 'Refusée'); -- 14-09-2017 UPDATE edl SET etat = 'terminer' WHERE type_validation = 'automatique'; ALTER TABLE `edl` ADD `renonce` ENUM('0','1','','') NULL AFTER `etat`; -- 14-09-2017 DEMANDES ALTER TABLE `demandes` ADD `idResa` int(11) NOT NULL ; -- 15-09-2017 DEMANDES CREATE TABLE `champs_demandes_dateinterval` ( `id` int(11) NOT NULL, `dateMin` enum('unlimited','limited') NOT NULL DEFAULT 'unlimited', `dateMax` enum('unlimited','limited','dateNow') NOT NULL DEFAULT 'unlimited', `nombreJoursMin` int(11) NOT NULL, `nombreJoursMax` int(11) NOT NULL, `idChamp` int(11) NOT NULL, `uniteMin` enum('day','week','month','year') DEFAULT NULL, `uniteMax` enum('day','week','month','year') DEFAULT NULL, `dateMinFixe` date DEFAULT NULL, `dateMaxFixe` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `champs_demandes_dateinterval` ADD PRIMARY KEY (`id`); ALTER TABLE `champs_demandes_dateinterval` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- 18-09-2017 EDL ALTER TABLE `edl` CHANGE `date` `date` DATETIME NOT NULL; ALTER TABLE `edl` CHANGE `date_revalidation` `date_revalidation` DATETIME NULL DEFAULT NULL; ALTER TABLE `edl` CHANGE `date` `date` DATE NOT NULL, CHANGE `date_revalidation` `date_revalidation` DATE NULL DEFAULT NULL; -- 19-09-2017 FORMULAIRES : SAVED FIELDS CREATE TABLE `champs_demandes_save` ( `id` int(11) NOT NULL, `type` int(11) NOT NULL, `fields` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `champs_demandes_save` ADD PRIMARY KEY (`id`); ALTER TABLE `champs_demandes_save` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- 20-09-2017 Mamihery Rzf INSERT INTO droit_elements (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Prise de rendez vous', 'systeme-tab-prise-de-rendez-vous', 'menu', '7'); -- 25-09-2017 RDV PARAMETRES Mamihery Rzf CREATE TABLE `rdv_residence_parametres` ( `idResidence` INT NOT NULL , `idRdvParametres` INT NOT NULL , PRIMARY KEY (`idResidence`, `idRdvParametres`)) ENGINE = InnoDB; CREATE TABLE `rdv_parametres` ( `id` INT NOT NULL AUTO_INCREMENT , `duree` MEDIUMINT(50) NOT NULL COMMENT 'duree en minutes pour faire un état des lieux' , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `rdv_residence_parametres` ADD FOREIGN KEY (`idResidence`) REFERENCES `residences`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE `rdv_residence_parametres` ADD FOREIGN KEY (`idRdvParametres`) REFERENCES `rdv_parametres`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT; CREATE TABLE `rdv_parametres_horaires` ( `id` INT NOT NULL AUTO_INCREMENT , `tout` ENUM('0','1') NOT NULL , `jour` VARCHAR(10) NOT NULL , `heureDebutAm` VARCHAR(10) NULL , `heureFinAm` VARCHAR(10) NULL , `heureDebutPm` VARCHAR(10) NULL , `heureFinPm` VARCHAR(10) NULL , `idRdvParametres` INT NOT NULL , PRIMARY KEY (`id`), INDEX (`heureFinPm`), INDEX (`idRdvParametres`)) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER TABLE `rdv_parametres_horaires` CHANGE `heureDebutAm` `heureDebutAm` VARCHAR(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `heureFinAm` `heureFinAm` VARCHAR(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `heureDebutPm` `heureDebutPm` VARCHAR(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `heureFinPm` `heureFinPm` VARCHAR(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `rdv_parametres_horaires` ADD FOREIGN KEY (`idRdvParametres`) REFERENCES `rdv_parametres`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE `rdv_parametres` ADD `nombres_de_ressources` TINYINT NOT NULL DEFAULT '1' COMMENT 'nombres de personnes diponibles pour un creneaux' AFTER `duree`; INSERT INTO `rdv_parametres` (`id`, `duree`, `nombres_de_ressources`) VALUES (NULL, '15', '1'), (NULL, '15', '1'), (NULL, '15', '1'), (NULL, '15', '1'); INSERT INTO `rdv_residence_parametres` (`idResidence`, `idRdvParametres`) VALUES ('1', '1'), ('2', '2'), ('3', '3'), ('4', '4'); INSERT INTO `rdv_parametres_horaires` (`id`, `tout`, `jour`, `heureDebutAm`, `heureFinAm`, `heureDebutPm`, `heureFinPm`, `idRdvParametres`) VALUES (NULL, '0', 'lundi', '09:00', '12:00', '14:00', '18:00', '1'), (NULL, '0', 'mardi', '09:00', '12:00', '14:00', '18:00', '1'), (NULL, '0', 'mercredi', '09:00', '12:00', '14:00', '18:00', '1'), (NULL, '0', 'jeudi', '09:00', '12:00', '14:00', '18:00', '1'), (NULL, '0', 'vendredi', '09:00', '12:00', '14:00', '16:00', '1'), (NULL, '0', 'samedi', '09:00', '12:00', '14:00', '18:00', '1'), (NULL, '0', 'dimanche', '09:00', '12:00', '14:00', '18:00', '1'); INSERT INTO `rdv_parametres_horaires` (`id`, `tout`, `jour`, `heureDebutAm`, `heureFinAm`, `heureDebutPm`, `heureFinPm`, `idRdvParametres`) VALUES (NULL, '0', 'lundi', '09:00', '12:00', '14:00', '18:00', '2'), (NULL, '0', 'mardi', '09:00', '12:00', '14:00', '18:00', '2'), (NULL, '0', 'mercredi', '09:00', '12:00', '14:00', '18:00', '2'), (NULL, '0', 'jeudi', '09:00', '12:00', '14:00', '18:00', '2'), (NULL, '0', 'vendredi', '09:00', '12:00', '14:00', '18:00', '2'), (NULL, '0', 'samedi', '09:00', '12:00', '14:00', '18:00', '2'), (NULL, '0', 'dimanche', '09:00', '12:00', '14:00', '18:00', '2'); INSERT INTO `rdv_parametres_horaires` (`id`, `tout`, `jour`, `heureDebutAm`, `heureFinAm`, `heureDebutPm`, `heureFinPm`, `idRdvParametres`) VALUES (NULL, '0', 'lundi', '09:00', '12:00', '14:00', '18:00', '3'), (NULL, '0', 'mardi', '09:00', '12:00', '14:00', '18:00', '3'), (NULL, '0', 'mercredi', '09:00', '12:00', '14:00', '18:00', '3'), (NULL, '0', 'jeudi', '09:00', '12:00', '14:00', '18:00', '3'), (NULL, '0', 'vendredi', '09:00', '12:00', '14:00', '18:00', '3'), (NULL, '0', 'samedi', '09:00', '12:00', '14:00', '18:00', '3'), (NULL, '0', 'dimanche', '09:00', '12:00', '14:00', '18:00', '3'); INSERT INTO `rdv_parametres_horaires` (`id`, `tout`, `jour`, `heureDebutAm`, `heureFinAm`, `heureDebutPm`, `heureFinPm`, `idRdvParametres`) VALUES (NULL, '0', 'lundi', '09:00', '12:00', '14:00', '18:00', '4'), (NULL, '0', 'mardi', '09:00', '12:00', '14:00', '18:00', '4'), (NULL, '0', 'mercredi', '09:00', '12:00', '14:00', '18:00', '4'), (NULL, '0', 'jeudi', '09:00', '12:00', '14:00', '18:00', '4'), (NULL, '0', 'vendredi', '09:00', '12:00', '14:00', '18:00', '4'), (NULL, '0', 'samedi', '09:00', '12:00', '14:00', '18:00', '4'), (NULL, '0', 'dimanche', '09:00', '12:00', '14:00', '18:00', '4'); CREATE TABLE `rdv_parametres_gestion_ressources` ( `id` INT NOT NULL AUTO_INCREMENT , `date` DATE NOT NULL , `nbRessourceAm` TINYINT NULL , `nbRessourcePm` TINYINT NULL , `idRdvParametres` INT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `rdv_parametres_gestion_ressources` ADD INDEX `idRdvParametres` (`idRdvParametres`); ALTER TABLE `rdv_parametres_gestion_ressources` ADD FOREIGN KEY (`idRdvParametres`) REFERENCES `rdv_parametres`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE `rdv_parametres_gestion_ressources` CHANGE `nbRessourceAm` `nbRessourceAm` TINYINT(4) NULL DEFAULT '0'; ALTER TABLE `rdv_parametres_gestion_ressources` CHANGE `nbRessourcePm` `nbRessourcePm` TINYINT(4) NULL DEFAULT '0'; -- 28-09-2017 Mamihery Rzf CREATE TABLE `rdv_renonce` ( `id` INT NOT NULL AUTO_INCREMENT , `idReservations` MEDIUMINT(8) UNSIGNED NOT NULL , PRIMARY KEY (`id`), INDEX `cle etrangere` (`idReservations`)) ENGINE = InnoDB; ALTER TABLE `rdv_renonce` ADD FOREIGN KEY (`idReservations`) REFERENCES `reservations`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE `rdv_renonce` ADD `date` DATE NOT NULL AFTER `id`; CREATE TABLE `rdv_locataire` ( `id` INT NOT NULL AUTO_INCREMENT , `dateDebut` DATETIME NOT NULL , `dateFin` DATETIME NOT NULL , `duree` MEDIUMINT NOT NULL , `idResidence` INT NOT NULL , PRIMARY KEY (`id`), INDEX (`idResidence`)) ENGINE = InnoDB; ALTER TABLE `rdv_locataire` ADD FOREIGN KEY (`idResidence`) REFERENCES `residences`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE `rdv_locataire` ADD `idReservations` MEDIUMINT(8) UNSIGNED NOT NULL AFTER `duree`, ADD INDEX `idReservations` (`idReservations`); ALTER TABLE `rdv_locataire` ADD FOREIGN KEY (`idReservations`) REFERENCES `reservations`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE `rdv_locataire` ADD UNIQUE(`idReservations`); -- 29-09-2017 : b740d7a ALTER TABLE `reservations` ADD `prelevementLoyer` TINYINT(1) NULL ; -- Mamihery Rzf RENAME TABLE `rdv_locataire` TO `rdv`; ALTER TABLE `rdv` ADD `date` DATE NOT NULL AFTER `id`; -- Prod du 02/10/2017 -- -- FT : 03-10-2017 ALTER TABLE `champs_formulaires` ADD `modifiableResident` TINYINT(1) NULL DEFAULT '0' ; -- 03-10-2017 : Etat de travaux CREATE TABLE `demandes_etat_travaux` ( `id` int(11) NOT NULL, `nom` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `demandes_etat_travaux` (`id`, `nom`) VALUES (1, 'Pris en compte'), (2, 'En cours de réalisation'), (3, 'Terminée'); ALTER TABLE `demandes_etat_travaux` ADD PRIMARY KEY (`id`); ALTER TABLE `demandes_etat_travaux` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; ALTER TABLE `demandes` ADD `etatTravaux` INT(11) NULL ; -- Prod du 04/10/2017 -- -- 04-10-2017 : Etat de travaux Historique -- demandes_etat_travaux_historique CREATE TABLE `demandes_etat_travaux_historique` ( `id` int(11) NOT NULL, `idDemande` int(11) NOT NULL, `etat` int(11) NOT NULL, `commentaire` text, `userid` int(11) NOT NULL, `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `demandes_etat_travaux_historique` ADD PRIMARY KEY (`id`); ALTER TABLE `demandes_etat_travaux_historique` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- reservations_commentaires CREATE TABLE `reservations_commentaires` ( `id` int(11) NOT NULL, `idResa` int(11) NOT NULL, `commentaire` text, `userid` int(11) NOT NULL, `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `reservations_commentaires` ADD PRIMARY KEY (`id`); ALTER TABLE `reservations_commentaires` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- 05-10-2017 INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (NULL, 'Départ', 'ludovic.gerard@iriga-networks.com', '1'); ALTER TABLE rdv DROP FOREIGN KEY rdv_ibfk_2; ALTER TABLE rdv DROP INDEX idReservations_2; ALTER TABLE `rdv` ADD `bagagerie` VARCHAR(10) NULL AFTER `duree`; ---------------------------------------------------------------------------------------------------------------------------- -- Prod du 05/10 ---------------------------------------------------------------------------------------------------------------------------- -- 05-10-2017 : Commentaires Logements -- logements_commentaires CREATE TABLE `logements_commentaires` ( `id` int(11) NOT NULL, `idLoge` int(11) NOT NULL, `commentaire` text, `userid` int(11) NOT NULL, `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `logements_commentaires` ADD PRIMARY KEY (`id`); ALTER TABLE `logements_commentaires` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- 06-10-2017 ALTER TABLE `rdv_renonce` CHANGE `date` `date` DATETIME NOT NULL; -- -- 06-10-2017 -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'demande_etatTravaux', 'Etat des travaux', 5, 9, 255, 'etatTravaux', NULL, 3, 1, 'demandes_etat_travaux'); -- FTH 06-10-2017 ALTER TABLE `logements` ADD `tampon` TINYINT NULL DEFAULT '0' ; ALTER TABLE `reservations` ADD `idLogementEnTampon` INT NULL ; -- -- 10-10-2017 -- ALTER TABLE `type_email` ADD `idFormType` INT NULL AFTER `auto`, ADD `idFormStat` INT NULL AFTER `idFormType`; INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`) VALUES (NULL, 'Réservation de salle - Nouvelle demande', NULL, 1, 1, 1), (NULL, 'Réservation de salle - Traitement en cours', NULL, 1, 1, 2), (NULL, 'Réservation de salle - Message gestionnaire envoyé', NULL, 1, 1, 3), (NULL, 'Réservation de salle - Message résident envoyé', NULL, 1, 1, 4), (NULL, 'Réservation de salle - Acceptée', NULL, 1, 1, 5), (NULL, 'Réservation de salle - Refusée', NULL, 1, 1, 6), (NULL, 'Changement de chambre - Nouvelle demande', NULL, 1, 2, 1), (NULL, 'Changement de chambre - Traitement en cours', NULL, 1, 2, 2), (NULL, 'Changement de chambre - Message gestionnaire envoyé', NULL, 1, 2, 3), (NULL, 'Changement de chambre - Message résident envoyé', NULL, 1, 2, 4), (NULL, 'Changement de chambre - Acceptée', NULL, 1, 2, 5), (NULL, 'Changement de chambre - Refusée', NULL, 1, 2, 6), (NULL, 'Prolongation de séjour - Nouvelle demande', NULL, 1, 3, 1), (NULL, 'Prolongation de séjour - Traitement en cours', NULL, 1, 3, 2), (NULL, 'Prolongation de séjour - Message gestionnaire envoyé', NULL, 1, 3, 3), (NULL, 'Prolongation de séjour - Message résident envoyé', NULL, 1, 3, 4), (NULL, 'Prolongation de séjour - Acceptée', NULL, 1, 3, 5), (NULL, 'Prolongation de séjour - Refusée', NULL, 1, 3, 6), (NULL, 'Départ anticipé - Nouvelle demande', NULL, 1, 4, 1), (NULL, 'Départ anticipé - Traitement en cours', NULL, 1, 4, 2), (NULL, 'Départ anticipé - Message gestionnaire envoyé', NULL, 1, 4, 3), (NULL, 'Départ anticipé - Message résident envoyé', NULL, 1, 4, 4), (NULL, 'Départ anticipé - Acceptée', NULL, 1, 4, 5), (NULL, 'Départ anticipé - Refusée', NULL, 1, 4, 6), (NULL, 'Travaux - Nouvelle demande', NULL, 1, 5, 1), (NULL, 'Travaux - Traitement en cours', NULL, 1, 5, 2), (NULL, 'Travaux - Message gestionnaire envoyé', NULL, 1, 5, 3), (NULL, 'Travaux - Message résident envoyé', NULL, 1, 5, 4), (NULL, 'Travaux - Acceptée', NULL, 1, 5, 5), (NULL, 'Travaux - Refusée', NULL, 1, 5, 6), (NULL, 'Renonce - Nouvelle demande', NULL, 1, 6, 1), (NULL, 'Renonce - Traitement en cours', NULL, 1, 6, 2), (NULL, 'Renonce - Message gestionnaire envoyé', NULL, 1, 6, 3), (NULL, 'Renonce - Message résident envoyé', NULL, 1, 6, 4), (NULL, 'Renonce - Acceptée', NULL, 1, 6, 5), (NULL, 'Renonce - Refusée', NULL, 1, 6, 6), (NULL, 'Autre - Nouvelle demande', NULL, 1, 7, 1), (NULL, 'Autre - Traitement en cours', NULL, 1, 7, 2), (NULL, 'Autre - Message gestionnaire envoyé', NULL, 1, 7, 3), (NULL, 'Autre - Message résident envoyé', NULL, 1, 7, 4), (NULL, 'Autre - Acceptée', NULL, 1, 7, 5), (NULL, 'Autre - Refusée', NULL, 1, 7, 6); -- FTH 11-10-2017 INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logChanged', 'Changement logement', '2', '30', '100', 'logChanged', '', '1', '0', ''); UPDATE `type_liste` SET `type` = 'Présent' WHERE `type_liste`.`id` = 4; INSERT INTO `type_liste` (`id`, `type`) VALUES ('13', 'Départ'); -- -- 11-10-2017 -- ALTER TABLE `user_role` ADD `isTech` BOOLEAN NOT NULL AFTER `role_name`; ALTER TABLE `demandes` ADD `affectedTo` INT(11) NULL AFTER `last_user`; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'demande_affectedTo', 'Affecté à', '5', '10', '255', 'affectedTo', NULL, '1', '1', 'demandes'); -- FTH 12-10-2017 UPDATE `champs` SET `nom` = 'langue de communication' WHERE `champs`.`code` = 'langue'; UPDATE `champs` SET `nom` = 'Horaire arrivée' WHERE `champs`.`code` = 'horaireArrivee'; -- FTH 13-10-2017 ALTER TABLE `type_email` ADD `isAdmin` TINYINT NULL DEFAULT '0' , ADD `code` VARCHAR(50) NULL ; INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES (NULL, 'COMPTA : Remboursement DG HORS SEPA', NULL, 1, NULL, NULL,1,'rmb_compta'); -- -- 13-10-2017 -- ALTER TABLE `reservations` ADD `cafTreated` BOOLEAN NOT NULL AFTER `cafNum`; -- -- 16-10-2017 -- UPDATE `listes` SET `nom` = 'Confirmés' WHERE `nom` = 'Confirmé'; UPDATE `listes` SET `nom` = 'Départs' WHERE `nom` = 'Départ'; UPDATE `listes` SET `nom` = 'Ménages' WHERE `nom` = 'Ménage'; UPDATE `listes` SET `nom` = 'Demandes reçues' WHERE `nom` = 'Demande reçue'; UPDATE `listes` SET `nom` = 'Etats des lieux' WHERE `nom` = 'Etat des lieux'; UPDATE `listes` SET `nom` = 'Changements de logement' WHERE `nom` = 'changement de logement'; UPDATE `listes` SET `nom` = 'Pré-affectations' WHERE `nom` = 'pré-affectation'; UPDATE `listes` SET `nom` = 'Demandes archivées' WHERE `nom` = 'Demande archivée'; UPDATE `listes` SET `nom` = 'Désistements en cours' WHERE `nom` = 'Désistement en cours'; -- -- 17-10-2017 -- ALTER TABLE `demandes` ADD `roomChanged` BOOLEAN NOT NULL DEFAULT FALSE AFTER `affectedTo`; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'demande_roomChanged', 'Chambre changée', '5', '11', '255', 'roomChanged', NULL, '1', '1', 'demandes'); ---------------------------------------------------------------------------------------------------------------------------- -- Prod du 18/10 ---------------------------------------------------------------------------------------------------------------------------- -- -- 18-10-2017 -- UPDATE `champs` SET `code`='demande_affectedTo_display_name', `equivalentSql`='affectedTo_display_name', `table`='users' WHERE `code` = 'demande_affectedTo'; -- -- 19-10-2017 -- ALTER TABLE `demandes` ADD `keysDeliveryDate` DATE NULL AFTER `roomChanged`, ADD `keysDepositDate` DATE NULL AFTER `keysDeliveryDate`; -- -- 20-10-2017 -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`) VALUES (NULL, 'Date de départ anticipé', 'date', 'dateDepartAnticipe', 'demandes', NULL, 4, 2); -- FTH 23-10-2017 INSERT INTO `etat_reservation` (`id`, `nom`, `nomEn`) VALUES ('15', 'En attente de changement', 'Room changed pending'); ALTER TABLE `configuration` ADD `changementLogementWE` TINYINT(1) NOT NULL DEFAULT '0' ; -- FTH 24-10-2017 ALTER TABLE `reservations` ADD `flagChangement` VARCHAR(100) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'flagChangement', 'Flag changement logement', '2', '30', '100', 'flagChangement', '', '1', '0', 'reservations'); -- -- 24-10-2017 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Jours fériés', 'systeme-tab-jours-feries', 'menu', '7'); CREATE TABLE `config_joursferies` ( `id` int(11) NOT NULL, `year` int(11) NOT NULL, `joursferies` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `config_joursferies` ADD PRIMARY KEY (`id`); ALTER TABLE `config_joursferies` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- FTH 24-10-2017 INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES (NULL, 'RDV : confirmation', NULL, 1, NULL, NULL,1,'rdv_confirm'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateRDV', 'Date RDV', '2', '50', '100', '', '', '2', '0', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateDebutRDV', 'Date début RDV', '2', '50', '100', '', '', '2', '0', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateFinRDV', 'Date fin RDV', '2', '50', '100', '', '', '2', '0', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dureeRDV', 'Durée RDV', '2', '50', '100', '', '', '1', '0', ''); -- -- 27-10-2017 -- ALTER TABLE `intercontrat` ADD `commentaire` TEXT NULL AFTER `dateEtat`, ADD `creation_date` DATETIME NOT NULL AFTER `commentaire`, ADD `userid` INT NOT NULL AFTER `creation_date`; -- FTH 02-11-2017 ALTER TABLE `champs_formulaires` ADD `valeurMin` INT NULL DEFAULT '0' , ADD `valeurMax` INT NULL DEFAULT '0' ; ALTER TABLE `champs_demandes` ADD `valeurMin` INT NULL DEFAULT '0' , ADD `valeurMax` INT NULL DEFAULT '0' ; ---------------------------------------------------------------------------------------------------------------------------- -- Prod du 02/11 ---------------------------------------------------------------------------------------------------------------------------- -- -- 02-11-2017 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Colis', 'zfcadmin/colis', 'menu', '4'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Colis', 'colis', 'Reservation\\Controller\\Colis', 'index', '27'); -- champs_colis CREATE TABLE `champs_colis` ( `id` int(11) NOT NULL, `libelle` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `classCss` varchar(255) DEFAULT NULL, `idCss` varchar(255) NOT NULL, `options` text, `description` text, `obligatoire` tinyint(1) NOT NULL, `equivalentSql` varchar(255) DEFAULT NULL, `actionJS` varchar(255) DEFAULT NULL, `active` int(1) NOT NULL, `sourceListe` varchar(100) DEFAULT NULL, `ordre` tinyint(4) NOT NULL, `column` tinyint(1) NOT NULL DEFAULT '1', `row` int(2) NOT NULL, `idType` tinyint(4) NOT NULL, `idsCampagne` varchar(100) DEFAULT NULL, `nature` enum('standard','libre','texte') NOT NULL DEFAULT 'standard', `tailleColumn` tinyint(1) NOT NULL DEFAULT '1', `tailleRow` tinyint(1) NOT NULL DEFAULT '1', `nomXML` varchar(200) DEFAULT NULL, `size` smallint(6) DEFAULT NULL, `acces` tinyint(1) NOT NULL DEFAULT '1', `obligatoireDemande` tinyint(1) NOT NULL, `modifiable` tinyint(1) NOT NULL DEFAULT '1', `equivalentWS` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `champs_colis` ADD PRIMARY KEY (`id`); ALTER TABLE `champs_colis` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- champs_colis_dateinterval CREATE TABLE `champs_colis_dateinterval` ( `id` int(11) NOT NULL, `dateMin` enum('unlimited','limited') NOT NULL DEFAULT 'unlimited', `dateMax` enum('unlimited','limited','dateNow') NOT NULL DEFAULT 'unlimited', `nombreJoursMin` int(11) NOT NULL, `nombreJoursMax` int(11) NOT NULL, `idChamp` int(11) NOT NULL, `uniteMin` enum('day','week','month','year') DEFAULT NULL, `uniteMax` enum('day','week','month','year') DEFAULT NULL, `dateMinFixe` date DEFAULT NULL, `dateMaxFixe` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `champs_colis_dateinterval` ADD PRIMARY KEY (`id`); ALTER TABLE `champs_colis_dateinterval` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- colis_values CREATE TABLE `colis_values` ( `id` int(11) NOT NULL, `valeur` text NOT NULL, `idChamp` int(11) NOT NULL, `idResa` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `colis_values` ADD PRIMARY KEY (`id`); ALTER TABLE `colis_values` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- 07-11-2017 -- -- colis_historique CREATE TABLE `colis_historique` ( `id` int(11) NOT NULL, `idResa` int(11) NOT NULL, `type` varchar(255) NOT NULL, `commentaire` text NOT NULL, `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `colis_historique` ADD PRIMARY KEY (`id`); ALTER TABLE `colis_historique` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- 09-11-2017 -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'demande_commentaire', 'Commentaire', '5', '12', '0', 'commentaire', NULL, '7', '1', 'demandes'); -- 14-11-2017 M.Rzf INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateRenonce', 'Date de la renonce', '6', '1', '20', 'date', NULL, '6', '1', 'rdv_renonce'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateRdv', 'Date de rendez vous d''état des lieux', '6', '2', '20', 'date', NULL, '6', '1', 'rdv'); -- -- 14-11-2017 -- UPDATE `champs` SET `idTypeHtml` = 3 WHERE `code` = 'batiment' || `code` = 'residence'; -- -- FTH 14-11-2017 -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'noAlloc', 'Numéro allocataire', '2', '30', '100', 'noAlloc', '', '1', '0', ''); -- RZF 15-11-2017 INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateEdl', 'Date de l''état des lieux', '6', '3', '20', 'date', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatRenonce', 'Etat de la renonce', '6', '4', '20', 'etat', NULL, '6', '1', 'demandes'); -- -- Structure de la table `colis` -- CREATE TABLE IF NOT EXISTS `colis` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idResa` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `colis_values` ADD `idColis` INT NOT NULL ; ALTER TABLE `colis_historique` ADD `idColis` INT NULL ; -- -- FTH 15-11-2017 -- INSERT INTO `demandes_etat` (`id`, `nom`) VALUES (7, 'Pris en compte'); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`) VALUES (NULL, 'Réservation de salle - Pris en compte', NULL, 1, 1, 7), (NULL, 'Changement de chambre - Pris en compte', NULL, 1, 2, 7), (NULL, 'Prolongation de séjour - Pris en compte', NULL, 1, 3, 7), (NULL, 'Départ anticipé - Pris en compte', NULL, 1, 4, 7), (NULL, 'Travaux - Pris en compte', NULL, 1, 5, 7), (NULL, 'Renonce - Pris en compte', NULL, 1, 6, 7), (NULL, 'Autre - Pris en compte', NULL, 1, 7, 7); ALTER TABLE `type_email` ADD `idFormEtatTravaux` INT NULL ; INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `idFormEtatTravaux`) VALUES (NULL, 'Etat Travaux - Pris en compte', NULL, 1, 5, NULL,1), (NULL, 'Etat Travaux - En cours de réalisation', NULL, 1, 5, NULL,2), (NULL, 'Etat Travaux - Terminée', NULL, 1, 5, NULL,3); ALTER TABLE `colis` ADD `archive` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- FTH 16-11-2017 -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'prelevementLoyer', 'Prélèvement loyer', '2', '30', '100', 'prelevementLoyer', '', '1', '0', 'reservations'); -- RZF 16-11-2017 UPDATE champs SET code = 'dateRdvEdl' WHERE idTheme = 6 AND code = 'dateRdv'; -- reset EDL SORTANT DELETE FROM champs WHERE idTheme = 6; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatRenonce', 'Etat de la renonce', '6', '1', '20', 'date', NULL, '6', '1', 'demandes'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateRdvEdl', 'Date de rendez vous d''état des lieux', '6', '2', '20', 'date', NULL, '6', '1', 'rdv'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateEdl', 'Date d''état des lieux', '6', '3', '20', 'date', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateRenonce', 'Date de la renonce', '6', '4', '20', 'date', NULL, '6', '1', 'rdv_renonce'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'facturationEdl', 'Facturation d''état des lieux', '6', '5', '20', 'num_facture', NULL, '6', '1', 'edl') -- -- 21-11-2017 -- INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Helper', 'helper', 'Reservation\\Controller\\Helper', 'index', '28'); CREATE TABLE `helper` ( `id` int(11) NOT NULL, `type` varchar(255) NOT NULL, `title` text NOT NULL, `html` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `helper` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `type` (`type`); ALTER TABLE `helper` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- FTH 21-11-2017 STATS -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Statistiques', 'zfcadmin/stats', 'menu', '0'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Statistiques', 'stats', 'Reservation\\Controller\\Stats', 'index', '28'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Taux d''occupation', 'zfcadmin/occupation', 'menu', '71'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'CA', 'zfcadmin/ca', 'menu', '71'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Population', 'zfcadmin/population', 'menu', '71'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Impayés', 'zfcadmin/impaye', 'menu', '71'); -- RZF 21-11-2017 UPDATE champs SET equivalentSql = 'dateDebut' WHERE code = 'dateRdvEdl'; -- FTH ALTER TABLE `champs_colis` ADD `valeurMin` INT NULL DEFAULT '0' , ADD `valeurMax` INT NULL DEFAULT '0' ; ALTER TABLE `valeurs_select` ADD `ordre` INT NOT NULL DEFAULT '0' ; -- -- 23-11-2017 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Aide', 'helper', 'bouton', '0'); -- 24-11-2017 CREATE TABLE `rdv_parametres_glob` ( `id` INT NOT NULL AUTO_INCREMENT , `duree_preavis` MEDIUMINT NOT NULL , `duree_changement` MEDIUMINT NOT NULL , `duree_figer` MEDIUMINT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `rdv_parametres_glob` (`id`, `duree_preavis`, `duree_changement`, `duree_figer`) VALUES (NULL, '30', '10', '3'); -- 27-11-2017 ALTER TABLE `edl` ADD `remise_des_cles` ENUM('attente','remis','factures') NOT NULL AFTER `user_id`; -- 27-11-2017 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Caf depuis listes', 'liste-btn-caf', 'bouton', '1'); -- 28-11-2017 ALTER TABLE `edl` CHANGE `type` `type` ENUM('entrant','sortant','indifferent','') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; --29-11-2017 ALTER TABLE `edl` CHANGE `remise_des_cles` `remise_des_cles` ENUM('','attente','remis','factures') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'remiseDesCles', 'Facturation d''état des lieux', '6', '6', '20', 'remise_des_cles', NULL, '6', '1', 'edl'); --30--11-2017 UPDATE champs SET idTypeHtml = 3 WHERE code = 'remiseDesCles'; -- -- 30-11-2017 -- ALTER TABLE `user_role` ADD `isAutre` BOOLEAN NOT NULL AFTER `isTech`; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode Colis', 'mode-input-colis', 'champs', '26'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode Caf', 'mode-input-caf', 'champs', '26'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode Formulaire', 'mode-input-form', 'champs', '26'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode Logements', 'mode-input-logements', 'champs', '26'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'colis_archive', 'Colis Archivé', '3', '1', '0', 'archive', NULL, '1', '1', 'colis'); CREATE TABLE IF NOT EXISTS `colis_savedstate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `savedState` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; UPDATE `champs` SET `nom` = 'Status remise de clés' WHERE `champs`.`code` = 'remiseDesCles'; -- 05/12 ALTER TABLE `edl` CHANGE `remise_des_cles` `remise_des_cles` ENUM('','attente','remis','factures','coffre') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 08-12-2017 -- TRUNCATE TABLE `champs_demandes_save` ALTER TABLE `champs_demandes_save` CHANGE `fields` `fields` TEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL; -- -- 11-12-2017 FTH -- INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (12, 'Monétaire', 'Text', '3'); INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (13, 'Formule Monétaire', 'Text', '3'); ALTER TABLE `champs_formulaires` ADD `formule` VARCHAR(255) NULL ; ALTER TABLE `champs_formulaires` ADD `masquerLib` TINYINT NULL DEFAULT '0' ; ALTER TABLE `champs_formulaires` ADD `aligner` VARCHAR(20) NULL ; ALTER TABLE `champs_formulaires` ADD `afficherInfos` TINYINT NULL DEFAULT '0' ; INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES (NULL, 'Mail demande en cours', NULL, 1, NULL, NULL,0,'demande_en_cours'); ALTER TABLE `champs_formulaires` ADD `valeurBredea` VARCHAR(100) NULL ; ALTER TABLE `configuration` ADD `optionCNIL` TINYINT NULL DEFAULT '0' , ADD `imageCNIL` VARCHAR(50) NULL ; UPDATE `configuration` SET `optionCNIL` = '3' WHERE `configuration`.`id` = 1; UPDATE `configuration` SET `imageCNIL` = 'cnil_fr_FR.png' WHERE `configuration`.`id` = 1; ALTER TABLE `formulaires` ADD `nbrCols` TINYINT(1) NULL DEFAULT '3' ; INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES (NULL, 'Confirmation de paiement loyer prélévement', NULL, 1, NULL, NULL,0,'conf_paiement_loyer'); -- -- 12-12-2017 -- UPDATE `champs` SET `idTypeHtml` = '3' WHERE `champs`.`code` = 'demande_affectedTo_display_name'; -- -- 13-12-2017 -- ALTER TABLE `valeurs_dynamiques` ADD `idReservation` INT NULL ; -- -- FTH 27-12-2017 -- CREATE TABLE IF NOT EXISTS `stats_filtres` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(50) NOT NULL, `data` text, `idUser` smallint(6) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Evolution des demandes', 'zfcadmin/statuts', 'menu', '71'); -- -- 28-12-2017 -- INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Tableau de bord', 'dashboard', 'Reservation\\Controller\\Dashboard', 'savedashboard', '29'); CREATE TABLE IF NOT EXISTS `dashboard` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userid` int(11) NOT NULL, `blocks` text NOT NULL, `elements` text NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userid` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- 02-01-2018 FTH : modif sttienne -- ALTER TABLE `tarifs` ADD `ordre` TINYINT NULL DEFAULT '0' ; -- -- table param_campagne -- CREATE TABLE IF NOT EXISTS `param_campagne` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idCampagne` int(11) NOT NULL, `data` text, `type` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `configuration` ADD `villeMail` VARCHAR(100) NULL ; UPDATE `configuration` set `villeMail` = 'Cergy' WHERE `id` = 1; -- -- 08-01-2018 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (83, 'Tableau de bord', 'dashboard', 'menu', '0'), (NULL, 'Taux d\'occupation (Stat)', 'dashboard/occupation', 'bouton', '83'), (NULL, 'CA (Stat)', 'dashboard/ca', 'bouton', '83'), (NULL, 'Population (Stat)', 'dashboard/population', 'bouton', '83'), (NULL, 'Impayés (Stat)', 'dashboard/impayes', 'bouton', '83'), (NULL, 'Réservation de salle (Demande)', 'dashboard/reservation', 'bouton', '83'), (NULL, 'Changement de chambre (Demande)', 'dashboard/changement', 'bouton', '83'), (NULL, 'Prolongation de séjour (Demande)', 'dashboard/prolongation', 'bouton', '83'), (NULL, 'Départ anticipé (Demande)', 'dashboard/depart', 'bouton', '83'), (NULL, 'Interventions techniques (Demande)', 'dashboard/interventions', 'bouton', '83'), (NULL, 'Renonces (Demande)', 'dashboard/renonces', 'bouton', '83'), (NULL, 'Autres (Demande)', 'dashboard/autres', 'bouton', '83'), (NULL, 'EDL', 'dashboard/edl', 'bouton', '83'), (NULL, 'Arrivés', 'dashboard/arrives', 'bouton', '83'), (NULL, 'Départs', 'dashboard/departs', 'bouton', '83'), (NULL, 'Météo (widget)', 'dashboard/meteo', 'bouton', '83'); -- -- 10-01-2018 FTH -- ALTER TABLE `configuration` ADD `formatExportMD` VARCHAR(4) NOT NULL DEFAULT 'odt' ; -- -- 16-01-2018 FTH -- ALTER TABLE `historique_mail` CHANGE `message` `message` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL; -- -- 17-01-2018 FTH -- ALTER TABLE `configuration` ADD `loyerChgtLog` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 18-01-2018 -- ALTER TABLE `reservations_groupe` ADD `nbrPersonnes` INT NOT NULL AFTER `nbrChambres`; -- -- 19-01-2018 -- UPDATE `droit_elements` SET `type` = 'menu' WHERE `droit_elements`.`unique_name` = 'helper'; ALTER TABLE `reservations_groupe` ADD `file` TEXT NULL AFTER `idGroupe`, ADD `commentaire` TEXT NULL AFTER `file`; -- -- 22-01-2018 -- UPDATE `etat_liste` SET `nom` = 'Accès public' WHERE `etat_liste`.`id` = 2; -- -- 24-01-2018 -- UPDATE `type_liste` SET `type` = 'Présents' WHERE `type_liste`.`id` = 4; -- -- 26-01-2018 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (99, 'Fiche client', 'ficheclient', 'menu', '0'), (NULL, 'Fiche locataire', 'ficheclient/ficheLocataire', 'menu', '99'), (NULL, 'Fiche reservation', 'ficheclient/ficheResa', 'menu', '99'), (NULL, 'Fiche compte', 'ficheclient/ficheCompte', 'menu', '99'), (NULL, 'Fiche mails', 'ficheclient/ficheMail', 'menu', '99'), (NULL, 'Fiche documents', 'ficheclient/ficheDocuments', 'menu', '99'), (NULL, 'Fiche edition documents', 'ficheclient/ficheEditionDocuments', 'menu', '99'), (NULL, 'Fiche intercontrats', 'ficheclient/ficheIntercontrat', 'menu', '99'), (NULL, 'Fiche demandes', 'ficheclient/ficheDemandes', 'menu', '99'), (NULL, 'Fiche commentaires', 'ficheclient/ficheResaCommentaires', 'menu', '99'), (NULL, 'Fiche colis', 'ficheclient/ficheColis', 'menu', '99'); ALTER TABLE `helper` ADD `customHtml` TEXT NOT NULL AFTER `html`; -- -- 30-01-2018 -- CREATE TABLE IF NOT EXISTS `liste_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idListe` int(11) NOT NULL, `idProfile` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Sauvegarder les listes', 'liste-save', 'menu', '1'); -- -- 31-01-2018 FTH -- ALTER TABLE `reservations` ADD `flagConfirmationDepart` VARCHAR(100) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'flagConfirmationDepart', 'Flag confirmation départ', '2', '30', '100', 'flagConfirmationDepart', '', '1', '0', 'reservations'); -- -- 31-01-2018 -- DELETE FROM `liste_profile`; INSERT INTO `liste_profile`(`idListe`, `idProfile`) SELECT listes.id, user_role.role_id FROM `listes`, `user_role` WHERE idEtat = 2; --------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------- PROD au 08/02/2018 --------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- -- 01-02-2018 -- INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES (NULL, 'Refus de paiement loyer prélévement', NULL, 1, NULL, NULL,0,'refus_paiement_loyer'); -- -- 02-02-2018 FTH -- INSERT INTO `etat_reservation` (`id`, `nom`, `nomEn`) VALUES (16, 'Changement - Attente EDL', 'Room changing - Pending EDL'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatIntercontrat', 'Etat inter-contrat', '2', '30', '100', 'etatIntercontrat', '', '3', '0', ''); -- -- 02-02-2018 -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateProchaineResa', 'Date de la prochaine réservation', '2', '31', '100', 'dateProchaineResa', '', '2', '1', ''); -- -- 06-02-2018 FTH -- ALTER TABLE `reservations_groupe` ADD `archive` ENUM('0','1') NULL DEFAULT '0' ; -- 07-02-2018 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Tablette', 'tablette', 'menu', '0'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Etat des lieux', 'tablette_edl', 'menu', '82'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Interventions techniques', 'tablette_interventions_techniques', 'menu', '82'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Intercontrat', 'tablette_intercontrat', 'menu', '82'); -- -- 08-02-2018 FTH -- ALTER TABLE `groupes` ADD `idPMS` VARCHAR(10) NULL ; ALTER TABLE `configuration` ADD `siteGroupe` VARCHAR(2) NULL ; -- -- 12-02-2018 FTH -- ALTER TABLE `configuration` ADD `prestationCC` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 14-02-2018 FTH AMLI -- ALTER TABLE `programme_campagne` CHANGE `typre` `typre` VARCHAR(3) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'etatReservation'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_etat'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'EtatDesLieux'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_etatTravaux'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_id'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_creation_date'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_roomChanged'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_commentaire'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'etatRenonce'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'dateEdl'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'facturationEdl'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'dateRdvEdl'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'dateRenonce'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_model'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_display_name'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_affectedTo_display_name'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'dateProchaineResa'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`code` = 'demande_type'; ALTER TABLE `colis` ADD `deleted` TINYINT(1) NOT NULL DEFAULT '0' ; UPDATE `champs` SET `idTypeHtml` = '8' WHERE `champs`.`code` = 'colis_archive'; -- -- 16-02-2017 Mamihery -- ALTER TABLE `reservations` ADD `remise_des_cles` ENUM('','attente','remis','factures','coffre') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ; -- -- 20-02-2018 FTH -- UPDATE `champs` SET `table` = 'reservations' WHERE `champs`.`code` = 'remiseDesCles'; -- -- apres execution du script reservation/majremisedescles, renomer le champs dans la table edl -- ALTER TABLE `edl` CHANGE `remise_des_cles` `remise_des_cles_old` ENUM('','attente','remis','factures','coffre') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- champs HEC -- ALTER TABLE `logements` ADD `loyer` FLOAT NULL ; ALTER TABLE `logements` ADD `loyerHC` FLOAT NULL , ADD `charges` FLOAT NULL, ADD `complementLoyer` FLOAT NULL ; ALTER TABLE `documents` ADD `signState` SMALLINT NULL , ADD `signDocId` VARCHAR(40) NULL ; -- -- 26-02-2018 FTH -- ALTER TABLE `demandes` ADD `archive` ENUM('0','1') NULL DEFAULT '0' ; -- -- 27-02-2018 Mamihery -- ALTER TABLE `demandes_etat_travaux_historique` CHANGE `commentaire` `commentaire` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 28-02-2018 -- ALTER TABLE `reservations` CHANGE `idProgramme` `idProgramme` TINYINT(3) UNSIGNED NULL, CHANGE `idSousProgramme` `idSousProgramme` TINYINT(3) UNSIGNED NULL, CHANGE `cafTreated` `cafTreated` TINYINT(1) NOT NULL DEFAULT '0'; -- -- 05-03-2018 FTH -- ALTER TABLE `configuration` ADD `modeRecupProgCampagne` ENUM('idProgramme','idSousProgramme') NULL DEFAULT 'idProgramme' ; -- -- 07-03-2018 Mamihery -- ALTER TABLE `demandes` ADD `idLogement` SMALLINT(5) NULL DEFAULT NULL AFTER `idResa`; ALTER TABLE `demandes` ADD `addedFrom` ENUM('','BO','TABLETTE','PORTAIL RESIDENT') NOT NULL AFTER `etatTravaux`; -- -- 08-03-2018 Mamihery -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Ajout d''interventions techniques', 'tablette_interventions_techniques_add', 'menu', '117'); -- -- 12-03-2018 FTH -- ALTER TABLE `configuration` ADD `prelevementLoyer` TINYINT(1) NULL DEFAULT '0' , ADD `nbrJoursAvantPrelevement` TINYINT NULL DEFAULT '0' ; -- -- 13-03-2018 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Archivage demande', 'liste-btn-archive-demande', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification inline demande', 'liste-btn-modif-inline-demande', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Enregistrement liste demandes', 'liste-btn-save-demande', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Envois de mail liste demandes', 'liste-btn-envoyer-mail-demande', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Archivage colis', 'liste-btn-archive-colis', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification inline colis', 'liste-btn-modif-inline-colis', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Enregistrement liste colis', 'liste-btn-save-colis', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Envois de mail liste colis', 'liste-btn-envoyer-mail-colis', 'bouton', '1'); ALTER TABLE `alias_locataires` ADD `type` ENUM('frais','loyer','rmbDG') NULL ; CREATE TABLE IF NOT EXISTS `pile_loyer_historique` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idLocataire` int(11) NOT NULL, `idReservation` int(11) NOT NULL, `datePaiement` date NOT NULL, `noFacture` varchar(20) DEFAULT NULL, `statutPaiement` enum('ok','ko') DEFAULT NULL, `dateRefus` date DEFAULT NULL, `codeErreur` varchar(10) DEFAULT NULL, `msgErreur` varchar(255) DEFAULT NULL, `dateHisto` datetime DEFAULT NULL, `msg` TEXT DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 14-03-2018 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Changement etat demande', 'liste-btn-changer-etat-demande', 'bouton', '1'); -- -- 13-03-2018 -- ALTER TABLE `configuration` ADD `colisval` VARCHAR(255) NULL DEFAULT 'Colis' AFTER `modeRecupProgCampagne`; -- -- 14-03-2018 FTH -- ALTER TABLE `pile_loyer_historique` ADD `datePrelevement` DATE NULL , ADD `montantPrelevement` FLOAT NULL; ALTER TABLE `alias_locataires` ADD `numCB` VARCHAR(50) NULL , ADD `typeCB` VARCHAR(50) NULL , ADD `dateExpCB` VARCHAR(10) NULL ; -- -- 19-03-2018 FTH -- ALTER TABLE `configuration` ADD `utiliserAliasFrais` TINYINT(1) NULL DEFAULT '0' , ADD `priseEmpLorsPayFacture` TINYINT(1) NULL DEFAULT '0' ; -- -- 20-03-2018 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateArriveeDemande', 'Date arrivée Demande', '2', '21', '100', 'dateArriveeDemande', '', '2', '0', NULL); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateDepartDemande', 'Date départ Demande', '2', '21', '100', 'dateDepartDemande', '', '2', '0', NULL); -- -- 20-03-2018 -- TRUNCATE `dashboard`; -- -- 20-03-2018 FTH -- INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES (NULL, 'Notification prélévement loyer', NULL, 1, NULL, NULL,0,'notif_prelevement_loyer'); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES (NULL, 'Notification expiration CB', NULL, 1, NULL, NULL,0,'notif_expiration_cb'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche prélèvements', 'ficheclient/fichePrelevements', 'menu', '99'); -- -- 21-03-2018 FTH -- ALTER TABLE `configuration` ADD `accountHideSolde` TINYINT(1) NULL DEFAULT '0' ; -- -- 22-03-2018 FTH -- ALTER TABLE `configuration` ADD `typeSolde` ENUM('normal','progressif') NULL DEFAULT 'normal' ; -- -- 27-03-2018 FTH -- ALTER TABLE `configuration` ADD `typeMenuResident` ENUM('logo','texte','logotexte') NOT NULL DEFAULT 'logo' ; CREATE TABLE IF NOT EXISTS `duplication_camp_tmp` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChampOld` int(11) DEFAULT NULL, `idChampNew` int(11) DEFAULT NULL, `idActionOld` int(11) DEFAULT NULL, `idActionNew` int(11) DEFAULT NULL, `idTarifOld` int(11) DEFAULT NULL, `idTarifNew` int(11) DEFAULT NULL, `type` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 28-03-2018 FTH -- ALTER TABLE `configuration` ADD `accountHistoPrelevement` TINYINT(1) NULL DEFAULT '0' COMMENT 'Afficher l historique du prelevement dans mon compte' ; ALTER TABLE `reservations` ADD `interdirePrelevement` TINYINT(1) NULL ; ALTER TABLE `pile_loyer_historique` ADD `typeCB` VARCHAR(50) NULL , ADD `numCB` VARCHAR(50) NULL , ADD `dateExpCB` VARCHAR(10) NULL ; -- -- 29-03-2018 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Présents', 'mode-input-presents', 'champs', '26'); -- -- 02-04-2018 FTH -- ALTER TABLE `logs` ADD `idReservation` INT NULL , ADD `idLocataire` INT NULL ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche logs', 'ficheclient/ficheLogs', 'menu', '99'); -- -- 02-04-2018 -- CREATE TABLE IF NOT EXISTS `presents_save` ( `id` int(11) NOT NULL AUTO_INCREMENT, `champs` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- 03-04-2018 FTH -- ALTER TABLE `batiments` ADD `dateSuppression` DATE NULL ; -- -- 04-04-2018 -- CREATE TABLE IF NOT EXISTS `logements_historique_travaux` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idLogement` int(11) NOT NULL, `dateDebutTravaux` date NOT NULL, `dateFinTravaux` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 09-04-2018 -- ALTER TABLE `champs_demandes` ADD `displayname` VARCHAR(255) NOT NULL AFTER `libelle`; -- -- 16-04-2018 FTH -- CREATE TABLE IF NOT EXISTS `type_locataires` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(100) NOT NULL, `nom` varchar(100) NOT NULL, `dureeEntreContrats` smallint(6) NOT NULL, `unite` enum('day','week','month','year') NOT NULL, `operateur` tinyint(1) NOT NULL, `typeExercice` VARCHAR(20) NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Contenu de la table `type_locataires` -- INSERT INTO `type_locataires` (`id`, `code`,`nom`, `dureeEntreContrats`, `unite`, `operateur`,`typeExercice`) VALUES (1, 'permanent','Permanent', 1, 'day', 1,null), (2, 'revenant','Revenant', 1, 'day', 3,'next'), (3, 'renouvelant','Renouvelant', 2, 'day', 2,'current'); ALTER TABLE `type_locataires` ADD `active` TINYINT(1) NOT NULL DEFAULT '1' ; ALTER TABLE `reservations` ADD `idTypeLocataire` SMALLINT NULL DEFAULT '0' ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idTypeLocataire', 'Type locataire', '2', '30', '100', 'idTypeLocataire', 'type_locataires', '3', '0', 'reservations'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`) VALUES (NULL, 'Type locataire', 'int(1)', 'idTypeLocataire', 'reservations', 'type_locataires', '1', '3'); ALTER TABLE `campagnes` ADD `dateExercice` VARCHAR(10) NULL ; ALTER TABLE `type_locataires` ADD `default` TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE `type_locataires` CHANGE `dureeEntreContrats` `dureeEntreContrats` SMALLINT(6) NULL, CHANGE `unite` `unite` ENUM('day','week','month','year') CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `operateur` `operateur` TINYINT(1) NULL; INSERT INTO `type_locataires` (`id`, `code`,`nom`, `dureeEntreContrats`, `unite`, `operateur`,`typeExercice`,`default`) VALUES (4, 'primo','Primo', null, null, null,null,1); UPDATE `champs` SET `nom` = 'Type usager' WHERE `champs`.`code` = 'idTypeLocataire'; -- -- 20-04-2018 FTH -- CREATE TABLE IF NOT EXISTS `config_dg` ( `id` tinyint(4) NOT NULL AUTO_INCREMENT, `nom` varchar(50) NOT NULL, `dureeEntreContrats` tinyint(4) DEFAULT NULL, `unite` enum('day','week','month','year') DEFAULT NULL, `operateur` tinyint(1) DEFAULT NULL, `payer` enum('oui','non') DEFAULT NULL, `active` TINYINT(1) NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Contenu de la table `config_dg` -- INSERT INTO `config_dg` (`id`, `nom`, `dureeEntreContrats`, `unite`, `operateur`, `payer`,`active`) VALUES (1, 'Depôt de garantie', 0, 'day', 5, 'non',1); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'payerDG', 'Remboursement DG', '2', '30', '100', 'payerDG', '', '9', '0', ''); -- -- 23-04-2018 -- INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`) VALUES (NULL, 'Checkout', 'ludovic.gerard@iriga-networks.com', '1'); -- -- 07-05-2018 -- Mamihery Rzf -- ALTER TABLE `user` ADD `login_token` VARCHAR(128) NULL DEFAULT NULL AFTER `password`; -- -- 15-05-2018 -- SHOW INDEX FROM `champs_dynamiques`; ALTER TABLE `champs_dynamiques` ADD KEY `idTable` (`idTable`); ALTER TABLE `champs_dynamiques` ADD KEY `nom` (`nom`); SHOW INDEX FROM `champs_formulaires`; ALTER TABLE `champs_formulaires` ADD KEY `idFormulaire` (`idFormulaire`); ALTER TABLE `champs_formulaires` ADD KEY `equivalentSql` (`equivalentSql`); SHOW INDEX FROM `colis`; ALTER TABLE `colis` ADD KEY `idResa` (`idResa`); ALTER TABLE `colis` ADD KEY `archive` (`archive`); ALTER TABLE `colis` ADD KEY `deleted` (`deleted`); SHOW INDEX FROM `colis_values`; ALTER TABLE `colis_values` ADD KEY `idChamp` (`idChamp`); ALTER TABLE `colis_values` ADD KEY `idResa` (`idResa`); ALTER TABLE `colis_values` ADD KEY `idColis` (`idColis`); SHOW INDEX FROM `demandes`; ALTER TABLE `demandes` ADD KEY `idModele` (`idModele`); ALTER TABLE `demandes` ADD KEY `idLocataire` (`idLocataire`); ALTER TABLE `demandes` ADD KEY `etat` (`etat`); ALTER TABLE `demandes` ADD KEY `archive` (`archive`); SHOW INDEX FROM `demandes_modeles`; ALTER TABLE `demandes_modeles` ADD KEY `type` (`type`); ALTER TABLE `demandes_modeles` ADD KEY `etat` (`etat`); SHOW INDEX FROM `demandes_values`; ALTER TABLE `demandes_values` ADD KEY `idChamp` (`idChamp`); ALTER TABLE `demandes_values` ADD KEY `idDemande` (`idDemande`); -- Contraintes pour la table `rdv` -- ALTER TABLE `rdv` ADD CONSTRAINT `rdv_ibfk_1` FOREIGN KEY (`idResidence`) REFERENCES `residences` (`id`), ADD CONSTRAINT `rdv_ibfk_2` FOREIGN KEY (`idReservations`) REFERENCES `reservations` (`id`); -- -- Contraintes pour la table `rdv_parametres_gestion_ressources` -- ALTER TABLE `rdv_parametres_gestion_ressources` ADD CONSTRAINT `rdv_parametres_gestion_ressources_ibfk_1` FOREIGN KEY (`idRdvParametres`) REFERENCES `rdv_parametres` (`id`); -- -- Contraintes pour la table `rdv_parametres_horaires` -- ALTER TABLE `rdv_parametres_horaires` ADD CONSTRAINT `rdv_parametres_horaires_ibfk_1` FOREIGN KEY (`idRdvParametres`) REFERENCES `rdv_parametres` (`id`); -- -- Contraintes pour la table `rdv_renonce` -- ALTER TABLE `rdv_renonce` ADD CONSTRAINT `rdv_renonce_ibfk_1` FOREIGN KEY (`idReservations`) REFERENCES `reservations` (`id`); -- -- Contraintes pour la table `rdv_residence_parametres` -- ALTER TABLE `rdv_residence_parametres` ADD CONSTRAINT `rdv_residence_parametres_ibfk_1` FOREIGN KEY (`idResidence`) REFERENCES `residences` (`id`), ADD CONSTRAINT `rdv_residence_parametres_ibfk_2` FOREIGN KEY (`idRdvParametres`) REFERENCES `rdv_parametres` (`id`); -- -- 23-05-2018 FTH -- ALTER TABLE `modes_campagne` ADD `mailCreationCompte` VARCHAR(100) NULL ; UPDATE `modes_campagne` SET `mailCreationCompte` = 'identification'; -- -- 28-05-2018 FTH correction des mauvaise dateFinAssur en BDD -- UPDATE `reservations` SET `dateFinAssur` = null WHERE `dateFinAssur` = '1970-01-01'; UPDATE `reservations` SET `dateFinAssur` = null WHERE `dateFinAssur` = '-0001-11-30'; -- -- 30-05-2018 FTH -- INSERT INTO `type_modeles_docs` (`id`, `nom`, `code`, `obligatoire`, `active`, `idsResidences`, `imprimableEnLot`) VALUES (9, 'Attestation de réception de demande ', 'ATTRE', '1', '1', NULL, '1'); -- -- 29-05-2018 -- DROP TABLE IF EXISTS `logements_state`; CREATE TABLE IF NOT EXISTS `logements_state` ( `id` int(11) NOT NULL AUTO_INCREMENT, `data` text NOT NULL, `dateFilter` text, `numberFilter` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- -- Déchargement des données de la table `logements_state` -- INSERT INTO `logements_state` (`id`, `data`, `dateFilter`, `numberFilter`) VALUES (1, '{\"time\":1446453052293,\"filter\":{\"logements_id\":{\"search\":\"\",\"type\":\"number\",\"smart\":true,\"regex\":false,\"caseInsensitive\":true},\"logements_numero\":{\"search\":\"\",\"type\":\"text\",\"smart\":true,\"regex\":false,\"caseInsensitive\":true}},\"start\":0,\"length\":10,\"order\":[[0,\"asc\"]],\"search\":{\"search\":\"\",\"smart\":true,\"regex\":false,\"caseInsensitive\":true},\"columns\":[{\"visible\":true,\"search\":{\"search\":\"\",\"smart\":true,\"regex\":false,\"caseInsensitive\":true}}]}', NULL, NULL); DROP TABLE IF EXISTS `champs_logements`; CREATE TABLE IF NOT EXISTS `champs_logements` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(255) NOT NULL, `nom` varchar(255) NOT NULL, `idTheme` int(11) NOT NULL, `ordre` int(11) NOT NULL, `taille` int(11) NOT NULL, `equivalentSql` varchar(255) DEFAULT NULL, `sourceListe` varchar(100) DEFAULT NULL, `idTypeHtml` tinyint(4) NOT NULL, `afficher` tinyint(1) NOT NULL DEFAULT '1', `table` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_id', 'Id', 1, 1, 100, 'id', '', 5, 1, 'logements'), (Null, 'logements_numero', 'Numéro', 1, 2, 100, 'numero', '', 1, 1, 'logements'); -- -- 04-06-2018 -- INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_nom', 'Nom', 1, 3, 100, 'nom', '', 1, 1, 'logements'), (Null, 'logements_superficie', 'Superficie', 1, 4, 100, 'superficie', '', 5, 1, 'logements'), (Null, 'logements_commentaire', 'Commentaire', 1, 5, 100, 'commentaire', '', 6, 1, 'logements'), (Null, 'logements_etat', 'Etat', 1, 6, 100, 'idEtat', '', 3, 1, 'etat_logement'), (Null, 'logements_dateDebutTravaux', 'Date début des travaux', 1, 7, 100, 'dateDebutTravaux', '', 2, 1, 'logements'), (Null, 'logements_dateFinTravaux', 'Date fin des travaux', 1, 8, 100, 'dateFinTravaux', '', 2, 1, 'logements'), (Null, 'batiments_nom', 'Nom', 2, 1, 100, 'nom', '', 1, 1, 'batiments'), (Null, 'batiments_numero', 'Numéro', 2, 2, 100, 'numero', '', 1, 1, 'batiments'), (Null, 'batiments_nbrChambres', 'Nombre de chambres', 2, 3, 100, 'nbrChambres', '', 5, 1, 'batiments'), (Null, 'residences_nom', 'Nom', 3, 1, 100, 'nom', '', 1, 1, 'residences'), (Null, 'residences_adresse', 'Adresse', 3, 2, 100, 'adresse', '', 1, 1, 'residences'), (Null, 'residences_codePostal', 'CP', 3, 3, 100, 'codePostal', '', 5, 1, 'residences'), (Null, 'residences_ville', 'Ville', 3, 4, 100, 'ville', '', 1, 1, 'residences'); -- -- 06-06-2018 -- CREATE TABLE ideal_caf_situation_professionnelle ( `code` VARCHAR(3) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `situation` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ) ENGINE = InnoDB; INSERT INTO `ideal_caf_situation_professionnelle` (`code`, `situation`) VALUES ('SAL', 'Salarié (e)'), ('APP', 'Apprenti'), ('SFP', 'Stage Formation Professionnelle'), ('ETI', 'Travailleur indépendant'), ('CHO', 'Chômeur'), ('ETU', 'Étudiant'), ('RET', 'Retraité (e)'), ('SSA', 'Sans activité'), ('AUT', 'Autres'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'IDEAL CAF', 'systeme-tab-ideal-caf', 'menu', '7'); INSERT INTO `droit_config` (`id`, `role_id`, `droit_id`, `value`) VALUES (NULL, 'admin', '129', 'W'); -- -- 13-06-2018 FTH -- INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES (NULL, 'Arrivée J-15 Permanent même chambre', NULL, 1, NULL, NULL,0,'arrivee_permanent_mc'); -- -- 21-06-2018 FTH -- ALTER TABLE `logements` CHANGE `collective` `collective` TINYINT(1) NULL DEFAULT '0'; -- -- 09-07-2018 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Intercontrat', 'mode-input-intercontrat', 'champs', '26'); CREATE TABLE IF NOT EXISTS `intercontrat_state` ( `id` int(11) NOT NULL AUTO_INCREMENT, `data` text NOT NULL, `dateFilter` text, `numberFilter` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `champs_interccontrat`; CREATE TABLE IF NOT EXISTS `champs_interccontrat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code` varchar(255) NOT NULL, `nom` varchar(255) NOT NULL, `idTheme` int(11) NOT NULL, `ordre` int(11) NOT NULL, `taille` int(11) NOT NULL, `equivalentSql` varchar(255) DEFAULT NULL, `sourceListe` varchar(100) DEFAULT NULL, `idTypeHtml` tinyint(4) NOT NULL, `afficher` tinyint(1) NOT NULL DEFAULT '1', `table` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `champs_interccontrat` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'intercontrat_id', 'Id', 1, 1, 100, 'id', '', 5, 1, 'intercontrat'), (Null, 'intercontrat_duree', 'Durée', 1, 1, 100, 'duree', '', 5, 1, 'intercontrat'), (Null, 'intercontrat_decalage', 'Décalage', 1, 1, 100, 'decalage', '', 5, 1, 'intercontrat'), (Null, 'intercontrat_idEtat', 'Id etat', 1, 1, 100, 'idEtat', '', 5, 1, 'intercontrat'), (Null, 'intercontrat_etat', 'Etat intercontrat', 1, 1, 100, 'nom', '', 3, 1, 'etat_intercontrat'), (Null, 'intercontrat_valide', 'Valide', 1, 1, 100, 'valide', '', 5, 1, 'intercontrat'), (Null, 'intercontrat_dateEtat', 'Date etat', 1, 1, 100, 'dateEtat', '', 2, 1, 'intercontrat'), (Null, 'intercontrat_commentaire', 'Commentaire IC', 1, 1, 100, 'commentaire', '', 1, 1, 'intercontrat'), (Null, 'intercontrat_dateCreation', 'date création IC', 1, 1, 100, 'creation_date', '', 2, 1, 'intercontrat'), (Null, 'logements_id', 'Id', 4, 1, 100, 'id', '', 5, 1, 'logements'), (Null, 'logements_numero', 'Numéro logement', 4, 2, 100, 'numero', '', 1, 1, 'logements'), (Null, 'logements_nom', 'Nom logement', 4, 3, 100, 'nom', '', 1, 1, 'logements'), (Null, 'logements_commentaire', 'Commentaire logement', 4, 5, 100, 'commentaire', '', 6, 1, 'logements'), (Null, 'logements_etat', 'Etat logement', 4, 6, 100, 'idEtat', '', 3, 1, 'etat_logement'), (Null, 'logements_dateDebutTravaux', 'Date début des travaux', 4, 7, 100, 'dateDebutTravaux', '', 2, 1, 'logements'), (Null, 'logements_dateFinTravaux', 'Date fin des travaux', 4, 8, 100, 'dateFinTravaux', '', 2, 1, 'logements'), (Null, 'batiments_nom', 'Nom batiment', 2, 1, 100, 'nom', '', 1, 1, 'batiments'), (Null, 'batiments_numero', 'Numéro batiment', 2, 2, 100, 'numero', '', 1, 1, 'batiments'), (Null, 'residences_nom', 'Nom résidence', 3, 1, 100, 'nom', '', 1, 1, 'residences'), (Null, 'residences_adresse', 'Adresse résidence', 3, 2, 100, 'adresse', '', 1, 1, 'residences'), (Null, 'residences_codePostal', 'CP résidence', 3, 3, 100, 'codePostal', '', 5, 1, 'residences'), (Null, 'residences_ville', 'Ville résidence', 3, 4, 100, 'ville', '', 1, 1, 'residences'); INSERT INTO `intercontrat_state` (`id`, `data`, `dateFilter`, `numberFilter`) VALUES (1, '{\"time\":1446453052293,\"filter\":{\"intercontrat_id\":{\"search\":\"\",\"type\":\"number\",\"smart\":true,\"regex\":false,\"caseInsensitive\":true},\"logements_numero\":{\"search\":\"\",\"type\":\"text\",\"smart\":true,\"regex\":false,\"caseInsensitive\":true}},\"start\":0,\"length\":10,\"order\":[[0,\"asc\"]],\"search\":{\"search\":\"\",\"smart\":true,\"regex\":false,\"caseInsensitive\":true},\"columns\":[{\"visible\":true,\"search\":{\"search\":\"\",\"smart\":true,\"regex\":false,\"caseInsensitive\":true}}]}', NULL, NULL); -- -- 11-07-2018 -- RENAME TABLE `logements_historique_travaux` TO `logements_periode_travaux`; -- -- 16-07-2018 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Etat des lieux', 'mode-input-edl', 'champs', '26'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Planning d''etat des lieux', 'mode-input-planning-edl', 'champs', '26'); ALTER TABLE `logements_periode_travaux` ADD `userid` INT NULL , ADD `creation_date` DATETIME NULL ; -- -- 19-07-2018 FTH correction des etat IC erroné -- UPDATE `reservations` SET `idIntercontrat` = NULL WHERE `reservations`.`id` = 453; UPDATE `reservations` SET `idIntercontrat` = NULL WHERE `reservations`.`id` = 424; UPDATE `reservations` SET `idIntercontrat` = NULL WHERE `reservations`.`id` = 263; UPDATE `reservations` SET `idIntercontrat` = NULL WHERE `reservations`.`id` = 1185; UPDATE `reservations` SET `idIntercontrat` = NULL WHERE `reservations`.`id` = 1028; UPDATE `reservations` SET `idIntercontrat` = NULL WHERE `reservations`.`id` = 372; -- -- 20-07-2018 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateDebutTravaux', 'Date début travaux', '2', '30', '100', 'dateDebutTravaux', '', '2', '0', 'logements_periode_travaux'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateFinTravaux', 'Date fin travaux', '2', '30', '100', 'dateFinTravaux', '', '2', '0', 'logements_periode_travaux'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatTravaux', 'Etat travaux', '2', '30', '100', 'etatTravaux', '', '3', '0', 'logements_periode_travaux'); -- -- 24-07-2018 FTH -- ALTER TABLE `configuration` ADD `modifierDatesFacturation` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 25-07-2018 -- UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`equivalentSql` = 'idProgramme'; UPDATE `champs` SET `afficher` = '0' WHERE `champs`.`equivalentSql` = 'idSousProgramme'; -- -- 02-08-2018 AAK : Ajout du multiBredea/multiCeri -- DROP TABLE IF EXISTS `api_pms`; CREATE TABLE IF NOT EXISTS `api_pms` ( `id` int(11) NOT NULL, `nom` varchar(255) NOT NULL, `className` varchar(100) NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `api_pms` ADD PRIMARY KEY (`id`); ALTER TABLE `api_pms` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; DROP TABLE IF EXISTS `api_setting_pms`; CREATE TABLE IF NOT EXISTS `api_setting_pms` ( `id` int(11) NOT NULL, `nom` varchar(255) NOT NULL, `cle` varchar(255) NOT NULL, `valeur` varchar(255) NOT NULL, `idAPI` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `api_setting_pms` ADD PRIMARY KEY (`id`); ALTER TABLE `api_setting_pms` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; DROP TABLE IF EXISTS `residences_apipms`; CREATE TABLE IF NOT EXISTS `residences_apipms` ( `idResidence` int(10) unsigned NOT NULL, `idApiPms` int(10) unsigned NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `residences_apipms` ADD PRIMARY KEY (`idResidence`,`idApiPms`), ADD KEY `idResidence` (`idResidence`), ADD KEY `idApiPms` (`idApiPms`); DROP TABLE IF EXISTS `reservations_apipms`; CREATE TABLE IF NOT EXISTS `reservations_apipms` ( `idReservation` mediumint(8) unsigned NOT NULL, `idApiPms` mediumint(8) unsigned NOT NULL, `state` enum('DemandeEnvoyee','DemandeAcceptee','DemandeRefusee','DemandeAbandonnee') NOT NULL DEFAULT 'DemandeEnvoyee', `idPMS` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `reservations_apipms` ADD PRIMARY KEY (`idReservation`,`idApiPms`), ADD KEY `idReservation` (`idReservation`), ADD KEY `idApiPms` (`idApiPms`), ADD KEY `state` (`state`); INSERT INTO `droit_elements` (`nom`, `unique_name`, `type`, `parent_id`) VALUES ('API pms', 'systeme-tab-api-pms', 'menu', 7); -- -- 17-09-2018 AAK : Ajout du mode d'envoi des demandes vers le PMS -- ALTER TABLE `campagnes` ADD `modeEnvoiDemandePMS` ENUM('Immediat','ApresCommission') NOT NULL DEFAULT 'Immediat' ; ALTER TABLE `campagnes` ADD KEY `modeEnvoiDemandePMS` (`modeEnvoiDemandePMS`); -- -- 05-11-2018 AAK : Gestion multiPMS de la correspondance des champs dynamiques entre WeasyLoc et les PMS -- DROP TABLE IF EXISTS `champs_formulaires_apipms`; CREATE TABLE IF NOT EXISTS `champs_formulaires_apipms` ( `champId` int(11) NOT NULL, `idApiPms` int(11) NOT NULL, `actionPMS` enum('Value2Value','Id2Id','Id2Value') NOT NULL DEFAULT 'Value2Value', `tablePMS` varchar(100) NOT NULL, `champPMS` varchar(100) NOT NULL, `complPMS` varchar(100) NOT NULL, `valeurPMS` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `champs_formulaires_apipms` ADD PRIMARY KEY (`champId`,`idApiPms`), ADD KEY `champId` (`champId`), ADD KEY `idApiPms` (`idApiPms`); DROP TABLE IF EXISTS `valeurs_select_apipms`; CREATE TABLE IF NOT EXISTS `valeurs_select_apipms` ( `valeurId` int(11) NOT NULL, `idApiPms` int(11) NOT NULL, `tablePMS` varchar(100) NOT NULL, `valeurIdPMS` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `valeurs_select_apipms` ADD PRIMARY KEY (`valeurId`,`idApiPms`), ADD KEY `valeurId` (`valeurId`), ADD KEY `idApiPms` (`idApiPms`); DROP TABLE IF EXISTS `valeurs_dynamiques_formulaires_avecPMS`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `valeurs_dynamiques_formulaires_avecPMS` AS select `locataires`.`id` AS `idLocataire`,`locataires`.`nom` AS `nomLocataire`,`locataires`.`prenom` AS `prenomLocataire`,`reservations`.`id` AS `idResa`,`reservations`.`dateDemandeReservation` AS `dateDemandeReservation`,`valeurs_dynamiques`.`idChamp` AS `champId`,`champs_formulaires`.`name` AS `champName`,`valeurs_dynamiques`.`valeur` AS `valeurWL`,`valeurs_select`.`valeur` AS `valeurSelectWL`,`champs_formulaires_apipms`.`idApiPms` AS `idApiPms`,`champs_formulaires_apipms`.`actionPMS` AS `actionPMS`,`champs_formulaires_apipms`.`tablePMS` AS `tablePMS`,`champs_formulaires_apipms`.`champPMS` AS `champPMS`,`champs_formulaires_apipms`.`complPMS` AS `complPMS`,`champs_formulaires_apipms`.`valeurPMS` AS `valeurPMS`,`valeurs_select_apipms`.`tablePMS` AS `selectTablePMS`,`valeurs_select_apipms`.`valeurIdPMS` AS `selectValeurIdPMS`,`champs_formulaires`.`idType` AS `idType`,`champs_formulaires`.`idFormulaire` AS `idFormulaire`,`champs_formulaires`.`sourceListe` AS `sourceListe` from ((((((`valeurs_dynamiques` left join `reservations` on((`reservations`.`id` = `valeurs_dynamiques`.`idReservation`))) left join `locataires` on((`locataires`.`id` = `valeurs_dynamiques`.`idLocataire`))) left join `champs_formulaires` on((`champs_formulaires`.`id` = `valeurs_dynamiques`.`idChamp`))) left join `champs_formulaires_apipms` on((`champs_formulaires_apipms`.`champId` = `valeurs_dynamiques`.`idChamp`))) left join `valeurs_select` on(((`valeurs_select`.`id` = `valeurs_dynamiques`.`valeur`) and (`valeurs_select`.`idSelect` = `champs_formulaires`.`sourceListe`)))) left join `valeurs_select_apipms` on(((`valeurs_select_apipms`.`valeurId` = `valeurs_dynamiques`.`valeur`) and (`valeurs_select_apipms`.`idApiPms` = `champs_formulaires_apipms`.`idApiPms`)))) where (1 and (`champs_formulaires_apipms`.`idApiPms` > 0)) order by `locataires`.`nom`,`locataires`.`prenom`,`reservations`.`dateDemandeReservation`,`champs_formulaires`.`idFormulaire`,`champs_formulaires`.`name`; -- -- 07-11-2018 AAK : Table oubliée pour la gestion des types de logement par ApiPMS -- DROP TABLE IF EXISTS `typelogement_apipms`; CREATE TABLE IF NOT EXISTS `typelogement_apipms` ( `idTypeLogement` mediumint(9) NOT NULL, `idApiPms` mediumint(9) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `typelogement_apipms` ADD PRIMARY KEY (`idTypeLogement`,`idApiPms`), ADD KEY `idTypeLogement` (`idTypeLogement`), ADD KEY `idApiPms` (`idApiPms`); ALTER TABLE `batiments` ADD `idPMS` varchar(10) DEFAULT NULL; ALTER TABLE `batiments` ADD KEY `idPMS` (`idPMS`); ALTER TABLE `batiments` ADD KEY `idResidence` (`idResidence`); -- -- 13-11-2018 AAK : Pour gérer l'affichage es logements par résidence -- ALTER TABLE `tarifs` ADD `descriptif` TINYINT(1) NOT NULL AFTER `ordre`, ADD `typeLogementDescription` VARCHAR(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `descriptif`; -- -- 17-08-2018 FTH -- UPDATE `champs` SET `idTypeHtml` = '2' WHERE `champs`.`code` = 'dateOptionPerdue'; UPDATE `champs` SET `idTypeHtml` = '2' WHERE `champs`.`code` = 'dateRelancePrevue'; -- -- 27-08-2018 FTH -- ALTER TABLE `configuration` ADD `checkinShowDDF` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Afficher la date debut de facturation lors du checkin' , ADD `checkoutShowDFF` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Afficher la date fin de facturation lors du checkout' , ADD `checkinDDFequalDA` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Date debut facturation identique à la date arrivée lors du checkin' ; ALTER TABLE `configuration` ADD `showModeleDoc` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Afficher les modèles de documents lors du checkin/checkout' ; ALTER TABLE `configuration` ADD `residentConfirmerArrivee` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Confirmation de la date d''arrivée dans le portail resident' ; -- -- POUR ESSEC -- UPDATE `configuration` SET `residentConfirmerArrivee` = '1' WHERE `configuration`.`id` = 1; -- -- 29-08-2018 AAK pour pouvoir supporter des demandes d'intervention sans idResa -- INSERT INTO `champs` (`code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('numeroLogement', 'Numéro de chambre', 2, 31, 50, 'numero', '', 1, 1, 'logements'); -- -- 30-08-2018 FTH MULTISUIVI -- CREATE TABLE IF NOT EXISTS `type_suivi` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Multisuivis', 'zfcadmin/multisuivis', 'menu', '4'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Multisuivis', 'multisuivis', 'Reservation\\Controller\\Multisuivis', 'index', '30'); -- -- `champs_suivis` -- CREATE TABLE `champs_suivis` ( `id` int(11) NOT NULL, `libelle` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `classCss` varchar(255) DEFAULT NULL, `idCss` varchar(255) NOT NULL, `options` text, `description` text, `obligatoire` tinyint(1) NOT NULL, `equivalentSql` varchar(255) DEFAULT NULL, `actionJS` varchar(255) DEFAULT NULL, `active` int(1) NOT NULL, `sourceListe` varchar(100) DEFAULT NULL, `ordre` tinyint(4) NOT NULL, `column` tinyint(1) NOT NULL DEFAULT '1', `row` int(2) NOT NULL, `idType` tinyint(4) NOT NULL, `idsCampagne` varchar(100) DEFAULT NULL, `nature` enum('standard','libre','texte') NOT NULL DEFAULT 'standard', `tailleColumn` tinyint(1) NOT NULL DEFAULT '1', `tailleRow` tinyint(1) NOT NULL DEFAULT '1', `nomXML` varchar(200) DEFAULT NULL, `size` smallint(6) DEFAULT NULL, `acces` tinyint(1) NOT NULL DEFAULT '1', `obligatoireDemande` tinyint(1) NOT NULL, `modifiable` tinyint(1) NOT NULL DEFAULT '1', `equivalentWS` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `champs_suivis` ADD PRIMARY KEY (`id`); ALTER TABLE `champs_suivis` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- champs_suivis_dateinterval CREATE TABLE `champs_suivis_dateinterval` ( `id` int(11) NOT NULL, `dateMin` enum('unlimited','limited') NOT NULL DEFAULT 'unlimited', `dateMax` enum('unlimited','limited','dateNow') NOT NULL DEFAULT 'unlimited', `nombreJoursMin` int(11) NOT NULL, `nombreJoursMax` int(11) NOT NULL, `idChamp` int(11) NOT NULL, `uniteMin` enum('day','week','month','year') DEFAULT NULL, `uniteMax` enum('day','week','month','year') DEFAULT NULL, `dateMinFixe` date DEFAULT NULL, `dateMaxFixe` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `champs_suivis_dateinterval` ADD PRIMARY KEY (`id`); ALTER TABLE `champs_suivis_dateinterval` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- suivis_values -- CREATE TABLE `suivis_values` ( `id` int(11) NOT NULL, `valeur` text NOT NULL, `idChamp` int(11) NOT NULL, `idResa` int(11) NOT NULL, `idSuivis` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `suivis_values` ADD PRIMARY KEY (`id`); ALTER TABLE `suivis_values` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- suivis_historique -- CREATE TABLE `suivis_historique` ( `id` int(11) NOT NULL, `idResa` int(11) NOT NULL, `type` varchar(255) NOT NULL, `commentaire` text NOT NULL, `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `idSuivis` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `suivis_historique` ADD PRIMARY KEY (`id`); ALTER TABLE `suivis_historique` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- Structure de la table `suivis` -- CREATE TABLE IF NOT EXISTS `suivis` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idResa` int(11) NOT NULL, `archive` TINYINT(1) NOT NULL DEFAULT '0', `deleted` TINYINT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `champs_suivis` ADD `valeurMin` INT NULL DEFAULT '0' , ADD `valeurMax` INT NULL DEFAULT '0' ; ALTER TABLE `champs_suivis` ADD `idTypeSuivis` INT NOT NULL ; ALTER TABLE `champs_suivis` ADD `numOrdre` TINYINT NOT NULL DEFAULT '0' ; CREATE TABLE IF NOT EXISTS `suivis_savedstate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `savedState` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `suivis` ADD KEY `idResa` (`idResa`); ALTER TABLE `suivis` ADD KEY `archive` (`archive`); ALTER TABLE `suivis` ADD KEY `deleted` (`deleted`); ALTER TABLE `suivis_values` ADD KEY `idChamp` (`idChamp`); ALTER TABLE `suivis_values` ADD KEY `idResa` (`idResa`); ALTER TABLE `suivis_values` ADD KEY `idSuivis` (`idSuivis`); -- -- Structure de la table `actions_conditions_suivis` -- CREATE TABLE IF NOT EXISTS `actions_conditions_suivis` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChamp` int(11) NOT NULL, `idAction` int(11) NOT NULL, `typeValeur` enum('exact','interval') NOT NULL, `operateur` tinyint(4) NOT NULL, `valeurExact` varchar(255) DEFAULT NULL, `valeurMin` varchar(255) DEFAULT NULL, `valeurMax` varchar(255) DEFAULT NULL, `champDebut` int(11) DEFAULT NULL, `champFin` int(11) DEFAULT NULL, `unite` varchar(20) DEFAULT NULL, `idChampTexte` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `actions_js_suivis` -- CREATE TABLE IF NOT EXISTS `actions_js_suivis` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChampAttache` int(11) NOT NULL, `idChamp` int(11) NOT NULL, `idType` int(11) NOT NULL, `valeur` varchar(255) DEFAULT NULL, `valeurChamp` varchar(255) DEFAULT NULL, `texte` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- 03-09-2018 RM -- Etat des lieux: vetuste -- ALTER TABLE `edl_article` CHANGE `etat` `etat` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 04-09-2018 -- ALTER TABLE `suivis` ADD `idTypeSuivis` INT NOT NULL ; ALTER TABLE `type_suivi` ADD `deleted` TINYINT NOT NULL DEFAULT '0' ; -- -- 04-09-2018 R.M -- ALTER TABLE `edl_article` ADD `changement` BOOLEAN NOT NULL DEFAULT FALSE AFTER `cout`, ADD `changement_champ` VARCHAR(50) NOT NULL AFTER `changement`; -- -- 05-09-2018 FTH -- UPDATE `champs` SET `afficher` = '1' WHERE `champs`.`code` = 'demande_etat'; UPDATE `champs` SET `afficher` = '1' WHERE `champs`.`code` = 'demande_etatTravaux'; UPDATE `champs` SET `afficher` = '1' WHERE `champs`.`code` = 'demande_commentaire'; UPDATE `champs` SET `afficher` = '1' WHERE `champs`.`code` = 'demande_affectedTo'; UPDATE `champs` SET `sourceListe` = 'user',`idTypeHtml` = '3' WHERE `champs`.`code` = 'demande_affectedTo'; -- -- 06-09-2018 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idTypeLocataireNextResa', 'Type usager prochaine résa', '2', '30', '100', 'idTypeLocataireNextResa', 'type_locataires', '3', '0', ''); -- -- 13/09/2018 AK -- SHOW INDEX FROM `champs_dynamiques`; ALTER TABLE `champs_dynamiques` ADD KEY `idType` (`idType`); SHOW INDEX FROM `champs_dynamiques`; SHOW INDEX FROM `champs_formulaires`; ALTER TABLE `champs_formulaires` ADD KEY `sourceListe` (`sourceListe`); ALTER TABLE `champs_formulaires` ADD KEY `idType` (`idType`); SHOW INDEX FROM `champs_formulaires`; SHOW INDEX FROM `choix_typelogement`; ALTER TABLE `choix_typelogement` ADD KEY `idTypeLogement` (`idTypeLogement`); ALTER TABLE `choix_typelogement` ADD KEY `idReservation` (`idReservation`); ALTER TABLE `choix_typelogement` ADD KEY `idResidence` (`idResidence`); ALTER TABLE `choix_typelogement` ADD KEY `idBatiment` (`idBatiment`); SHOW INDEX FROM `choix_typelogement`; SHOW INDEX FROM `locataires`; ALTER TABLE `locataires` ADD KEY `civilite` (`civilite`); ALTER TABLE `locataires` ADD KEY `idPays` (`idPays`); ALTER TABLE `locataires` ADD KEY `idNationalite` (`idNationalite`); ALTER TABLE `locataires` ADD KEY `idProgramme` (`idProgramme`); ALTER TABLE `locataires` ADD KEY `idSousProgramme` (`idSousProgramme`); SHOW INDEX FROM `locataires`; SHOW INDEX FROM `pile_paiement`; ALTER TABLE `pile_paiement` ADD KEY `idReservation` (`idReservation`); ALTER TABLE `pile_paiement` ADD KEY `idLocataire` (`idLocataire`); SHOW INDEX FROM `pile_paiement`; SHOW INDEX FROM `rdv`; ALTER TABLE `rdv` ADD UNIQUE KEY `idReservations` (`idReservations`); SHOW INDEX FROM `rdv`; SHOW INDEX FROM `reservations`; ALTER TABLE `reservations` ADD KEY `idTypeLogement1` (`idTypeLogement1`); ALTER TABLE `reservations` ADD KEY `idTypeLogement2` (`idTypeLogement2`); ALTER TABLE `reservations` ADD KEY `idTypeLogement3` (`idTypeLogement3`); ALTER TABLE `reservations` ADD KEY `idTypeLogement4` (`idTypeLogement4`); ALTER TABLE `reservations` ADD KEY `idTypeLogementAttribue` (`idTypeLogementAttribue`); ALTER TABLE `reservations` ADD KEY `idProgramme` (`idProgramme`); ALTER TABLE `reservations` ADD KEY `idSousProgramme` (`idSousProgramme`); SHOW INDEX FROM `reservations`; SHOW INDEX FROM `tarifs`; ALTER TABLE `tarifs` ADD KEY `idCampagne` (`idCampagne`); ALTER TABLE `tarifs` ADD KEY `idTypeLogement` (`idTypeLogement`); SHOW INDEX FROM `tarifs`; SHOW INDEX FROM `valeurs_dynamiques`; ALTER TABLE `valeurs_dynamiques` ADD KEY `idChamp` (`idChamp`); ALTER TABLE `valeurs_dynamiques` ADD KEY `idLocataire` (`idLocataire`); ALTER TABLE `valeurs_dynamiques` ADD KEY `statutDoc` (`statutDoc`); ALTER TABLE `valeurs_dynamiques` ADD KEY `idReservation` (`idReservation`); SHOW INDEX FROM `valeurs_dynamiques`; SHOW INDEX FROM `valeurs_select`; ALTER TABLE `valeurs_select` ADD KEY `idSelect` (`idSelect`); ALTER TABLE `valeurs_select` ADD KEY `idPMS` (`idPMS`); ALTER TABLE `valeurs_select` ADD KEY `deleted` (`deleted`); SHOW INDEX FROM `valeurs_select`; -- --25-09-2018 FTH MULTISUIVIS -- ALTER TABLE `suivis_savedstate` ADD `idTypeSuivis` INT NOT NULL ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Archivage suivis', 'liste-btn-archive-suivis', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification inline suivis', 'liste-btn-modif-inline-suivis', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Enregistrement liste suivis', 'liste-btn-save-suivis', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Envois de mail liste suivis', 'liste-btn-envoyer-mail-suivis', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification groupé suivis', 'liste-btn-modif-group-suivis', 'bouton', '1'); -- -------------------------------------------------------- -- -- Structure de la table `suivis_listes` -- CREATE TABLE IF NOT EXISTS `suivis_listes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `idUser` int(11) NOT NULL, `idEtat` tinyint(4) NOT NULL, `deleted` tinyint(1) NOT NULL, `idTypeSuivis` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `suivis_liste_profile` -- CREATE TABLE IF NOT EXISTS `suivis_liste_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idListe` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `suivis_savedstate` CHANGE `idTypeSuivis` `idListe` INT(11) NOT NULL; -- -- 27-09-2018 FTH contrat HEC -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatContrat', 'Etat du contrat', '2', '30', '100', 'etatContrat', 'etat_contrat', '3', '0', ''); -- -- Structure de la table `etat_contrat` -- CREATE TABLE IF NOT EXISTS `etat_contrat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Contenu de la table `etat_contrat` -- INSERT INTO `etat_contrat` (`id`, `nom`) VALUES (2, 'Signature en cours'), (3, 'Signé HEC'), (4, 'Signé'); -- -- 01-10-2018 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'age', 'Age', '2', '30', '100', 'age', '', '5', '0', ''); -- -- 03-10-2018 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Multisuivis', 'systeme-tab-multisuivis', 'menu', 7); -- -- 05-10-2018 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Annulation de changement de logement', 'liste-btn-annuler-changement', 'bouton', '1'); -- -- 08-10-2018 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Attribution résidences', 'user-residences', 'menu', 24); -- -- 10-10-2018 FTH liens -- -- -- Structure de la table `liens_config` -- CREATE TABLE IF NOT EXISTS `liens_config` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `lien` varchar(255) NOT NULL, `target` enum('_blank','_self') NOT NULL DEFAULT '_blank', `user_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; -- -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Configuration de liens', 'user-liens-config', 'menu', 24); -- -- -- 15-10-2018 FTH -- -- Structure de la table `modeles_email_profile` -- CREATE TABLE IF NOT EXISTS `modeles_email_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; --- --- 02-11-2018 FTH --- --- --- Structure de la table `categorie_mail` --- CREATE TABLE IF NOT EXISTS `categorie_mail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `categorie` varchar(255) NOT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `modeles_email` ADD `idCategorie` INT NULL ; --- --- 09-11-2018 FTH --- ALTER TABLE `programme_campagne` CHANGE `idResidence` `idResidence` INT NOT NULL; -- -- 22-11-2018 FTH aiguillage -- UPDATE `champs_de_base` SET `sourceListe` = 'programmes' WHERE `champs_de_base`.`equivalentSql` = 'idProgramme'; UPDATE `champs_de_base` SET `sourceListe` = 'programmes' WHERE `champs_de_base`.`equivalentSql` = 'idSousProgramme'; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Formulaires aiguillage', 'zfcadmin/formulaire', 'menu', '0'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Formulaires aiguillage', 'zfcadmin/formulaire', 'Reservation\\Controller\\Formulaire', 'index', '30'); -- -- Structure de la table `aiguillages` -- CREATE TABLE IF NOT EXISTS `aiguillages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `idCampagne` int(11) NOT NULL, `idFormulaire` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `aiguillages_conditions` -- CREATE TABLE IF NOT EXISTS `aiguillages_conditions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChamp` int(11) NOT NULL, `idAiguillage` int(11) NOT NULL, `typeValeur` enum('exact','interval') NOT NULL, `operateur` tinyint(4) NOT NULL, `valeurExact` varchar(255) DEFAULT NULL, `valeurMin` varchar(255) DEFAULT NULL, `valeurMax` varchar(255) DEFAULT NULL, `champDebut` int(11) DEFAULT NULL, `champFin` int(11) DEFAULT NULL, `unite` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `campagnes_form_aiguillage` -- CREATE TABLE IF NOT EXISTS `campagnes_form_aiguillage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idCampagne` int(11) NOT NULL, `idFormulaire` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Structure de la table `cles` -- CREATE TABLE IF NOT EXISTS `cles` ( `id` mediumint(9) NOT NULL, `nom` varchar(80) NOT NULL, `prenom` varchar(50) DEFAULT NULL, `telephone` varchar(20) NOT NULL, `dateDebutValidite` datetime NOT NULL, `dateFinValidite` datetime NOT NULL, `type` enum('p','1','2') NOT NULL, `peripherique` enum('telephone','encodeur') NOT NULL, `active` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `clesToResas` -- CREATE TABLE IF NOT EXISTS `clesToResas` ( `idCles` mediumint(9) NOT NULL, `idResa` mediumint(9) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `clesToZones` -- CREATE TABLE IF NOT EXISTS `clesToZones` ( `idCles` mediumint(9) NOT NULL, `idZones` mediumint(9) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `cles_erreurs` -- CREATE TABLE IF NOT EXISTS `cles_erreurs` ( `id` mediumint(9) NOT NULL, `code` char(10) NOT NULL, `error_msg_fr` text, `error_msg_en` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `zones` -- CREATE TABLE IF NOT EXISTS `zones` ( `id` mediumint(9) NOT NULL, `valeurDecimal` mediumint(9) NOT NULL COMMENT 'valeur décimal (voir la liste des autorisations salto)', `idPMS` char(1) NOT NULL COMMENT 'correspond à la valeur ANSI Character des autorisations Salto', `nom` varchar(100) NOT NULL COMMENT 'nom de la zone (ex: piscine, parking)' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Index pour les tables exportées -- -- -- Index pour la table `cles` -- ALTER TABLE `cles` ADD PRIMARY KEY (`id`); -- -- Index pour la table `cles_erreurs` -- ALTER TABLE `cles_erreurs` ADD PRIMARY KEY (`id`); -- -- Index pour la table `zones` -- ALTER TABLE `zones` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `cles` -- ALTER TABLE `cles` MODIFY `id` mediumint(9) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT pour la table `cles_erreurs` -- ALTER TABLE `cles_erreurs` MODIFY `id` mediumint(9) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT pour la table `zones` -- ALTER TABLE `zones` MODIFY `id` mediumint(9) NOT NULL AUTO_INCREMENT; ALTER TABLE `locataires` ADD `token` VARCHAR(255) NULL AFTER `password`; ALTER TABLE `cles` ADD `active` BOOLEAN NOT NULL AFTER `peripherique`; ALTER TABLE `clesToResas` ADD `idUser` MEDIUMINT NULL AFTER `idResa`; ALTER TABLE `clesToResas` CHANGE `idResa` `idResa` MEDIUMINT(9) NULL; CREATE TABLE `clesToLogements` ( `idCles` MEDIUMINT NOT NULL , `idLogement` MEDIUMINT NOT NULL ) ENGINE = InnoDB; ALTER TABLE `cles` ADD `login` VARCHAR(50) NOT NULL AFTER `active`, ADD `password` VARCHAR(130) NOT NULL AFTER `login`; ALTER TABLE `cles` ADD `token` VARCHAR(255) NOT NULL AFTER `password`; CREATE TABLE `rdv_planning_to_residences` ( `id_rdv_planning` MEDIUMINT NOT NULL , `id_residence` MEDIUMINT NOT NULL ) ENGINE = InnoDB; CREATE TABLE `rdv_planning` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `nom` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `duree_preavis` MEDIUMINT NOT NULL , `duree_autoriser` MEDIUMINT NOT NULL , `duree_fixation` MEDIUMINT NOT NULL , `nb_ressources` MEDIUMINT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `rdv_parametres_horaires` CHANGE `idRdvParametres` `idRdvParametres` INT(11) NULL; ALTER TABLE `rdv_parametres_horaires` ADD `idRdvPlanning` MEDIUMINT NULL AFTER `idRdvParametres`; ALTER TABLE `rdv_parametres_gestion_ressources` CHANGE `idRdvParametres` `idRdvPlanning` MEDIUMINT NOT NULL; ALTER TABLE `rdv_planning_to_residences` ADD `actif` BOOLEAN NOT NULL DEFAULT TRUE AFTER `id_residence`; DROP TABLE rdv_residence_parametres; DROP TABLE rdv_parametres_glob; DROP TABLE rdv_parametres; ALTER TABLE `edl_modele` ADD `enabled` BOOLEAN NOT NULL DEFAULT TRUE AFTER `id_type_logement`; -- -- 26-11-2018 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Afficher type archivage colis', 'liste-btn-option-archive-colis', 'bouton', '1'); -- -- 06-12-2018 -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Durée général', 'zfcadmin/dureegeneral', 'menu', '4'); -- -- 10-12-2018 mystats -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'MyStat', 'systeme-tab-mystats', 'menu', 7); -- -------------------------------------------------------- -- -- Structure de la table `mystats` -- CREATE TABLE IF NOT EXISTS `mystats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nomStat` varchar(255) NOT NULL, `dateDebut` date NOT NULL, `dateFin` date NOT NULL, `typeStat` enum('presents','entrees','sortis') NOT NULL, `idChamp` int(11) NOT NULL, `modeCalcul` enum('pdossiers','plogements','ndossiers') NOT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -------------------------------------------------------- -- -- Structure de la table `mystats_profile` -- CREATE TABLE IF NOT EXISTS `mystats_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idMyStat` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -------------------------------------------------------- -- -- Structure de la table `mystats_seuils` -- CREATE TABLE IF NOT EXISTS `mystats_seuils` ( `id` int(11) NOT NULL AUTO_INCREMENT, `seuil_1` int(11) NOT NULL, `seuil_2` int(11) NOT NULL, `valeur` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `mystats_seuils` ADD `idMyStat` INT NOT NULL ; ALTER TABLE `mystats_seuils` ADD `idResidence` INT NOT NULL ; -- -- 17-12-2018 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'MyStats', 'dashboard/mystats', 'bouton', '83'); -- -- RM 17/12/18 -- ALTER TABLE `rdv_planning` ADD `duree` MEDIUMINT NOT NULL AFTER `nom`; -- -- 19-12-2018 FTH -- INSERT INTO `api_paiement` (`id`, `nom`, `className`, `active`) VALUES (4, 'Mercanet BNP V2', 'MercanetV2', '0'); INSERT INTO `api_setting` (`id`, `nom`, `cle`, `valeur`, `idAPI`) VALUES (null, 'currencyCode', 'currencyCode', '978', 4), (null, 'keyVersion', 'keyVersion', '1', 4), (null, 'merchantId', 'merchantId', '211000021310001', 4), (null, 'normalReturnUrl', 'normalReturnUrl', 'http://51.255.170.135:4022/mon-compte', 4), (null, 'automaticResponseUrl', 'automaticResponseUrl', 'http://51.255.170.135:4022/autoresponse', 4), (null, 'secretKey', 'secretKey', 'S9i8qClCnb2CZU3y3Vn0toIOgz3z_aBi79akR30vM9o', 4), (null, 'payPage POST URL', 'postURL', 'https://payment-webinit-mercanet.test.sips-atos.com/paymentInit', 4), (null, 'Interface Version', 'interfaceVersion', 'HP_2.20', 4); -- -- 24-12-2018 FTH -- ALTER TABLE `mystats` CHANGE `idChamp` `idChamp` VARCHAR(255) NOT NULL; -- -- 25-12-2018 FTH -- ALTER TABLE `liens_config` ADD `typeLien` VARCHAR(255) NOT NULL DEFAULT 'url' ; -- -- 26-12-2018 FTH -- -- -- Structure de la table `categorie_champs` -- CREATE TABLE IF NOT EXISTS `categorie_champs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `categorie` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `categorie_champs_profile` -- CREATE TABLE IF NOT EXISTS `categorie_champs_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idCategorie` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- ------------------------------------------------------ -- -- Structure de la table `champs_par_cats` -- CREATE TABLE IF NOT EXISTS `champs_par_cats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `champName` varchar(255) NOT NULL, `idCategorie` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Champs listes', 'systeme-tab-champs', 'menu', 7); -- -- 03-01-2019 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'campagneNextResa', 'Campagne prochaine résa', '2', '30', '100', 'campagneNextResa', 'campagnes', '3', '0', ''); -- -- 04-01-2019 FTH -- INSERT INTO `type_liste` (`id`, `type`) VALUES ('16', 'Désistements validés'); -- -- 08-01-2019 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dureeSejour', 'Durée de séjour', '2', '30', '100', 'dureeSejour', '', '5', '0', ''); -- -- 10-01-2019 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Filtre bandeau', 'systeme-tab-filtres', 'menu', 7); -- -- Structure de la table `filtre_bandeau` -- CREATE TABLE IF NOT EXISTS `filtre_bandeau` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libelle` varchar(255) NOT NULL, `equivalentSql` varchar(255) DEFAULT NULL, `etat` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Contenu de la table `filtre_bandeau` -- INSERT INTO `filtre_bandeau` (`id`, `libelle`, `equivalentSql`, `etat`) VALUES (1, 'Filtre Bandeau', NULL, 0), (2, 'Site', 'idResidence', 0), (3, 'Bâtiment', 'idBatiment', 0), (4, 'Campagne', 'idCampagne', 0), (5, 'Canal', 'idProgramme', 0), (6, 'Sous canal', 'idSousProgramme', 0); -- -- 15-01-2019 FTH -- ALTER TABLE `user` ADD `user_type` TINYINT NULL; -- -- Structure de la table `type_user` -- CREATE TABLE IF NOT EXISTS `type_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(255) NOT NULL, `codeType` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Contenu de la table `type_user` POUR AMLI -- INSERT INTO `type_user` (`id`, `type`, `codeType`) VALUES (1, 'Travailleur Social', 'TS'); ALTER TABLE `champs_de_base` ADD `critere` VARCHAR(255) NULL ; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`,`critere`) VALUES (NULL, 'Référent', 'int(1)', 'idUser', 'reservations', 'user', '1', '3','{"codeType":"TS"}'); ALTER TABLE `reservations` ADD `idUser` INT NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idUser', 'Référent', '2', '30', '100', 'idUser', 'user', '3', '1', 'reservations'); -- -- 18-01-2019 CAF -- -- -- -------------------------------------------------------- -- -- Structure de la table `caf` -- CREATE TABLE IF NOT EXISTS `caf` ( `id` int(11) NOT NULL, `code` varchar(3) NOT NULL, `libelle` varchar(50) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8; -- -- Contenu de la table `caf` -- INSERT INTO `caf` (`id`, `code`, `libelle`) VALUES (1, '011', 'CAF de l''Ain'), (2, '028', 'CAF de l''Aisne'), (3, '031', 'CAF de l''Allier'), (4, '041', 'CAF des Alpes de Haute-Provence'), (5, '051', 'CAF des Hautes-Alpes'), (6, '061', 'CAF des Alpes-Maritimes'), (7, '078', 'CAF de l''Ardèche'), (8, '081', 'CAF des Ardennes'), (9, '091', 'CAF de l''Ariège'), (10, '101', 'CAF de l''Aube'), (11, '111', 'CAF de l''Aude'), (12, '121', 'CAF de l''Aveyron'), (13, '131', 'CAF des Bouches-Du-Rhône'), (14, '141', 'CAF du Calvados'), (15, '151', 'CAF du Cantal'), (16, '161', 'CAF de la Charente'), (17, '171', 'CAF de la Rochelle'), (18, '172', 'Caisse Maritime D''AF'), (19, '181', 'CAF du Cher'), (20, '191', 'CAF de la Corrèze'), (21, '201', 'CAF de Corse du Sud'), (22, '202', 'CAF de la Haute-Corse'), (23, '211', 'CAF de la Côte d''Or'), (24, '221', 'CAF des Côtes d''Armor'), (25, '231', 'CAF de la Creuse'), (26, '241', 'CAF de la Dordogne'), (27, '253', 'CAF du Doubs'), (28, '261', 'CAF de la Drôme'), (29, '271', 'CAF de l''Eure'), (30, '281', 'CAF de l''Eure-et-Loir'), (31, '293', 'CAF du Finistère'), (32, '301', 'CAF du Gard'), (33, '311', 'CAF de la Haute-Garonne'), (34, '321', 'CAF du Gers'), (35, '331', 'CAF de la Gironde'), (36, '348', 'CAF de l''Hérault'), (37, '351', 'CAF de l''Ile-et-Vilaine'), (38, '361', 'CAF de l''Indre'), (39, '371', 'CAF Touraine'), (40, '388', 'CAF de l''Isère'), (41, '391', 'CAF du Jura'), (42, '401', 'CAF des Landes'), (43, '411', 'CAF de Loir-et-Cher'), (44, '428', 'CAF de la Loire'), (45, '431', 'CAF de la Haute-Loire'), (46, '441', 'CAF de Loire-Atlantique'), (47, '451', 'CAF du Loiret'), (48, '461', 'CAF du Lot'), (49, '471', 'CAF de Lot-et-Garonne'), (50, '481', 'CAF de la Lozère'), (51, '493', 'CAF de Maine-et-Loire'), (52, '501', 'CAF de la Manche'), (53, '511', 'CAF de la Marne'), (54, '521', 'CAF de la Haute-Marne'), (55, '531', 'CAF de la Mayenne'), (56, '541', 'CAF de la Meurthe-et-Moselle'), (57, '551', 'CAF de la Meuse'), (58, '561', 'CAF du Morbihan'), (59, '571', 'CAF de la Moselle'), (60, '581', 'CAF de la Nièvre'), (61, '598', 'CAF du Nord'), (62, '608', 'CAF de l''Oise'), (63, '611', 'CAF de l''Orne'), (64, '623', 'CAF du Pas de Calais'), (65, '631', 'CAF du Puy-de-Dôme'), (66, '641', 'CAF de Bayonne'), (67, '642', 'CAF de Pau'), (68, '651', 'CAF des Hautes-Pyrénées'), (69, '661', 'CAF des Pyrénées-Orientales'), (70, '671', 'CAF du Bas-Rhin'), (71, '681', 'CAF du Haut-Rhin'), (72, '698', 'CAF du Rhône'), (73, '701', 'CAF de la Haute-Saône'), (74, '711', 'CAF de la Saône-et-Loire'), (75, '721', 'CAF de la Sarthe'), (76, '731', 'CAF de la Savoie'), (77, '741', 'CAF de la Haute Savoie'), (78, '751', 'CAF de Paris'), (79, '768', 'CAF de Seine Maritime'), (80, '771', 'CAF de Seine-et-Marne'), (81, '781', 'CAF des Yvelines'), (82, '791', 'CAF des Deux-Sèvres'), (83, '801', 'CAF de la Somme'), (84, '811', 'CAF du Tarn'), (85, '821', 'CAF de Tarn-et-Garonne'), (86, '831', 'CAF du Var'), (87, '841', 'CAF du Vaucluse'), (88, '851', 'CAF de la Vendée'), (89, '861', 'CAF de la Vienne'), (90, '871', 'CAF de la Haute-Vienne'), (91, '881', 'CAF des Vosges'), (92, '891', 'CAF de l''Yonne'), (93, '901', 'CAF du Territoire de Belfort'), (94, '911', 'CAF de l''Essonne'), (95, '921', 'CAF des Hauts-de-Seine'), (96, '931', 'CAF de Seine-Saint-Denis'), (97, '941', 'CAF du Val-de-Marne'), (98, '951', 'CAF du Val d''Oise'), (99, '961', 'RATP'), (100, '962', 'SNCF'), (101, '971', 'CAF de la Guadeloupe'), (102, '972', 'CAF de la Martinique'), (103, '973', 'CAF de la Guyane'), (104, '974', 'CAF de la Réunion'), (105, '976', 'MAYOTTE géré par CAF de la Réunion'); -- -------------------------------------------------------- -- -- Structure de la table `caf_demande_ideal` -- CREATE TABLE IF NOT EXISTS `caf_demande_ideal` ( `id` int(11) NOT NULL, `nom` varchar(50) NOT NULL, `prenom` varchar(30) NOT NULL, `code_caf_demande` varchar(5) NOT NULL, `code_site_demande` varchar(10) NOT NULL, `etat_demande` varchar(10) NOT NULL, `date_demande` datetime(6) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Index pour les tables exportées -- -- -- Index pour la table `caf` -- ALTER TABLE `caf` ADD PRIMARY KEY (`id`); -- -- Index pour la table `caf_demande_ideal` -- ALTER TABLE `caf_demande_ideal` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `caf` -- ALTER TABLE `caf` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=106; -- -- AUTO_INCREMENT pour la table `caf_demande_ideal` -- ALTER TABLE `caf_demande_ideal` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- ----- FIN CAF -- -- -- RM --Domiciliation -- ALTER TABLE `campagnes` ADD `type` MEDIUMINT NULL AFTER `dateExercice`; ALTER TABLE `campagnes` CHANGE `type` `type` MEDIUMINT(9) NULL DEFAULT '1'; CREATE TABLE `campagnes_type` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `libelle` VARCHAR(100) NOT NULL , `code` ENUM('cs','dp', 'reservation', '') NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `campagnes_type` (`id`, `libelle`, `code`) VALUES (NULL, 'Court Séjour', 'cs'); INSERT INTO `campagnes_type` (`id`, `libelle`, `code`) VALUES (NULL, 'Domiciliation postale', 'dp'); INSERT INTO `campagnes_type` (`id`, `libelle`, `code`) VALUES (NULL, 'Réservation', 'reservation'); CREATE TABLE `campagnes_domiciliation` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `dateEntree` DATE NOT NULL , `dateSortie` DATE NULL , `etat` ENUM('Accueilli', 'Suspendu','NPAI', '') NULL DEFAULT 'Accueilli', `idLocataire` MEDIUMINT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci CREATE TABLE `domiciliation_type` ( `id` TINYINT NOT NULL AUTO_INCREMENT , `libelle` VARCHAR(100) NOT NULL , `code` ENUM('sdf','da','','') NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; INSERT INTO `domiciliation_type` (`id`, `libelle`, `code`) VALUES (NULL, 'Sans domicile fixe', 'sdf'), (NULL, 'Demandeur d''asile', 'da'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date d''entrée', 'date', 'dateEntree', 'campagnes_domiciliation', NULL, '4', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date de sortie', 'date', 'dateSortie', 'campagnes_domiciliation', NULL, '4', '2', NULL); -- -- RM --Menu Financier sous menu général -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Financier', 'zfcadmin/financier', 'menu', '4'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Financier', 'financier', 'Reservation\\Controller\\Financier', 'index', '30'); ALTER TABLE `edl_base_article` CHANGE `id` `id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT; DROP TABLE prestations; CREATE TABLE `prestations` ( `id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `code` VARCHAR(6) NOT NULL , `description` VARCHAR(50) NULL , `unite` ENUM('F','J','M','U') NOT NULL , `montant` FLOAT NOT NULL , `codePMS` VARCHAR(4) NOT NULL , `surDevis` BOOLEAN NOT NULL, PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `prestations_to_types` ( `id_prestations` SMALLINT UNSIGNED NOT NULL , `id_types` TINYINT UNSIGNED NOT NULL ) ENGINE = InnoDB; CREATE TABLE `prestations_types` ( `id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT, `code` VARCHAR(6) NOT NULL , `description` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `prestations_to_base_articles` ( `id_prestations` SMALLINT UNSIGNED NOT NULL , `id_base_article` SMALLINT UNSIGNED NOT NULL , `montant` FLOAT NULL ) ENGINE = InnoDB; INSERT INTO `prestations` (`id`, `code`, `description`, `unite`, `montant`, `codePMS`, `surDevis`) VALUES (NULL, 'DEG', 'degradation', 'F', '50', 'DEG', '1'); ALTER TABLE `prestations` ADD `deleted` BOOLEAN NOT NULL DEFAULT FALSE AFTER `surDevis`; INSERT INTO `prestations_to_types` (`id_prestations`, `id_types`) VALUES ('1', '1'); INSERT INTO `prestations_types` (`id`, `code`, `description`) VALUES (NULL, 'ART', 'Article'); -- -- 18-01-2019 FTH RESSOURCES -- ALTER TABLE `logements` ADD `idTypePlafond` TINYINT NULL ; ALTER TABLE `residences` ADD `idZonePLAI` TINYINT NULL ; -- -- Structure de la table `plai_categories` -- CREATE TABLE IF NOT EXISTS `plai_categories` ( `id` tinyint(4) NOT NULL AUTO_INCREMENT, `categorie` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `plai_plafonds` -- CREATE TABLE IF NOT EXISTS `plai_plafonds` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idCategoriePLAI` tinyint(4) NOT NULL, `idZonePLAI` tinyint(4) NOT NULL, `montantPlafond` float NOT NULL, `pourcentageMin` smallint(6) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `plai_ressources` -- CREATE TABLE IF NOT EXISTS `plai_ressources` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idResa` int(11) NOT NULL, `ressN` float NOT NULL DEFAULT '0', `ressN-1` float NOT NULL DEFAULT '0', `ressN-2` float NOT NULL DEFAULT '0', `ressN-3` float NOT NULL DEFAULT '0', `ressN-4` float NOT NULL DEFAULT '0', `depassN` float NOT NULL DEFAULT '0', `depassN-1` float NOT NULL DEFAULT '0', `depassN-2` float NOT NULL DEFAULT '0', `depassN-3` float NOT NULL DEFAULT '0', `depassN-4` float NOT NULL DEFAULT '0', `nbrPersN` tinyint(4) NOT NULL DEFAULT '0', `nbrPersN-1` tinyint(4) NOT NULL DEFAULT '0', `nbrPersN-2` tinyint(4) NOT NULL DEFAULT '0', `nbrPersN-3` tinyint(4) NOT NULL DEFAULT '0', `nbrPersN-4` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN-1` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN-2` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN-3` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN-4` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `plai_type_plafonds` -- CREATE TABLE IF NOT EXISTS `plai_type_plafonds` ( `id` tinyint(4) NOT NULL AUTO_INCREMENT, `typePlafond` varchar(255) NOT NULL, `codePlafond` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `plai_zones` -- CREATE TABLE IF NOT EXISTS `plai_zones` ( `id` tinyint(4) NOT NULL AUTO_INCREMENT, `zone` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Ressources', 'systeme-tab-ressources', 'menu', 7); ALTER TABLE `plai_plafonds` ADD `idTypePLAI` TINYINT NOT NULL AFTER `idZonePLAI`; ALTER TABLE `plai_plafonds` ADD `annee` INT NOT NULL ; -- -- 24-01-2019 FTH -- ALTER TABLE `programme_campagne` ADD `dateArriveePasser` TINYINT(1) NULL ; UPDATE `champs` SET `idTheme` = '2' WHERE `champs`.`code` = 'remiseDesCles'; -- -- 28-01-2019 FTH -- ALTER TABLE `configuration` ADD `afficherTradChampsBO` TINYINT NOT NULL DEFAULT '0' COMMENT 'Affichage des traduction des champs formulaire cote BO' ; -- -- 28-01-2019 FTH PLAI -- INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_idTypePlafond', 'Type plafond', 1, 1, 100, 'idTypePlafond', 'plai_type_plafonds', 3, 1, 'logements'); INSERT INTO `type_liste` (`id`, `type`) VALUES ('17', 'Plafonds de ressources'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mise à jour des ressources', 'liste-btn-maj-ressources', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Annuler mise à jour des ressources', 'liste-btn-cancel-maj-ressources', 'bouton', '1'); DROP TABLE `plai_ressources`; -- -- Structure de la table `plai_ressources` -- CREATE TABLE IF NOT EXISTS `plai_ressources` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idResa` int(11) NOT NULL, `ressN` float NOT NULL DEFAULT '0', `ressN_1` float NOT NULL DEFAULT '0', `ressN_2` float NOT NULL DEFAULT '0', `ressN_3` float NOT NULL DEFAULT '0', `ressN_4` float NOT NULL DEFAULT '0', `depassN` float NOT NULL DEFAULT '0', `depassN_1` float NOT NULL DEFAULT '0', `depassN_2` float NOT NULL DEFAULT '0', `depassN_3` float NOT NULL DEFAULT '0', `depassN_4` float NOT NULL DEFAULT '0', `nbrPersN` tinyint(4) NOT NULL DEFAULT '0', `nbrPersN_1` tinyint(4) NOT NULL DEFAULT '0', `nbrPersN_2` tinyint(4) NOT NULL DEFAULT '0', `nbrPersN_3` tinyint(4) NOT NULL DEFAULT '0', `nbrPersN_4` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN_1` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN_2` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN_3` tinyint(4) NOT NULL DEFAULT '0', `nbrPersChargeN_4` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'ressN', 'Ressouces N', '7', '30', '100', 'ressN', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'ressN_1', 'Ressouces N-1', '7', '30', '100', 'ressN_1', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'ressN_2', 'Ressouces N-2', '7', '30', '100', 'ressN_2', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'ressN_3', 'Ressouces N-3', '7', '30', '100', 'ressN_3', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'ressN_4', 'Ressouces N-4', '7', '30', '100', 'ressN_4', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'depassN', 'Dépassement N', '7', '30', '100', 'depassN', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'depassN_1', 'Dépassement N-1', '7', '30', '100', 'depassN_1', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'depassN_2', 'Dépassement N-2', '7', '30', '100', 'depassN_2', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'depassN_3', 'Dépassement N-3', '7', '30', '100', 'depassN_3', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'depassN_4', 'Dépassement N-4', '7', '30', '100', 'depassN_4', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersN', 'Nombre de pseronnes N', '7', '30', '100', 'nbrPersN', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersN_1', 'Nombre de pseronnes N-1', '7', '30', '100', 'nbrPersN_1', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersN_2', 'Nombre de pseronnes N-2', '7', '30', '100', 'nbrPersN_2', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersN_3', 'Nombre de pseronnes N-3', '7', '30', '100', 'nbrPersN_3', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersN_4', 'Nombre de pseronnes N-4', '7', '30', '100', 'nbrPersN_4', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersChargeN', 'Nombre de personnes à charge N', '7', '30', '100', 'nbrPersChargeN', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersChargeN_1', 'Nombre de personnes à charge N-1', '7', '30', '100', 'nbrPersChargeN_1', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersChargeN_2', 'Nombre de personnes à charge N-2', '7', '30', '100', 'nbrPersChargeN_2', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersChargeN_3', 'Nombre de personnes à charge N-3', '7', '30', '100', 'nbrPersChargeN_3', '', '5', '0', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersChargeN_4', 'Nombre de personnes à charge N-4', '7', '30', '100', 'nbrPersChargeN_4', '', '5', '0', 'plai_ressources'); ALTER TABLE `plai_ressources` ADD `ressN_5` FLOAT NULL DEFAULT '0' AFTER `ressN_4`; ALTER TABLE `plai_ressources` ADD `depassN_5` FLOAT NULL DEFAULT '0' AFTER `depassN_4`; ALTER TABLE `plai_ressources` ADD `nbrPersN_5` tinyint(4) NULL DEFAULT '0' AFTER `nbrPersN_4`; ALTER TABLE `plai_ressources` ADD `nbrPersChargeN_5` tinyint(4) NULL DEFAULT '0' AFTER `nbrPersChargeN_4`; -- -- 30-01-2019 FTH PLAI STATS -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Plafonds ressources', 'zfcadmin/ressources', 'menu', '71'); -- -- 31-01-2019 FTH PAjout champs de base logement -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Logement', 'int(1)', 'idLogement', 'reservations', 'logements', '1', '3', NULL); -- -- 01-02-2019 FTH -- ALTER TABLE `plai_categories` ADD `nbrPersonnesTotal` INT NOT NULL DEFAULT '0' ; -- -- 08-02-2019 FTH PLAI -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Plafonds ressources (Stat)', 'dashboard/ressources', 'bouton', '83'); UPDATE `champs` SET `afficher` = 1 WHERE `table` LIKE '%plai_%'; -- -- 11-02-2019 FTH PLAI -- ALTER TABLE `plai_categories` ADD `nbrPersonnesACharge` INT NOT NULL DEFAULT '0' ; -- -- 18-02-2019 FTH MyStats -- ALTER TABLE `mystats` ADD `sensConfig` TEXT NULL ; -- -- Structure de la table `formulaires_profile` -- -- executer le script /admin/tarif/majformprofils pour affecter tous les formulaires à tous les profils d'utilisateur -- CREATE TABLE IF NOT EXISTS `formulaires_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idFormulaire` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `edl` CHANGE `remise_des_cles` `remise_des_cles_old` ENUM('','attente','remis','factures','coffre') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `plai_ressources` ADD `ressEntree` FLOAT NULL DEFAULT '0' ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'ressEntree', 'Ressource entrée', '7', '30', '100', 'ressEntree', '', '5', '1', 'plai_ressources'); ALTER TABLE `plai_plafonds` DROP `pourcentageMin`; -- -- 21-02-2019 FTH ressource entree -- ALTER TABLE `plai_ressources` ADD `depassEntree` FLOAT NOT NULL DEFAULT '0' , ADD `nbrPersEntree` TINYINT NOT NULL DEFAULT '0' , ADD `nbrPersChargeEntree` TINYINT NOT NULL DEFAULT '0' ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'depassEntree', 'Dépassement entrée', '7', '30', '100', 'depassEntree', '', '5', '1', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersEntree', 'Nombre de pseronnes entrée', '7', '30', '100', 'nbrPersEntree', '', '5', '1', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPersChargeEntree', 'Nombre de personnes à charge entrée', '7', '30', '100', 'nbrPersChargeEntree', '', '5', '1', 'plai_ressources'); -- -- 11/03/2019 AK : divers oublis de majsql -- SHOW INDEX FROM `champs_formulaires`; ALTER TABLE `champs_formulaires` ADD KEY `name` (`name`); SHOW INDEX FROM `champs_formulaires`; SHOW INDEX FROM `demandes`; ALTER TABLE `demandes` ADD KEY `idResa` (`idResa`); ALTER TABLE `demandes` ADD KEY `idLogement` (`idLogement`); SHOW INDEX FROM `demandes`; SHOW INDEX FROM `formulaires`; ALTER TABLE `formulaires` ADD KEY `idCampagne` (`idCampagne`); ALTER TABLE `formulaires` ADD KEY `active` (`active`); SHOW INDEX FROM `formulaires`; SHOW INDEX FROM `logements`; ALTER TABLE `logements` ADD KEY `idBatiment` (`idBatiment`); ALTER TABLE `logements` ADD KEY `idTypeLogement` (`idTypeLogement`); ALTER TABLE `logements` ADD KEY `idPMS` (`idPMS`); SHOW INDEX FROM `logements`; SHOW INDEX FROM `residences`; ALTER TABLE `residences` ADD KEY `idPMS` (`idPMS`); SHOW INDEX FROM `residences`; SHOW INDEX FROM `valeurs_dynamiques`; ALTER TABLE `valeurs_dynamiques` ADD KEY `idReservation` (`idReservation`); SHOW INDEX FROM `valeurs_dynamiques`; -- -- 06-03-2019 FTH ajout type mail EDL PDF -- INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES (NULL, 'EDL PDF', NULL, 1, NULL, NULL,0,'edl_pdf'); -- -- 18-03-2019 FTH -- UPDATE `champs` SET `table` = NULL WHERE `champs`.`code` LIKE 'totalFrais'; -- -- RM 21-03-2019 -- ALTER TABLE `edl_cat` ADD `id_edl_modele_cat` MEDIUMINT NULL AFTER `nom_en`; ALTER TABLE `edl_sous_cat` ADD `id_edl_modele_sous_cat` MEDIUMINT NULL AFTER `nom_en`; ALTER TABLE `edl_article` ADD `id_edl_modele_article` MEDIUMINT NULL AFTER `changement`; -- -- RM 01-04-2019 -- ALTER TABLE `edl_parametres` ADD `afficher_label_prestations` TINYINT NOT NULL DEFAULT '0' AFTER `edl_modele_pied_de_page`; -- -- 09-04-2019 -- UPDATE `champs` SET `idTypeHtml` = 5 WHERE `champs`.`code` LIKE 'totalFrais'; -- -- 10-04-2019 RM (duplicate entry) -- ALTER TABLE `edl_prestations` CHANGE `id` `id` INT(11) NOT NULL AUTO_INCREMENT; -- -- 26-03-2019 FTH PRESTA -- ALTER TABLE `prestations` ADD `modePrestation` ENUM('fixe','calcule') NOT NULL DEFAULT 'fixe' AFTER `surDevis`; -- -- Structure de la table `prestations_conditions` -- CREATE TABLE IF NOT EXISTS `prestations_conditions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libelle` VARCHAR(255) NULL, `idChamp` VARCHAR(255) NOT NULL, `typeValeur` enum('exact','interval') NOT NULL, `operateur` tinyint(1) NOT NULL, `valeurExact` varchar(255) DEFAULT NULL, `valeurMin` varchar(255) DEFAULT NULL, `valeurMax` varchar(255) DEFAULT NULL, `champDebut` VARCHAR(255) DEFAULT NULL, `champFin` VARCHAR(255) DEFAULT NULL, `unite` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `prestations_duree_sejour` -- CREATE TABLE IF NOT EXISTS `prestations_duree_sejour` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dureeSejourMin` int(11) NOT NULL DEFAULT '0', `uniteDSMin` enum('day','week','month','year') NOT NULL, `dureeSejourMax` int(11) NOT NULL DEFAULT '0', `uniteDSMax` enum('day','week','month','year') NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `prestations_formules` -- CREATE TABLE IF NOT EXISTS `prestations_formules` ( `id` int(11) NOT NULL AUTO_INCREMENT, `val_1` float NOT NULL DEFAULT '0', `typeVal_1` VARCHAR(255) NOT NULL, `val_2` float NOT NULL DEFAULT '0', `typeVal_2` VARCHAR(255) NOT NULL, `val_3` float NOT NULL DEFAULT '0', `typeVal_3` VARCHAR(255) NOT NULL, `val_4` float NOT NULL DEFAULT '0', `typeVal_4` VARCHAR(255) NOT NULL, `oper_1` varchar(1) NOT NULL, `oper_2` varchar(1) NOT NULL, `idPeriode` int(11) NOT NULL, `idDureeSejour` int(11) NOT NULL, `idCondition` int(11) NOT NULL, `idPrestation` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `prestations_periodes` -- CREATE TABLE IF NOT EXISTS `prestations_periodes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dateDebutPeriode` date NOT NULL, `dateFinPeriode` date NOT NULL, `joursInclus` varchar(30) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `prestations_conditions` ADD `idCondition` INT NOT NULL ; ALTER TABLE `prestations_conditions` ADD `operateurLogique` ENUM('AND','OR') NULL ; ALTER TABLE `prestations_formules` ADD `libelleFormule` VARCHAR(255) NOT NULL AFTER `id`; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Affecter prestations', 'liste-btn-prestations', 'bouton', '1'); -- -- Structure de la table `prestations_to_resa` -- CREATE TABLE IF NOT EXISTS `prestations_to_resa` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idPrestation` int(11) NOT NULL, `idReservation` int(11) NOT NULL, `montantPrestation` FLOAT NOT NULL DEFAULT '0', `etatPrestation` VARCHAR(255) NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'prestation', 'Prestation', '2', '30', '100', 'prestation', '', '1', '0', null); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPrestation', 'Montant prestation', '2', '30', '100', 'montantPrestation', '', '5', '0', null); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatPrestation', 'Etat prestation', '2', '30', '100', 'etatPrestation', '', '1', '0', null); -- AK 29-03-2019 -- INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (14, 'Téléphone', 'Text', '2'); -- AK 16-04-2019 : encore des oublis -- ALTER TABLE `champs_formulaires_apipms` CHANGE `actionPMS` `actionPMS` enum('Value2Value','Id2Id','Id2Value','Document') NOT NULL DEFAULT 'Value2Value'; ALTER TABLE `champs_formulaires_apipms` ADD `keyPMS` varchar(100) NOT NULL AFTER `tablePMS`; ALTER TABLE `champs_formulaires` ADD UNIQUE KEY `id` (`id`); DROP TABLE IF EXISTS `reservations_locataires_logements`; DROP VIEW IF EXISTS `reservations_locataires_logements`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `reservations_locataires_logements` AS select `civilites`.`nom` AS `civilite`,`locataires`.`nom` AS `nom`,`locataires`.`prenom` AS `prenom`,`locataires`.`email` AS `email`,`locataires`.`telephone` AS `telephone`,`locataires`.`telephoneMobile` AS `telephoneMobile`,`reservations`.`dateDemandeReservation` AS `dateDemandeReservation`,`etat_reservation`.`nom` AS `etatReservation`,`reservations`.`dateArrivee` AS `dateArrivee`,`reservations`.`dateDepart` AS `dateDepart`,`typeLogementAttribue`.`nom` AS `nomTypeLogementAttribue`,`typeLogementReel`.`nom` AS `nomTypeLogementReel`,`logements`.`nom` AS `nomLogement`,`logements`.`numero` AS `numeroLogement`,`batiments`.`nom` AS `nomBatiment`,`residences`.`nom` AS `nomResidence`,`reservations`.`idLocataire` AS `idLocataire`,`reservations`.`id` AS `idResa`,`reservations`.`idPMS` AS `resaIdPMS`,`typeLogementAttribue`.`id` AS `idTypeLogementAttribue`,`typeLogementReel`.`id` AS `idTypeLogementReel`,`logements`.`id` AS `idLogement`,`batiments`.`id` AS `idBatiment`,`residences`.`id` AS `idResidence`,`reservations`.`archive` AS `archive` from ((((((((`reservations` left join `locataires` on((`locataires`.`id` = `reservations`.`idLocataire`))) left join `civilites` on((`civilites`.`id` = `locataires`.`civilite`))) left join `etat_reservation` on((`etat_reservation`.`id` = `reservations`.`etat`))) left join `type_logement` `typeLogementAttribue` on((`typeLogementAttribue`.`id` = `reservations`.`idTypeLogementAttribue`))) left join `logements` on((`logements`.`id` = `reservations`.`idLogement`))) left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) left join `type_logement` `typeLogementReel` on((`typeLogementReel`.`id` = `logements`.`idTypeLogement`))) where (1 and (`reservations`.`etat` in (1,7,10))) order by `locataires`.`nom`,`locataires`.`prenom`,`locataires`.`email`,`locataires`.`id`,`reservations`.`id`,`reservations`.`dateDemandeReservation`; -- -------------------------------------------------------- -- -- Structure de la vue `valeurs_dynamiques_formulaires` -- DROP TABLE IF EXISTS `valeurs_dynamiques_formulaires`; DROP VIEW IF EXISTS `valeurs_dynamiques_formulaires`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `valeurs_dynamiques_formulaires` AS select `locataires`.`nom` AS `nomLocataire`,`locataires`.`prenom` AS `prenomLocataire`,`reservations`.`etat` AS `etatResa`,`valeurs_dynamiques`.`idChamp` AS `idChampForm`,`champs_formulaires`.`equivalentSql` AS `nomChampForm`,`champs_formulaires`.`idFormulaire` AS `idFormulaire`,`valeurs_dynamiques`.`valeur` AS `valeur`,`valeurs_dynamiques`.`idLocataire` AS `idLocataire`,`valeurs_dynamiques`.`idReservation` AS `idReservation`,`champs_formulaires`.`id` AS `idChampFormulaire`,`valeurs_dynamiques`.`id` AS `idValeurDynamique` from (((`valeurs_dynamiques` left join `champs_formulaires` on((`champs_formulaires`.`id` = `valeurs_dynamiques`.`idChamp`))) left join `locataires` on((`locataires`.`id` = `valeurs_dynamiques`.`idLocataire`))) left join `reservations` on((`reservations`.`id` = `valeurs_dynamiques`.`idReservation`))); -- -------------------------------------------------------- -- -- Structure de la vue `valeurs_dynamiques_formulaires_avecPMS` -- DROP TABLE IF EXISTS `valeurs_dynamiques_formulaires_avecPMS`; DROP VIEW IF EXISTS `valeurs_dynamiques_formulaires_avecPMS`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `valeurs_dynamiques_formulaires_avecPMS` AS select `locataires`.`id` AS `idLocataire`,`locataires`.`nom` AS `nomLocataire`,`locataires`.`prenom` AS `prenomLocataire`,`reservations`.`id` AS `idResa`,`reservations`.`dateDemandeReservation` AS `dateDemandeReservation`,`valeurs_dynamiques`.`idChamp` AS `champId`,`champs_formulaires`.`name` AS `champName`,`valeurs_dynamiques`.`valeur` AS `valeurWL`,`valeurs_select`.`valeur` AS `valeurSelectWL`,`champs_formulaires_apipms`.`idApiPms` AS `idApiPms`,`champs_formulaires_apipms`.`actionPMS` AS `actionPMS`,`champs_formulaires_apipms`.`tablePMS` AS `tablePMS`,`champs_formulaires_apipms`.`champPMS` AS `champPMS`,`champs_formulaires_apipms`.`keyPMS` AS `keyPMS`,`champs_formulaires_apipms`.`complPMS` AS `complPMS`,`champs_formulaires_apipms`.`valeurPMS` AS `valeurPMS`,`valeurs_select_apipms`.`tablePMS` AS `selectTablePMS`,`valeurs_select_apipms`.`valeurIdPMS` AS `selectValeurIdPMS`,`champs_formulaires`.`idType` AS `idType`,`champs_formulaires`.`idFormulaire` AS `idFormulaire`,`champs_formulaires`.`sourceListe` AS `sourceListe` from ((((((`valeurs_dynamiques` left join `reservations` on((`reservations`.`id` = `valeurs_dynamiques`.`idReservation`))) left join `locataires` on((`locataires`.`id` = `valeurs_dynamiques`.`idLocataire`))) left join `champs_formulaires` on((`champs_formulaires`.`id` = `valeurs_dynamiques`.`idChamp`))) left join `champs_formulaires_apipms` on((`champs_formulaires_apipms`.`champId` = `valeurs_dynamiques`.`idChamp`))) left join `valeurs_select` on(((`valeurs_select`.`id` = `valeurs_dynamiques`.`valeur`) and (`valeurs_select`.`idSelect` = `champs_formulaires`.`sourceListe`)))) left join `valeurs_select_apipms` on(((`valeurs_select_apipms`.`valeurId` = `valeurs_dynamiques`.`valeur`) and (`valeurs_select_apipms`.`idApiPms` = `champs_formulaires_apipms`.`idApiPms`)))) where (1 and (`champs_formulaires_apipms`.`idApiPms` > 0)) order by `locataires`.`nom`,`locataires`.`prenom`,`reservations`.`dateDemandeReservation`,`champs_formulaires`.`idFormulaire`,`champs_formulaires`.`name`; -- AK 19-04-2019 : Gestion des stocks court-séjour -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Stocks Court-séjour', 'zfcadmin/stockCS', 'menu', '4'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'StockCS', 'stockCS', 'Reservation\\Controller\\StockCS', 'index', '33'); CREATE TABLE IF NOT EXISTS `stockCS2campagne` ( `idStock` smallint(6) NOT NULL, `idCampagne` smallint(6) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `stockCS2logement` ( `idStock` smallint(5) unsigned NOT NULL, `idLogement` smallint(5) unsigned NOT NULL, `mixite` enum('Mixte','Feminin','Masculin') NOT NULL DEFAULT 'Mixte', `modeFamille` enum('Detail','Global') NOT NULL DEFAULT 'Detail' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `stocksCS` ( `id` smallint(5) unsigned NOT NULL, `nom` varchar(255) NOT NULL, `debutBlocage` date NOT NULL, `finBlocage` date NOT NULL, `modeAffectation` enum('demande','autoTypeLogement','autoLogement') NOT NULL DEFAULT 'demande', `deleted` enum('0','1') NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `stockCS2campagne` ADD UNIQUE KEY `idStock_idCampagne` (`idStock`,`idCampagne`) USING BTREE, ADD KEY `idStock` (`idStock`), ADD KEY `idCampagne` (`idCampagne`); ALTER TABLE `stockCS2logement` ADD UNIQUE KEY `idStock_idLogement` (`idStock`,`idLogement`), ADD KEY `idStock` (`idStock`), ADD KEY `idLogement` (`idLogement`), ADD KEY `mixite` (`mixite`), ADD KEY `modeFamille` (`modeFamille`); ALTER TABLE `stocksCS` ADD PRIMARY KEY (`id`), ADD KEY `deleted` (`deleted`), ADD KEY `modeAffectation` (`modeAffectation`), ADD KEY `debutBlocage` (`debutBlocage`), ADD KEY `finBlocage` (`finBlocage`); ALTER TABLE `stocksCS` MODIFY `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT; -- AK 20-04-2019 : Gestion des stocks court-séjour par campagne -- INSERT INTO `campagnes_type` (`id`, `libelle`, `code`) VALUES (0, 'Long Séjour', ''); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Campagnes-Stocks Court-Séjour', 'campagneStockCS', 'Reservation\\Controller\\Tarif', 'index', '3'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Stocks Court-séjour', 'zfcadmin/campagneStockCS', 'menu', '3'); -- AK 02-05-2019 : Gestion des campagnes short-resa -- INSERT INTO `modes_reservation` (`id`, `mode`) VALUES (4, 'Code Concours'); ALTER TABLE `batiments` ADD KEY `deleted` (`deleted`); ALTER TABLE `campagnes_type` ADD KEY `code` (`code`); ALTER TABLE `logements_periode_travaux` ADD KEY `idLogement` (`idLogement`), ADD KEY `dateDebutTravaux` (`dateDebutTravaux`), ADD KEY `dateFinTravaux` (`dateFinTravaux`), ADD KEY `userid` (`userid`); ALTER TABLE `residences` ADD KEY `deleted` (`deleted`); DROP TABLE IF EXISTS `reservations_locataires_logements`; DROP VIEW IF EXISTS `reservations_locataires_logements`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `reservations_locataires_logements` AS select `civilites`.`nom` AS `civilite`,`locataires`.`nom` AS `nom`,`locataires`.`prenom` AS `prenom`,`locataires`.`email` AS `email`,`locataires`.`telephone` AS `telephone`,`locataires`.`telephoneMobile` AS `telephoneMobile`,`reservations`.`dateDemandeReservation` AS `dateDemandeReservation`,`etat_reservation`.`nom` AS `etatReservation`,`reservations`.`dateArrivee` AS `dateArrivee`,`reservations`.`dateDepart` AS `dateDepart`,`typeLogementAttribue`.`nom` AS `nomTypeLogementAttribue`,`typeLogementReel`.`nom` AS `nomTypeLogementReel`,`logements`.`nom` AS `nomLogement`,`logements`.`numero` AS `numeroLogement`,`batiments`.`nom` AS `nomBatiment`,`residences`.`nom` AS `nomResidence`,`reservations`.`idLocataire` AS `idLocataire`,`reservations`.`id` AS `idResa`,`reservations`.`idPMS` AS `resaIdPMS`,`typeLogementAttribue`.`id` AS `idTypeLogementAttribue`,`typeLogementReel`.`id` AS `idTypeLogementReel`,`logements`.`id` AS `idLogement`,`batiments`.`id` AS `idBatiment`,`residences`.`id` AS `idResidence`,`reservations`.`archive` AS `archive` from ((((((((`reservations` left join `locataires` on((`locataires`.`id` = `reservations`.`idLocataire`))) left join `civilites` on((`civilites`.`id` = `locataires`.`civilite`))) left join `etat_reservation` on((`etat_reservation`.`id` = `reservations`.`etat`))) left join `type_logement` `typeLogementAttribue` on((`typeLogementAttribue`.`id` = `reservations`.`idTypeLogementAttribue`))) left join `logements` on((`logements`.`id` = `reservations`.`idLogement`))) left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) left join `type_logement` `typeLogementReel` on((`typeLogementReel`.`id` = `logements`.`idTypeLogement`))) where (1 and (`reservations`.`etat` in (1,2,3,7,10))) order by `locataires`.`nom`,`locataires`.`prenom`,`locataires`.`email`,`locataires`.`id`,`reservations`.`id`,`reservations`.`dateDemandeReservation`; -- AK 24-05-2019 : Gestion des campagnes short-resa -- INSERT INTO `type_liste` (`id`, `type`) VALUES (NULL, 'Arrivées Court-Séjour'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Arrivée Court-Séjour', 'planning-btn-arrivee-cs', 'bouton', '2'); -- AK 03-06-2019 : Limitation des droits d'un utilisateur pour des campagnes -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Attribution campagnes', 'user-campagnes', 'menu', '24'); -- Structure de la table `gestionnaire_campagnes` -- CREATE TABLE IF NOT EXISTS `gestionnaire_campagnes` ( `idGestionnaire` int(11) NOT NULL, `idCampagne` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `gestionnaire_campagnes` ADD PRIMARY KEY (`idGestionnaire`,`idCampagne`), ADD KEY `idGestionnaire` (`idGestionnaire`), ADD KEY `idCampagne` (`idCampagne`); -- AK 11-06-2019 : Ajout des infos de campagne et de programme pour la vue reservations_locataires_logements -- DROP TABLE IF EXISTS `reservations_locataires_logements`; DROP VIEW IF EXISTS `reservations_locataires_logements`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `reservations_locataires_logements` AS select `civilites`.`nom` AS `civilite`,`locataires`.`nom` AS `nom`,`locataires`.`prenom` AS `prenom`,`locataires`.`email` AS `email`,`locataires`.`telephone` AS `telephone`,`locataires`.`telephoneMobile` AS `telephoneMobile`,`reservations`.`dateDemandeReservation` AS `dateDemandeReservation`,`etat_reservation`.`nom` AS `etatReservation`,`reservations`.`dateArrivee` AS `dateArrivee`,`reservations`.`dateDepart` AS `dateDepart`,`typeLogementAttribue`.`nom` AS `nomTypeLogementAttribue`,`typeLogementReel`.`nom` AS `nomTypeLogementReel`,`logements`.`nom` AS `nomLogement`,`logements`.`numero` AS `numeroLogement`,`batiments`.`nom` AS `nomBatiment`,`residences`.`nom` AS `nomResidence`,`reservations`.`idLocataire` AS `idLocataire`,`reservations`.`id` AS `idResa`,`reservations`.`idPMS` AS `resaIdPMS`,`reservations`.`idCampagne` AS `idCampagne`,`reservations`.`idProgramme` AS `idProgramme`,`reservations`.`idSousProgramme` AS `idSousProgramme`,`typeLogementAttribue`.`id` AS `idTypeLogementAttribue`,`typeLogementReel`.`id` AS `idTypeLogementReel`,`logements`.`id` AS `idLogement`,`batiments`.`id` AS `idBatiment`,`residences`.`id` AS `idResidence`,`reservations`.`archive` AS `archive` from ((((((((`reservations` left join `locataires` on((`locataires`.`id` = `reservations`.`idLocataire`))) left join `civilites` on((`civilites`.`id` = `locataires`.`civilite`))) left join `etat_reservation` on((`etat_reservation`.`id` = `reservations`.`etat`))) left join `type_logement` `typeLogementAttribue` on((`typeLogementAttribue`.`id` = `reservations`.`idTypeLogementAttribue`))) left join `logements` on((`logements`.`id` = `reservations`.`idLogement`))) left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) left join `type_logement` `typeLogementReel` on((`typeLogementReel`.`id` = `logements`.`idTypeLogement`))) where 1 order by `locataires`.`nom`,`locataires`.`prenom`,`locataires`.`email`,`locataires`.`id`,`reservations`.`id`,`reservations`.`dateDemandeReservation`; -- AK 07-06-2019 : Pour simplifier les debugs dans les formulaires -- DROP TABLE IF EXISTS `formulaires_champs_select`; DROP VIEW IF EXISTS `formulaires_champs_select`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `formulaires_champs_select` AS select `campagnes`.`nom` AS `nomCamp`,`formulaires`.`idCampagne` AS `idCamp`,`formulaires`.`ordre` AS `ordreForm`,`formulaires`.`nom` AS `nomForm`,`formulaires`.`id` AS `idForm`,`champs_formulaires`.`row` AS `row`,`champs_formulaires`.`column` AS `column`,`champs_formulaires`.`libelle` AS `libelleChamp`,`champs_formulaires`.`id` AS `idChamp`,`champs_formulaires`.`name` AS `nameChamp`,`champs_formulaires`.`nature` AS `natureChamp`,`champs_formulaires`.`idType` AS `idTypeChamp`,`champs_formulaires`.`equivalentSql` AS `equivalentSql`,`champs_formulaires`.`sourceListe` AS `sourceListe`,`champs_formulaires`.`options` AS `options`,`valeurs_select`.`id` AS `idSelect`,`valeurs_select`.`valeur` AS `valeurSelect` from (((`formulaires` left join `campagnes` on((`campagnes`.`id` = `formulaires`.`idCampagne`))) left join `champs_formulaires` on((`champs_formulaires`.`idFormulaire` = `formulaires`.`id`))) left join `valeurs_select` on(((`champs_formulaires`.`idType` = 3) and (`valeurs_select`.`idSelect` = `champs_formulaires`.`sourceListe`) and (`valeurs_select`.`deleted` = '0')))) where (1 and (`formulaires`.`active` = 1)) order by `campagnes`.`nom`,`formulaires`.`ordre`,`formulaires`.`nom`,`champs_formulaires`.`row`,`champs_formulaires`.`column`,`valeurs_select`.`valeur`; -- -- 24-04-2019 FTH DEJA MAJ SUR DEV -- ALTER TABLE `logements` ADD `logeAdresse` VARCHAR(255) NULL , ADD `logeCP` VARCHAR(5) NULL , ADD `logeVille` VARCHAR(40) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logeAdresse', 'Adresse logement', '2', '31', '50', 'logeAdresse', '', '1', '0', 'logements'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logeCP', 'Code postal logement', '2', '31', '50', 'logeCP', '', '1', '0', 'logements'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logeVille', 'Ville logement', '2', '31', '50', 'logeVille', '', '1', '0', 'logements'); -- -- RM remplacer le champ Pris en compte de l'état de la demande par 'Doublon' -- UPDATE `demandes_etat` SET `nom` = 'Doublon' WHERE `demandes_etat`.`id` = 7; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Domiciliation postale', 'mode-input-dp', 'champs', '26'); -- -- 14-05-2019 FTH config site demande -- ALTER TABLE `configuration` ADD `siteDemande` VARCHAR(2) NULL ; ALTER TABLE `suivis_historique` ADD `idDp` MEDIUMINT NULL AFTER `idResa`; ALTER TABLE `suivis_historique` CHANGE `idResa` `idResa` INT(11) NULL; ALTER TABLE `suivis` CHANGE `idResa` `idResa` INT(11) NULL; ALTER TABLE `suivis` ADD `idDp` MEDIUMINT NULL AFTER `idResa`; ALTER TABLE `suivis_values` CHANGE `idResa` `idResa` INT(11) NULL; ALTER TABLE `suivis_values` ADD `idDp` MEDIUMINT NULL AFTER `idResa`; -- -- RM ajout type courrier => mutlisuivis -- ALTER TABLE `type_suivi` ADD `type_suivi` ENUM('courriers','autres', '') NULL AFTER `type`; ALTER TABLE `champs_suivis` ADD `valeurParDefaut` VARCHAR(255) NOT NULL AFTER `numOrdre`; -- -- 10-06-2019 FTH -- INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (15, 'RIB', 'Text', '2'); INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (16, 'BIC', 'Text', '2'); -- -- 13-06-2019 FTH -- -- -- Structure de la table `campagnes_organismes` -- CREATE TABLE IF NOT EXISTS `campagnes_organismes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idCampagne` int(11) NOT NULL, `codeOrganisme` varchar(20) NOT NULL, `siteOrganisme` varchar(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- AK 13-06-2019 : Oublis pour configurer le court-séjour -- INSERT INTO `etat_logement` (`id`, `nom`, `nomEn`) VALUES (6, 'Bloqué CS', NULL); -- AK 14-06-2019 : Oublis pour configurer le court-séjour -- ALTER TABLE `campagnes_organismes` ADD KEY `idCampagne` (`idCampagne`); -- AK 18-06-2019 : Oublis pour configurer le court-séjour -- INSERT INTO `type_redevance` (`id`, `nom`) VALUES (4, 'Hebdomadaire'), (5, 'Journalier'); -- AK 20-06-2019 : Départs court-séjour -- INSERT INTO `type_liste` (`id`, `type`) VALUES (18, 'Prestations'); INSERT INTO `type_liste` (`id`, `type`) VALUES (19, 'Régularisation de charges'); INSERT INTO `type_liste` (`id`, `type`) VALUES (20, 'Arrivées Court-Séjour'); INSERT INTO `type_liste` (`id`, `type`) VALUES (21, 'Présents Court-Séjour'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Départs Court-Séjour', 'planning-btn-depart-cs', 'bouton', '2'); -- AK 02-07-2019 : Membres d'une réservation (court-séjour) -- CREATE TABLE IF NOT EXISTS `membres2reservation` ( `idReservation` mediumint(8) unsigned NOT NULL, `idLocataire` mediumint(8) unsigned NOT NULL, `indMembre` tinyint(3) unsigned NOT NULL, `idLogement` smallint(6) unsigned DEFAULT NULL, `numeroChambre` varchar(15) DEFAULT NULL, `archive` enum('0','1') NOT NULL DEFAULT '0', `dateArchive` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `membres2reservation` ADD PRIMARY KEY (`idReservation`,`idLocataire`), ADD KEY `idReservation` (`idReservation`), ADD KEY `idLocataire` (`idLocataire`), ADD KEY `idLogement` (`idLogement`) USING BTREE, ADD KEY `archive` (`archive`), ADD KEY `indMembre` (`indMembre`); -- AK 16-07-2019 : Oublis qui provoque des erreurs lors du chargement de systeme -- CREATE TABLE IF NOT EXISTS `ideal_caf_situation_professionnelle` ( `code` varchar(3) NOT NULL, `situation` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `ideal_caf_situation_professionnelle` -- INSERT INTO `ideal_caf_situation_professionnelle` (`code`, `situation`) VALUES ('SAL', 'Salarié (e)'), ('APP', 'Apprenti'), ('SFP', 'Stage Formation Professionnelle'), ('ETI', 'Travailleur indépendant'), ('CHO', 'Chômeur'), ('ETU', 'Étudiant'), ('RET', 'Retraité (e)'), ('SSA', 'Sans activité'), ('AUT', 'Autres'); -- AK 25-07-2019 : Evolutions de paiements -- ALTER TABLE `paiements` CHANGE `numeroTransaction` `numeroTransaction` VARCHAR(100) NULL DEFAULT NULL; ALTER TABLE `paiements` CHANGE `datePaiement` `datePaiement` DATETIME NOT NULL; -- -- 09-11-2018 FTH -- ALTER TABLE `programme_campagne` CHANGE `idResidence` `idResidence` INT NOT NULL; -- -- 12-11-2018 MODULE SMS -- ALTER TABLE `configuration` ADD `envoiSMS` TINYINT(1) NOT NULL DEFAULT '0' ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'SMS', 'systeme-tab-sms', 'menu', 7); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'SMS', 'zfcadmin/sms', 'menu', '4'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'SMS', 'sms', 'Reservation\\Controller\\SMS', 'index', '30'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Envois SMS', 'liste-btn-sms', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'SMS', 'mode-input-sms', 'champs', '26'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche SMS', 'ficheclient/ficheSMS', 'menu', '99'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'SMS', 'zfcadmin/campagneSMS', 'menu', '3'); -- -- Structure de la table `categorie_sms` -- CREATE TABLE IF NOT EXISTS `categorie_sms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `categorie` varchar(255) NOT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -------------------------------------------------------- -- -- Structure de la table `historique_sms` -- CREATE TABLE IF NOT EXISTS `historique_sms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idLocataire` int(11) NOT NULL, `dateEnvoi` datetime NOT NULL, `nomEmeteur` varchar(255) NOT NULL, `message` text, `interface` enum('Portail','Backoffice') DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=105 ; -- -------------------------------------------------------- -- -- Structure de la table `modeles_sms` -- CREATE TABLE IF NOT EXISTS `modeles_sms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nomModele` varchar(255) NOT NULL, `nomFrom` varchar(255) NOT NULL, `corps` text NOT NULL, `langue` varchar(2) NOT NULL, `idType` int(11) DEFAULT NULL, `idCategorie` int(11) NOT NULL, `idUser` int(11) NOT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -------------------------------------------------------- -- -- Structure de la table `modeles_sms_campagne` -- CREATE TABLE IF NOT EXISTS `modeles_sms_campagne` ( `idCampagne` int(11) NOT NULL, `idModele` int(11) NOT NULL, `nomFrom` varchar(255) NOT NULL, `corps` text NOT NULL, `idUser` int(11) NOT NULL, PRIMARY KEY (`idCampagne`,`idModele`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `modeles_sms_profile` -- CREATE TABLE IF NOT EXISTS `modeles_sms_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -------------------------------------------------------- -- -- Structure de la table `sms_quota_profile` -- CREATE TABLE IF NOT EXISTS `sms_quota_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idProfile` varchar(255) NOT NULL, `quota` int(11) NOT NULL, `unite` enum('day','week','month','year') NOT NULL DEFAULT 'month', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Structure de la table `sms_quota_user` -- CREATE TABLE IF NOT EXISTS `sms_quota_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `quotaSent` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Structure de la table `type_sms` -- CREATE TABLE IF NOT EXISTS `type_sms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(255) NOT NULL, `auto` tinyint(1) NOT NULL DEFAULT '0', `idFormType` int(11) DEFAULT NULL, `idFormStat` int(11) DEFAULT NULL, `isAdmin` tinyint(1) DEFAULT '0', `code` varchar(100) DEFAULT NULL, `idFormEtatTravaux` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Structure de la table `config_api_sms` -- CREATE TABLE IF NOT EXISTS `config_api_sms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cle` varchar(255) NOT NULL, `valeur` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Contenu de la table `config_api_sms` -- INSERT INTO `config_api_sms` (`id`, `cle`, `valeur`) VALUES (1, 'application_key', 'PlYlkcoW9pN4otye'), (2, 'application_secret', 'J1fOI0Y6rrHdONAdkMkHMI3HNI6hn5WS'), (3, 'consumer_key', 'pdmoEUtwHbqWdSDtW1H74qWbyrloLYN1'), (4, 'end_point', 'ovh-eu'); INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (14, 'Téléphone', 'Tel', '2'); -- -- RM menu alert configuration -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Alert', 'systeme-tab-alert', 'menu', '7'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Alert', 'mode-input-alert', 'champs', '26'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Envois Alert', 'liste-btn-alert', 'bouton', '1'); ALTER TABLE `configuration` ADD `envoiAlert` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- Structure de la table `categorie_alert` -- CREATE TABLE IF NOT EXISTS `categorie_alert` ( `id` int(11) NOT NULL AUTO_INCREMENT, `categorie` varchar(255) NOT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `historique_alert` -- CREATE TABLE IF NOT EXISTS `historique_alert` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idLocataire` int(11) NOT NULL, `dateEnvoi` datetime NOT NULL, `nomEmeteur` varchar(255) NOT NULL, `titre` varchar(255) NOT NULL, `message` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `modeles_alert` -- CREATE TABLE IF NOT EXISTS `modeles_alert` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nomModele` varchar(255) NOT NULL, `nomFrom` varchar(255) NOT NULL, `corps` text NOT NULL, `langue` varchar(2) NOT NULL, `idType` int(11) DEFAULT NULL, `idCategorie` int(11) NOT NULL, `idUser` int(11) NOT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `modeles_alert_campagne` -- CREATE TABLE IF NOT EXISTS `modeles_alert_campagne` ( `idCampagne` int(11) NOT NULL, `idModele` int(11) NOT NULL, `nomFrom` varchar(255) NOT NULL, `corps` text NOT NULL, `idUser` int(11) NOT NULL, PRIMARY KEY (`idCampagne`,`idModele`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `modeles_alert_profile` -- CREATE TABLE IF NOT EXISTS `modeles_alert_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Structure de la table `type_alert` -- CREATE TABLE IF NOT EXISTS `type_alert` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(255) NOT NULL, `auto` tinyint(1) NOT NULL DEFAULT '0', `idFormType` int(11) DEFAULT NULL, `idFormStat` int(11) DEFAULT NULL, `isAdmin` tinyint(1) DEFAULT '0', `code` varchar(100) DEFAULT NULL, `idFormEtatTravaux` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `categorie_alert` (`id`, `categorie`, `deleted`) VALUES (NULL, 'test', '0'), (NULL, 'TEST2', '0'); ALTER TABLE `modeles_alert` ADD `titre` VARCHAR(150) NOT NULL AFTER `idUser`; ALTER TABLE `modeles_alert_campagne` ADD `titre` VARCHAR(150) NOT NULL AFTER `idUser`; ALTER TABLE `historique_alert` ADD `dateDebut` DATE NULL AFTER `message`; ALTER TABLE `historique_alert` ADD `dateFin` DATE NULL AFTER `message`; ALTER TABLE `historique_alert` ADD `acquitter` BOOLEAN NULL AFTER `message`; ALTER TABLE `modeles_alert` ADD `dateDebut` DATE NULL AFTER `titre`; ALTER TABLE `modeles_alert` ADD `dateFin` DATE NULL AFTER `titre`; ALTER TABLE `modeles_alert` ADD `acquitter` BOOLEAN NULL AFTER `titre`; ALTER TABLE `modeles_alert_campagne` ADD `dateDebut` DATE NULL AFTER `titre`; ALTER TABLE `modeles_alert_campagne` ADD `dateFin` DATE NULL AFTER `titre`; ALTER TABLE `modeles_alert_campagne` ADD `acquitter` BOOLEAN NULL AFTER `titre`; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche Alert', 'ficheclient/ficheAlert', 'menu', '99'); UPDATE `type_champs_formulaire` SET `type` = 'Text' WHERE `type_champs_formulaire`.`id` = 14; INSERT INTO `type_liste` (`id`, `type`) VALUES ('18', 'Prestations'); -- -- 28-06-2019 FTH -- ALTER TABLE `suivis_historique` CHANGE `id` `id` INT(11) NOT NULL AUTO_INCREMENT; -- -- 01-07-2019 FTH -- CREATE TABLE IF NOT EXISTS `presents_state` ( `id` int(11) NOT NULL AUTO_INCREMENT, `data` text NOT NULL, `dateFilter` text, `numberFilter` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; INSERT INTO `presents_state` (`id`, `data`, `dateFilter`, `numberFilter`) VALUES (1, '{"filter":{"dateArrivee":{"search":"","type":"date"},"residence":{"search":"","type":"select"},"nomLocataire":{"search":"","type":"text"},"prenomLocataire":{"search":"","type":"text"}},"colOrder":["0","1","2","3","4"],"pageLength":"10"}', NULL, NULL); -- -- 04-07-2019 FTH -- ALTER TABLE `locataires` CHANGE `codeGoal` `codeGoal` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 11-07-2019 RM -- ALTER TABLE `campagnes_domiciliation` CHANGE `etat` `etat` ENUM('Encours','Suspendu','NPAI','Terminé') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Encours'; ALTER TABLE campagnes_domiciliation RENAME TO domiciliations; -- -- 15-07-2019 RM -- ALTER TABLE `type_suivi` ADD `pubKey` VARCHAR(255) NULL AFTER `type_suivi`; ALTER TABLE `domiciliations` ADD `createdAt` INT NULL AFTER `idLocataire`; -- -- 17-07-2019 JL -- ALTER TABLE `suivis` ADD `etatCourrier` ENUM('A remettre','Non remis','Remis') NULL DEFAULT 'A remettre' AFTER `idTypeSuivis`; -- ------------------------------------------------- -- CHARGES 19-04-2019 -- ------------------------------------------------- -- -- Structure de la table `charges_methodes` -- CREATE TABLE IF NOT EXISTS `charges_methodes` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `nomMethode` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Structure de la table `charges_types` -- CREATE TABLE IF NOT EXISTS `charges_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nomCharge` varchar(255) NOT NULL, `idMethode` smallint(6) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Structure de la table `charges_types_par_residence` -- CREATE TABLE IF NOT EXISTS `charges_types_par_residence` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idResidence` int(11) NOT NULL, `idTypeCharge` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Structure de la table `charges_repartitions` -- CREATE TABLE IF NOT EXISTS `charges_repartitions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dateDebutPeriode` date NOT NULL, `dateFinPeriode` date NOT NULL, `montantProvision` float NOT NULL, `montantReel` float NOT NULL, `montantRepartition` float NOT NULL, `montantReelGlobal` float NOT NULL, `dateOperation` datetime NOT NULL, `idReservation` int(11) NOT NULL, `idPrestation` int(11) NOT NULL, `idLogement` int(11) NOT NULL, `idTypeCharge` int(11) NOT NULL, `idCompteurDebut` INT NULL, `idCompteurFin` INT NULL, `etatCharge` VARCHAR(50) NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `charges_methodes` ADD `codeMethode` VARCHAR(200) NOT NULL ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Régularisation des charges', 'systeme-tab-charges', 'menu', 7); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Répartition des charges', 'listeLoge-btn-charges', 'bouton', '1'); -- -- Structure de la table `charges_compteurs` -- CREATE TABLE IF NOT EXISTS `charges_compteurs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dateCompteur` date NOT NULL, `valeurCompteur` float NOT NULL, `idLogement` int(11) NOT NULL, `deleted` TINYINT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche Compteur', 'ficheclient/ficheCompteur', 'menu', '99'); INSERT INTO `type_liste` (`id`, `type`) VALUES ('19', 'Régularisation de charges'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nomCharge', 'Type charge', '2', '30', '100', 'nomCharge', '', '1', '0', 'charges_types'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantRepartition', 'Montant réparti', '2', '30', '100', 'montantRepartition', '', '5', '0', 'charges_repartitions'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantProvision', 'Montant provision', '2', '30', '100', 'montantProvision', '', '5', '0', 'charges_repartitions'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantReel', 'Montant réel', '2', '30', '100', 'montantReel', '', '5', '0', 'charges_repartitions'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatCharge', 'Etat charge', '2', '30', '100', 'etatCharge', '', '1', '0', 'charges_repartitions'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateDebutPeriode', 'Date début période charge', '2', '30', '100', 'dateDebutPeriode', '', '2', '0', 'charges_repartitions'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateFinPeriode', 'Date fin période charge', '2', '30', '100', 'dateFinPeriode', '', '2', '0', 'charges_repartitions'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateOperation', 'Date opération charge', '2', '30', '100', 'dateOperation', '', '2', '0', 'charges_repartitions'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Facturer les charges', 'liste-btn-facturer-charges', 'bouton', '1'); -- -- 04-06-2019 -- ALTER TABLE `logements` ADD `tantieme` FLOAT NULL ; -- -- Structure de la table `logements_to_type_charge` -- CREATE TABLE IF NOT EXISTS `logements_to_type_charge` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idLogement` int(11) NOT NULL, `idTypeCharge` int(11) NOT NULL, `valeurTypeCharge` float NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_tantieme', 'Tantième', 1, 4, 100, 'tantieme', '', 5, 1, 'logements'), (Null, 'logements_typeCharge', 'Type de charge', 1, 4, 100, 'typeCharge', '', 1, 0, ''); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification type de charge logement', 'listeLoge-btn-edit-type-charge', 'bouton', '1'); ALTER TABLE `charges_compteurs` ADD `idTypeCharge` int(11) NOT NULL; -- -- 18-07-2019 FTH -- INSERT INTO `prestations_types` (`id`, `code`, `description`) VALUES (NULL, 'REG', 'Régularisation'); -- -- 22-07-2019 FTH -- INSERT INTO `prestations_types` (`id`, `code`, `description`) VALUES (NULL, 'PRO', 'Provision'); INSERT INTO `prestations_types` (`id`, `code`, `description`) VALUES (NULL, 'FDD', 'Frais de dossier'); ALTER TABLE `configuration` ADD `montantCaution` FLOAT NULL , ADD `montantFDD` FLOAT NULL , ADD `prestationFDD` VARCHAR(10) NULL ; ALTER TABLE `configuration` ADD `encaisAcompte` TINYINT(1) NULL DEFAULT '0' AFTER `envoiAlert`; -- -- 23-07-2019 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Duplication suivis', 'liste-btn-dupliquer-suivis', 'bouton', '1'); -- -- 24-07-2019 FTH -- ALTER TABLE `type_suivi` ADD `dateCreationTypeSuivis` DATE NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateCreationTypeSuivis', 'Date creation dernier formulaire multisuivis', '2', '40', '20', 'date', NULL, '2', '0', ''); -- -- 25-07-2019 FTH -- ALTER TABLE `formulaires` ADD `afficherEnResident` TINYINT(1) NOT NULL DEFAULT '0' , ADD `afficherEnResa` TINYINT(1) NOT NULL DEFAULT '0' ; UPDATE `formulaires` SET`afficherEnResa` = 1 WHERE `afficherEnBO` = 1; UPDATE `formulaires` SET`afficherEnResident` = 1 WHERE `afficherEnBO` = 1; -- -- 01-08-2019 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Gestion de fiche résident', 'systeme-tab-fiche-resident', 'menu', 7); ALTER TABLE `droit_elements` ADD `ordre` MEDIUMINT NULL DEFAULT '0' ; -- -- 07-08-2019 FTH -- INSERT INTO `type_liste` (`id`, `type`) VALUES (22, 'Locataires'); -- AK 23-08-2019 : Quelques views pour faciliter le debug -- DROP TABLE IF EXISTS `ChampsIdentificationCreationCompte`; DROP VIEW IF EXISTS `ChampsIdentificationCreationCompte`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `ChampsIdentificationCreationCompte` AS select `formulaires`.`idCampagne` AS `idCampagne`,`campagnes`.`nom` AS `nom`,`champs_creationcompte`.`id` AS `id`,`champs_creationcompte`.`idChamp` AS `idChamp`,`champs_creationcompte`.`idFormulaire` AS `idFormulaire`,`formulaires`.`nom` AS `formulairesNom`,`champs_formulaires`.`name` AS `champsFormulairesName`,`champs_formulaires`.`libelle` AS `champsFormulairesLibelle` from (((`champs_creationcompte` left join `champs_formulaires` on((`champs_formulaires`.`id` = `champs_creationcompte`.`idChamp`))) left join `formulaires` on((`formulaires`.`id` = `champs_creationcompte`.`idFormulaire`))) left join `campagnes` on((`campagnes`.`id` = `formulaires`.`idCampagne`))) where (1 and (`champs_creationcompte`.`identifiable` = 1)) order by `campagnes`.`nom`,`formulaires`.`nom`,`champs_formulaires`.`name`; DROP TABLE IF EXISTS `formulaires_actions`; DROP VIEW IF EXISTS `formulaires_actions`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `formulaires_actions` AS select `campagnes1`.`nom` AS `champ1Campagne`,`formulaires1`.`nom` AS `champ1Formulaire`,`champs1`.`name` AS `champ1Nom`,`campagnes2`.`nom` AS `champ2Campagne`,`formulaires2`.`nom` AS `champ2Formulaire`,`champs2`.`name` AS `champ2Nom`,`actions_js`.`id` AS `actionsJsId`,`actions_js`.`idChampAttache` AS `actionsJsIdChampAttache`,`actions_js`.`idChamp` AS `actionJsIdChamp`,`actions_js`.`idType` AS `actionJsIdType`,`actions_js`.`valeur` AS `actionJsValeur`,`actions_js`.`valeurChamp` AS `actionJsValeurChamp`,`actions_conditions`.`id` AS `id`,`actions_conditions`.`idChamp` AS `idChamp`,`actions_conditions`.`idAction` AS `idAction`,`actions_conditions`.`typeValeur` AS `typeValeur`,`actions_conditions`.`operateur` AS `operateur`,`actions_conditions`.`valeurExact` AS `valeurExact`,`actions_conditions`.`valeurMin` AS `valeurMin`,`actions_conditions`.`valeurMax` AS `valeurMax`,`actions_conditions`.`champDebut` AS `champDebut`,`actions_conditions`.`champFin` AS `champFin`,`actions_conditions`.`unite` AS `unite`,`actions_conditions`.`idChampTexte` AS `idChampTexte` from (((((((`actions_js` left join `champs_formulaires` `champs1` on((`champs1`.`id` = `actions_js`.`idChamp`))) left join `formulaires` `formulaires1` on((`champs1`.`idFormulaire` = `formulaires1`.`id`))) left join `campagnes` `campagnes1` on((`campagnes1`.`id` = `formulaires1`.`idCampagne`))) left join `champs_formulaires` `champs2` on((`champs2`.`id` = `actions_js`.`idChampAttache`))) left join `formulaires` `formulaires2` on((`champs2`.`idFormulaire` = `formulaires2`.`id`))) left join `campagnes` `campagnes2` on((`campagnes2`.`id` = `formulaires2`.`idCampagne`))) left join `actions_conditions` on((`actions_conditions`.`idAction` = `actions_js`.`id`))) where 1 order by `campagnes1`.`nom`,`formulaires1`.`nom`,`champs1`.`name`,`champs2`.`name`; DROP TABLE IF EXISTS `listeResidencesBatimentsTypesLogement`; DROP VIEW IF EXISTS `listeResidencesBatimentsTypesLogement`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `listeResidencesBatimentsTypesLogement` AS select `residences`.`nom` AS `nomResidence`,`batiments`.`nom` AS `nomBatiment`,`type_logement`.`nom` AS `nomTypeLogement`,`residences`.`nbrChambres` AS `nbrChambresResidence`,`batiments`.`nbrChambres` AS `nbrChambresBatiments`,`typelogement_batiment`.`nbrTypeLogement` AS `nbrChambresTypeLogement`,`residences`.`id` AS `idResidence`,`residences_apipms`.`idApiPms` AS `idApiPms`,`residences`.`idPMS` AS `NO_ETABL`,`batiments`.`id` AS `idBatiment`,`batiments`.`idPMS` AS `NO_BATIMENT`,`type_logement`.`id` AS `idTypeLogement`,`type_logement`.`idPMS` AS `NO_TYPEL` from ((((`batiments` left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) left join `residences_apipms` on((`residences`.`id` = `residences_apipms`.`idResidence`))) left join `typelogement_batiment` on((`typelogement_batiment`.`idBatiment` = `batiments`.`id`))) left join `type_logement` on((`type_logement`.`id` = `typelogement_batiment`.`idTypeLogement`))) order by `residences`.`nom`,`batiments`.`nom`,`type_logement`.`nom`; DROP TABLE IF EXISTS `paiementsAvecNomPrenomCampagne`; DROP VIEW IF EXISTS `paiementsAvecNomPrenomCampagne`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `paiementsAvecNomPrenomCampagne` AS select `locataires`.`nom` AS `nom`,`locataires`.`prenom` AS `prenom`,`reservations`.`idCampagne` AS `idCampagne`,`reservations`.`idProgramme` AS `idProgramme`,`reservations`.`dateDemandeReservation` AS `dateDemandeReservation`,`reservations`.`dateArrivee` AS `dateArrivee`,`reservations`.`dateDepart` AS `dateDepart`,`paiements`.`id` AS `id`,`paiements`.`datePaiement` AS `datePaiement`,`paiements`.`montant` AS `montant`,`paiements`.`numeroTransaction` AS `numeroTransaction`,`paiements`.`nature` AS `nature`,`paiements`.`idType` AS `idType`,`paiements`.`idReservation` AS `idReservation`,`paiements`.`idLocataire` AS `idLocataire`,`paiements`.`idDoc` AS `idDoc`,`paiements`.`idADP` AS `idADP`,`reservations`.`archive` AS `reservationArchive` from ((`paiements` left join `locataires` on((`locataires`.`id` = `paiements`.`idLocataire`))) left join `reservations` on((`reservations`.`id` = `paiements`.`idReservation`))); -- -- Table parfois absente - la recréer -- CREATE TABLE IF NOT EXISTS `logs` ( `id` int(11) NOT NULL, `operation` text NOT NULL, `dateOperation` datetime NOT NULL, `dataBefore` text, `dataAfter` text, `idGestionnaire` int(11) DEFAULT NULL, `tableName` varchar(255) DEFAULT NULL, `infos` text, `idReservation` int(11) DEFAULT NULL, `idLocataire` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `logs` ADD PRIMARY KEY (`id`); ALTER TABLE `logs` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- AK 20-09-2019 : Quelques compléments de champs à afiicher dans les listes -- ALTER TABLE `champs` ADD UNIQUE KEY `code` (`code`); UPDATE `champs` SET `nom` = 'Num demande PMS' WHERE `champs`.`code` = 'idPMS'; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'residence1', 'Résidence choix 1', 2, 23, 100, '', '', 0, 0, NULL), (NULL, 'residence2', 'Résidence choix 2', 2, 23, 100, '', '', 0, 0, NULL), (NULL, 'residence3', 'Résidence choix 3', 2, 23, 100, '', '', 0, 0, NULL), (NULL, 'residence4', 'Résidence choix 4', 2, 23, 100, '', '', 0, 0, NULL); -- AK 15-10-2019 : Quelques compléments de champs pour éviter les erreurs de MAJ de la BDD ALTER TABLE `domiciliation_type` ADD UNIQUE KEY `code` (`code`); -- AK 18-10-2019 : Construction des tarifs pour le PMS -- CREATE TABLE IF NOT EXISTS `buildFactures` ( `idReservation` int(10) unsigned NOT NULL, `tarifs` text NOT NULL, `total` int(10) unsigned NOT NULL, `dateCreation` datetime NOT NULL, `datePriseEnCompte` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `buildFactures` ADD PRIMARY KEY (`idReservation`); -- AK 29-10-2019 : Gestion des champs insérables dans les mails et les documents -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'CF_soldeCompte', 'Solde du compte CeriFoyer', 2, 17, 100, 'CF_soldeCompte', NULL, 5, 0, NULL); ALTER TABLE `champs_bredea` RENAME TO `champs_pms`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `champs_bredea` AS select `champs_pms`.`id` AS `id`,`champs_pms`.`nom` AS `nom`,`champs_pms`.`equivalentSql` AS `equivalentSql` from `champs_pms`; ALTER TABLE `champs_pms` ADD `classPms` enum('Bredea','CeriFoyer') NOT NULL DEFAULT 'Bredea' ; INSERT INTO `champs_pms` (`id`, `nom`, `equivalentSql`, `classPms`) VALUES (NULL, 'CF_soldeCompte', 'CF_soldeCompte', 'CeriFoyer'), (NULL, 'CF_FACTURE_prevLabel', 'CF_FACTURE_prevLabel', 'CeriFoyer'), (NULL, 'CF_FACTURE_resteLabel', 'CF_FACTURE_resteLabel', 'CeriFoyer'), (NULL, 'CF_FACTURE_curSolde', 'CF_FACTURE_curSolde', 'CeriFoyer'), (NULL, 'CF_FACTURE_totalHT', 'CF_FACTURE_totalHT', 'CeriFoyer'), (NULL, 'CF_FACTURE_Adr1', 'CF_FACTURE_Adr1', 'CeriFoyer'), (NULL, 'CF_FACTURE_Adr2', 'CF_FACTURE_Adr2', 'CeriFoyer'), (NULL, 'CF_FACTURE_Adr3', 'CF_FACTURE_Adr3', 'CeriFoyer'), (NULL, 'CF_FACTURE_Adr4', 'CF_FACTURE_Adr4', 'CeriFoyer'), (NULL, 'CF_FACTURE_Cp', 'CF_FACTURE_Cp', 'CeriFoyer'), (NULL, 'CF_FACTURE_Ville', 'CF_FACTURE_Ville', 'CeriFoyer'), (NULL, 'CF_QUITTANCE_totalHT', 'CF_QUITTANCE_totalHT', 'CeriFoyer'), (NULL, 'CF_QUITTANCE_DejaPaye', 'CF_QUITTANCE_DejaPaye', 'CeriFoyer'), (NULL, 'CF_QUITTANCE_Aides', 'CF_Quittance_Aides', 'CeriFoyer'), (NULL, 'CF_QUITTANCE_Du', 'CF_QUITTANCE_Du', 'CeriFoyer'), (NULL, 'CF_RESIDENT_CIVILITE', 'CF_RESIDENT_CIVILITE', 'CeriFoyer'), (NULL, 'CF_RESIDENT_DEPT_NE', 'CF_RESIDENT_DEPT_NE', 'CeriFoyer'), (NULL, 'CF_RESIDENT_E_MAIL', 'CF_RESIDENT_E_MAIL', 'CeriFoyer'), (NULL, 'CF_RESIDENT_NE_A', 'CF_RESIDENT_NE_A', 'CeriFoyer'), (NULL, 'CF_RESIDENT_NE_LE', 'CF_RESIDENT_NE_LE', 'CeriFoyer'), (NULL, 'CF_RESIDENT_NOM', 'CF_RESIDENT_NOM', 'CeriFoyer'), (NULL, 'CF_RESIDENT_NO_ALLOCATAIRE', 'CF_RESIDENT_NO_ALLOCATAIRE', 'CeriFoyer'), (NULL, 'CF_RESIDENT_NO_SECU', 'CF_RESIDENT_NO_SECU', 'CeriFoyer'), (NULL, 'CF_RESIDENT_PRENOM', 'CF_RESIDENT_PRENOM', 'CeriFoyer'), (NULL, 'CF_RESIDENT_PROFESSION', 'CF_RESIDENT_PROFESSION', 'CeriFoyer'), (NULL, 'CF_RESIDENT_SEXE', 'CF_RESIDENT_SEXE', 'CeriFoyer'), (NULL, 'CF_RESIDENT_TEL_MOBILE', 'CF_RESIDENT_TEL_MOBILE', 'CeriFoyer'), (NULL, 'CF_SEJOUR_CLOTUREE', 'CF_SEJOUR_CLOTUREE', 'CeriFoyer'), (NULL, 'CF_SEJOUR_DATE_ARRIVEE', 'CF_SEJOUR_DATE_ARRIVEE', 'CeriFoyer'), (NULL, 'CF_SEJOUR_DATE_DEB', 'CF_SEJOUR_DATE_DEB', 'CeriFoyer'), (NULL, 'CF_SEJOUR_DATE_FIN', 'CF_SEJOUR_DATE_FIN', 'CeriFoyer'), (NULL, 'CF_SEJOUR_DATE_FIN_FACTURATION', 'CF_SEJOUR_DATE_FIN_FACTURATION', 'CeriFoyer'), (NULL, 'CF_SEJOUR_DATE_FIN_PREVUE', 'CF_SEJOUR_DATE_FIN_PREVUE', 'CeriFoyer'), (NULL, 'CF_SEJOUR_DATE_SAISIE', 'CF_SEJOUR_DATE_SAISIE', 'CeriFoyer'), (NULL, 'CF_SEJOUR_EN_COURS', 'CF_SEJOUR_EN_COURS', 'CeriFoyer'); -- AK 31-10-2019 : Gestion des prelevements CB -- ALTER TABLE `configuration` ADD `prelevementMode` ENUM('solde','derniereFacture') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'solde' AFTER `priseEmpLorsPayFacture`, ADD `prelevementJoursDuMois` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `prelevementMode`; ALTER TABLE `reservations` ADD `prelevementJourDuMois` TINYINT UNSIGNED NULL DEFAULT NULL AFTER `prelevementLoyer`; -- AK 07-11-2019 : Date de prochain prélévement -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateProchainPrelevement', 'Date du prochain prélèvement', 2, 17, 100, 'dateProchainPrelevement', NULL, 2, 0, NULL); -- -- 14-10-2019 JL -- -- -- Structure de la table `bp_parametres` -- CREATE TABLE IF NOT EXISTS `bp_parametres` ( `id` int(11) NOT NULL, `libelle` varchar(255) NOT NULL, `type` varchar(125) DEFAULT NULL, `valeur` varchar(255) DEFAULT NULL, `valeurMin` tinyint(4) DEFAULT NULL, `valeurMax` tinyint(4) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; -- -- Contenu de la table `bp_parametres` -- INSERT INTO `bp_parametres` (`id`, `libelle`, `type`, `valeur`, `valeurMin`, `valeurMax`) VALUES (1, 'Message page accueil', 'ecran', 'Passez votre carte sur le lecteur', NULL, NULL), (3, 'Message après envoi du mail', 'ecran', 'Vous allez recevoir un email comportant un lien de redirection vers une plateforme sécurisée de paiement en ligne.', NULL, NULL), (4, 'Message après envoi du sms', 'ecran', 'Vous allez recevoir un sms comportant un lien de redirection vers une plateforme sécurisée de paiement en ligne.', NULL, NULL), (6, 'Timer de la page créditer le compte pour appuyer sur le boutton de validation, retour à la page accueil en secondes', 'timer', '45', NULL, NULL), (7, 'Timer des messages après envoi du lien et retour à la page d''accueil en secondes', 'timer', '15', NULL, NULL), (8, 'Durée de validité du lien de paiement en nombre de jours', 'timer', '2', NULL, NULL), (9, 'Nombre min et max d''euros à créditer ', 'credit', NULL, 10, 100), (10, 'Nombre min et max de repas à créditer ', 'credit', NULL, 5, 50), (11, 'Demande de paiement par mail', 'mail', 'Vous avez fait une demande pour créditer votre compte Borne Self de \r\n\r\nCliquez le sur lien ci-dessous afin d''accéder à la plateforme de paiement sécurisée pour effectuer le paiement.\r\n\r\nCe lien est valable pendant\r\n\r\nMerci et à bientôt', NULL, NULL), (12, 'Paiement réussi par mail', 'mail', 'Vous avez fait une demande pour créditer votre compte Borne Self de \r\n\r\nNous vous informons que le paiement est réussi.\r\n\r\nMerci et à bientôt.', NULL, NULL), (13, 'Paiement échoué par mail', 'mail', 'Vous avez fait une demande pour créditer votre compte Borne Self de \r\n\r\nNous vous informons que le paiement à échoué. Veuillez retourner à la borne afin de recommencer la procédure.\r\n\r\nMerci et à bientôt.', NULL, NULL), (14, 'Page créditer compte, choisir le mode de paiement entre paiement en euros ou en nombre de repas', 'ecran', 'repas', NULL, NULL), (15, 'Demande de paiement par sms', 'sms', 'Vous avez fait une demande pour créditer votre compte Borne Self de \r\n\r\nCliquez le sur lien ci-dessous afin d''accéder à la plateforme de paiement sécurisée pour effectuer le paiement.\r\n\r\nCe lien est valable pendant\r\n\r\nMerci et à bientôt', NULL, NULL), (16, 'Paiement réussi par sms', 'sms', 'Vous avez fait une demande pour créditer votre compte Borne Self de \r\n\r\nNous vous informons que le paiement est réussi.\r\n\r\nMerci et à bientôt.', NULL, NULL), (17, 'Paiement échoué par sms', 'sms', 'Vous avez fait une demande pour créditer votre compte Borne Self de \r\n\r\nNous vous informons que le paiement à échoué. Veuillez retourner à la borne afin de recommencer la procédure.\r\n\r\nMerci et à bientôt.', NULL, NULL), (18, 'Prix unitaire du repas en euros', 'credit', '3.56', 5, 50), (19, 'Timer de la page mes informations, retour à la page accueil en secondes', 'timer', '30', NULL, NULL), (20, 'Timer pour effectuer le paiement lorsque l''utilisateur à choisi la borne comme mode de paiement, retourn à la page d''accueil', 'timer', '120', NULL, NULL); -- -- Index pour les tables exportées -- -- -- Index pour la table `bp_parametres` -- ALTER TABLE `bp_parametres` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `bp_parametres` -- ALTER TABLE `bp_parametres` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`) VALUES (NULL, 'BP Self', 'systeme-tab-bp', 'menu', '7', '0'); -- -- 12-11-2019 RM -- ALTER TABLE `locataires` ADD `borneself_last_login` DATETIME NULL AFTER `archive`; ALTER TABLE `locataires` CHANGE `password` `password` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 13-11-2019 RM -- -- INSERT INTO `api_setting` (`id`, `nom`, `cle`, `valeur`, `idAPI`) VALUES (NULL, 'URL de retour paiement abandonné Self', 'vads_url_cancel_self', 'https://alteralia.test.iriga-networks.com/paiementcancelself', '3'); -- -- 18-11-2019 RM -- -- INSERT INTO `api_setting` (`id`, `nom`, `cle`, `valeur`, `idAPI`) VALUES (NULL, 'URL de retour paiement tablette ok', 'vads_url_success_tablette', 'https://alteralia.test.iriga-networks.com/borneselfpaiementsuccesstablette', '3'); -- -- 20-11-2019 RM -- -- INSERT INTO `api_setting` (`id`, `nom`, `cle`, `valeur`, `idAPI`) VALUES (NULL, 'URL de retour paiement tablette cancel', 'vads_url_cancel_tablette', 'https://alteralia.test.iriga-networks.com/borneselfpaiementcanceltablette', '3'); -- INSERT INTO `api_setting` (`id`, `nom`, `cle`, `valeur`, `idAPI`) VALUES (NULL, 'URL de retour paiement en erreur self tablette', 'vads_url_error_tablette', 'https://alteralia.test.iriga-networks.com/paiementkotablette', '3'); -- -- 27-11-2019 RM -- INSERT INTO `bp_parametres` (`id`, `libelle`, `type`, `valeur`, `valeurMin`, `valeurMax`) VALUES (NULL, 'Timer click button (en seconde)', NULL, '30', NULL, NULL); INSERT INTO `bp_parametres` (`id`, `libelle`, `type`, `valeur`, `valeurMin`, `valeurMax`) VALUES (NULL, 'Timer page paiement (en seconde)', NULL, '300', NULL, NULL); INSERT INTO `bp_parametres` (`id`, `libelle`, `type`, `valeur`, `valeurMin`, `valeurMax`) VALUES (NULL, 'Message carte inconnue', NULL, 'Carte non reconnue par le système', NULL, NULL); -- AK 13-11-2019 : Gestion du cache de solde du PMS -- CREATE TABLE IF NOT EXISTS `pmsCache` ( `typeCache` enum('solde') NOT NULL DEFAULT 'solde', `idReservation` mediumint(8) unsigned NOT NULL, `dateLastChange` datetime NOT NULL, `dateLastCheck` datetime NOT NULL, `valeur` float NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `pmsCacheStatus` ( `typeCache` enum('solde') NOT NULL DEFAULT 'solde', `idApiPms` smallint(6) NOT NULL, `dateMAJ` datetime NOT NULL, `synchroTables` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `pmsCache` ADD KEY `typeCache` (`typeCache`), ADD KEY `idReservation` (`idReservation`); ALTER TABLE `pmsCacheStatus` ADD UNIQUE KEY `typeCache` (`typeCache`), ADD KEY `idApiPms` (`idApiPms`); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'pmsSolde', 'Solde du compte', 2, 20, 100, 'valeur', '', 12, 0, 'pmsCache'); -- AK 26-11-2019 : Gestion du multiPMS -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'pms', 'PMS', 2, 20, 100, 'nom', '', 1, 0, 'api_pms'); -- -- 16-08-2019 FTH -- ALTER TABLE `duree_general` CHANGE `unite` `unite` ENUM('day','week','month','year','unlimited') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -- -- 30-08-2019 FTH -- ALTER TABLE `charges_repartitions` ADD `codeCharge` VARCHAR(50) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'codeCharge', 'Code charge', '2', '30', '100', 'codeCharge', '', '1', '0', 'charges_repartitions'); -- -- 02-09-2019 FTH -- ALTER TABLE `logements` ADD `etage` VARCHAR(5) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etage', 'Etage logement', '2', '31', '50', 'etage', '', '1', '0', 'logements'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_etage', 'Etage', 1, 3, 100, 'etage', '', 1, 1, 'logements'); -- -- 09-09-2019 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Configuration de liens', 'user-liens-config', 'menu', 24); -- -- 11-09-2019 FTH -- ALTER TABLE `reservations` ADD `residenceOrientation` MEDIUMINT NULL ; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`) VALUES (NULL, 'Résidence orientation', 'MEDIUMINT', 'residenceOrientation', 'reservations', 'residences', '1', '3'); -- -- 12-09-2019 FTH -- -- -- Structure de la table `historique_mail_users` -- CREATE TABLE IF NOT EXISTS `historique_mail_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idUser` int(11) NOT NULL, `dateEnvoi` datetime NOT NULL, `emeteur` varchar(150) NOT NULL, `nomEmeteur` varchar(255) NOT NULL, `objet` varchar(255) NOT NULL, `message` text NOT NULL, `pdf` text, `pdfHeader` text, `pdfFooter` text, `pj` varchar(255) DEFAULT NULL, `docPJ` varchar(255) DEFAULT NULL, `modelePJ` varchar(255) DEFAULT NULL, `interface` enum('Portail','Backoffice') DEFAULT 'Backoffice', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 13-09-2019 FTH -- ALTER TABLE `configuration` ADD `majAdresseFact` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 19-09-2019 FTH -- INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (17, 'Heure', 'Text', '4'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Afficher le filtre sur les présents', 'liste-btn-filtre-presents', 'bouton', '1'); ALTER TABLE `charges_compteurs` CHANGE `valeurCompteur` `valeurCompteur` DOUBLE NOT NULL; ALTER TABLE `charges_compteurs` ADD `typeReleve` ENUM('Effectif','Estimation') NULL ; -- -- 24-09-2019 RM -- ALTER TABLE `suivis_values` CHANGE `valeur` `valeur` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL; -- -- 25-09-2019 RM -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantReelGlobal', 'Montant à répartir', '2', '30', '100', 'montantReelGlobal', '', '5', '0', 'charges_repartitions'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'compteurDebut', 'Compteur début', '2', '30', '100', 'idCompteurDebut', '', '5', '0', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'compteurFin', 'Compteur fin', '2', '30', '100', 'idCompteurFin', '', '5', '0', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateCompteurDebut', 'Date compteur début', '2', '30', '100', 'dateCompteurDebut', '', '2', '0', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateCompteurFin', 'Date compteur fin', '2', '30', '100', 'dateCompteurFin', '', '2', '0', ''); -- -- 27-09-2019 FTH -- ALTER TABLE `reservations` CHANGE `numeroChambre` `numeroChambre` VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 27-09-2019 RM -- ALTER TABLE `residences` ADD `ideal_code_occupation` CHAR(5) NULL AFTER `idZonePLAI`; ALTER TABLE `residences` CHANGE `ideal_code_occupation` `ideal_code_occupation` CHAR(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'Codes d’occupation IDEAL: AL : 01 LOCAL NU (SAUF HML) 02 MEUBLE 06 LOGEMENT FOYER (Autres) 07 LOGEMENT FOYER (Personnes âgées ou invalides) 08 MAISON DE RETRAITE 09 CENTRE DE LONG SEJOUR 10 CHAMBRE MEUBLEE 11 CHAMBRE NUE 77 LOCAL NU SAUF HLM APL : 5A RESIDENCE SOCIALE (APL2) 50 RESIDENCE SOCIALE (APL2) 51 HLM CONVENTIONNE 52 LOGEMENT FOYER AUTRE QUE JEUNES TRAVAILLEURS (APL1) 53 LOGEMENT CONVETIONNE AUTRES QU’HLM 54 FOYER DES JEUNES TRAVAILLEURS OU DE MIGRANTS (APL1) 59 FOYER DE JEUNES TRAVAILLEURS (APL2)'; -- -- 17-10-2019 RM -- CREATE TABLE `domiciliations_liste_profile` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `idListe` MEDIUMINT NOT NULL , `idProfile` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `domiciliations_listes` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `nom` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `idUser` MEDIUMINT NOT NULL , `idEtat` TINYINT(4) NOT NULL , `deleted` TINYINT NOT NULL , `idType` INT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `domiciliations_state` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `data` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `idListe` MEDIUMINT NOT NULL , `dateFilter` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `numberFilter` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `type_domiciliations` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `type` VARCHAR(255) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `champs_domiciliations` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `idChamp` MEDIUMINT NOT NULL , `idListe` MEDIUMINT NOT NULL , `idChampDynamique` MEDIUMINT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `domiciliations_state` CHANGE `dateFilter` `dateFilter` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL; ALTER TABLE `domiciliations_state` CHANGE `numberFilter` `numberFilter` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL; -- -- 24-10-2019 JL -- ALTER TABLE `domiciliations_listes` CHANGE `deleted` `deleted` TINYINT(4) NOT NULL DEFAULT '0'; -- -- 28-10-2019 JL -- ALTER TABLE `domiciliations` ADD `idCartes` MEDIUMINT NULL AFTER `createdAt`; ALTER TABLE `domiciliations` ADD `dateDernierScan` DATE NULL DEFAULT NULL AFTER `idCartes`; -- -- 29-10-2019 RM -- ALTER TABLE `domiciliations` ADD `idCampagne` MEDIUMINT UNSIGNED NULL AFTER `dateDernierScan`; -- 17-09-2019 FTH -- ALTER TABLE `charges_repartitions` ADD `baseIndividuel` FLOAT NOT NULL DEFAULT '0' , ADD `baseTotal` FLOAT NOT NULL DEFAULT '0' , ADD `presence` FLOAT NOT NULL DEFAULT '0' ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'baseIndividuel', 'Charge base individuel', '2', '30', '100', 'baseIndividuel', '', '5', '0', 'charges_repartitions'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'baseTotal', 'Charge base total', '2', '30', '100', 'baseTotal', '', '5', '0', 'charges_repartitions'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'presence', 'Charge présence', '2', '30', '100', 'presence', '', '5', '0', 'charges_repartitions'); -- -- 21-10-2019 FTH -- -- INSERT INTO `civilites` (`id`, `nom`, `nomEn`) VALUES (3, 'Mlle', 'Miss'); -- -- 25-10-2019 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Ajout multisuivis en lot', 'liste-btn-addlot-multisuivis', 'bouton', '1'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateCreationSuivis', 'Date creation suivis', '6', '40', '20', 'date', NULL, '2', '0', ''); -- -- 28-10-2019 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Annuler calcule des charges', 'liste-btn-annuler-charges', 'bouton', '1'); -- -- 31-10-2019 RM -- ALTER TABLE `domiciliations` CHANGE `entree` `dateEntree` DATE NULL; ALTER TABLE `domiciliations` CHANGE `sortie` `dateSortie` DATE NULL; ALTER TABLE `domiciliations` CHANGE `dateEntree` `dateEntree` DATE NULL; -- -- 04-11-2019 RM -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche Domiciliation postale', 'ficheclient/ficheDp', 'menu', '99'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date d''entrée', 'date', 'dateEntree', 'domiciliations', NULL, '4', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date de sortie', 'date', 'dateSortie', 'domiciliations', NULL, '4', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Motif', 'date', 'dateSortie', 'domiciliations', NULL, '4', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Document', 'date', 'document', 'domiciliations', NULL, '4', '2', NULL); CREATE TABLE `domiciliations_motifs` ( `id` SMALLINT NOT NULL AUTO_INCREMENT , `nom` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `domiciliations_motifs` (`id`, `nom`) VALUES (NULL, '+ 3 mois '); INSERT INTO `domiciliations_motifs` (`id`, `nom`) VALUES (NULL, 'Fin de reexpédition'); INSERT INTO `domiciliations_motifs` (`id`, `nom`) VALUES (NULL, 'Plus de suivi social'); ALTER TABLE `domiciliations` ADD `idUser` MEDIUMINT NULL AFTER `etat`; ALTER TABLE `domiciliations` ADD `idMotif` MEDIUMINT NULL AFTER `idUser`; INSERT INTO `user_role` (`role_id`, `is_default`, `parent`, `role_name`, `isTech`, `isAutre`) VALUES ('travailleursocial', '0', 'user', 'Travailleur social', '0', '0'); ALTER TABLE `domiciliations` ADD `docName` VARCHAR(255) NULL AFTER `idMotif`; -- -- 05-11-2019 RM -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idMotif', 'Motif domiciliations', '9', '3', '100', 'idMotif', 'domiciliations_motifs', '3', '1', 'domiciliations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idUserDp', 'Référent', '9', '3', '100', 'idUser', '', '1', '1', 'domiciliations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'docName', 'Cerfa DP', '9', '3', '100', 'docName', '', '4', '1', 'domiciliations'); UPDATE `champs_de_base` SET `libelle` = 'Document Cerfa', `type` = 'VARCHAR(255)', `equivalentSql` = 'docName', `idTypeHtml` = '4' WHERE `champs_de_base`.`tableSql` = 'domiciliations' AND `champs_de_base`.`libelle` = 'Document' AND `champs_de_base`.`equivalentSql` = 'document'; UPDATE champs SET champs.code = "idUserDp" WHERE champs.code = 'idUser' AND champs.table = 'domiciliations'; UPDATE champs SET champs.sourceListe = "user" WHERE champs.code = 'idUserDp' AND champs.table = 'domiciliations'; UPDATE champs SET champs.idTypeHtml = "3" WHERE champs.code = 'idUserDp' AND champs.table = 'domiciliations'; UPDATE champs_de_base SET champs_de_base.equivalentSql = "idUserDp" WHERE champs_de_base.equivalentSql = 'idUser' AND champs_de_base.tableSql = 'domiciliations'; UPDATE champs_de_base SET champs_de_base.idTypeSql = "3" WHERE champs_de_base.equivalentSql = 'idUserDp' AND champs_de_base.tableSql = 'domiciliations'; UPDATE champs_de_base SET champs_de_base.idTypeHtml = "3" WHERE champs_de_base.equivalentSql = 'idUserDp' AND champs_de_base.tableSql = 'domiciliations'; UPDATE champs_de_base SET champs_de_base.libelle = "Référent" WHERE champs_de_base.equivalentSql = 'idUserDp' AND champs_de_base.tableSql = 'domiciliations'; -- -- 06-11-2019 RM -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification inline domiciliation', 'liste-btn-modif-inline-dp', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Envois de mail liste domiciliation', 'liste-btn-envoyer-mail-dp', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification groupé domiciliation', 'liste-btn-modif-group-dp', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Impression en lot domiciliation', 'liste-btn-print-dp', 'bouton', '1'); UPDATE `champs` SET `sourceListe` = 'domiciliations_etat' WHERE `champs`.`table` = 'domiciliations' AND `champs`.`code`='etat'; UPDATE `champs` SET `code` = 'etatDp' WHERE `champs`.`table` = 'domiciliations' AND `champs`.`equivalentSql`='etat'; ALTER TABLE `droit_config` ADD `default_list` TINYINT NULL AFTER `value`; -- -- 07-11-2019 RM -- ALTER TABLE `droit_elements` ADD `id_attr` VARCHAR(50) NULL AFTER `ordre`; UPDATE droit_elements SET id_attr = 'modeMail' WHERE unique_name = 'mode-input-mails'; UPDATE droit_elements SET id_attr = 'id-modeAccesResa' WHERE unique_name = 'mode-input-demandes'; UPDATE droit_elements SET id_attr = 'id-modeFacture' WHERE unique_name = 'mode-input-facture'; UPDATE droit_elements SET id_attr = 'id-modeCaf' WHERE unique_name = 'mode-input-caf'; UPDATE droit_elements SET id_attr = 'id-modeForm' WHERE unique_name = 'mode-input-form'; UPDATE droit_elements SET id_attr = 'id-modeLogements' WHERE unique_name = 'mode-input-logements'; UPDATE droit_elements SET id_attr = 'id-modePresents' WHERE unique_name = 'mode-input-presents'; UPDATE droit_elements SET id_attr = 'id-modeIntercontrat' WHERE unique_name = 'mode-input-intercontrat'; UPDATE droit_elements SET id_attr = 'id-modeEdl' WHERE unique_name = 'mode-input-edl'; UPDATE droit_elements SET id_attr = 'id-modeRdv' WHERE unique_name = 'mode-input-planning-edl'; UPDATE droit_elements SET id_attr = 'id-modeDp' WHERE unique_name = 'mode-input-dp'; UPDATE droit_elements SET id_attr = 'id-modeListe' WHERE unique_name = 'mode-input-reservations'; UPDATE droit_elements SET id_attr = 'id-modeColis' WHERE unique_name = 'mode-input-colis'; UPDATE droit_elements SET id_attr = 'id-modeAlert' WHERE unique_name = 'mode-input-alert'; UPDATE droit_elements SET id_attr = 'id-modeSerrures' WHERE unique_name = 'mode-input-serrures'; -- -- 08-11-2019 pour la partie PMS FTP -- -- -- params pms à décommenter et modifier si besoin de l access ftp bredea -- -- CREATE TABLE IF NOT EXISTS `api_pms` ( -- `id` int(11) NOT NULL, -- `nom` varchar(255) NOT NULL, -- `className` varchar(100) NOT NULL, -- `active` tinyint(1) NOT NULL DEFAULT '0' -- ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ALTER TABLE `api_pms` ADD PRIMARY KEY (`id`); -- ALTER TABLE `api_pms` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- CREATE TABLE IF NOT EXISTS `api_setting_pms` ( -- `id` int(11) NOT NULL, -- `nom` varchar(255) NOT NULL, -- `cle` varchar(255) NOT NULL, -- `valeur` varchar(255) NOT NULL, -- `idAPI` int(11) NOT NULL -- ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ALTER TABLE `api_setting_pms` ADD PRIMARY KEY (`id`); -- ALTER TABLE `api_setting_pms` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- INSERT INTO `api_pms` (`id`, `nom`, `className`, `active`) VALUES -- (1, 'Essec', 'Bredea', 1); -- INSERT INTO `api_setting_pms` (`id`, `nom`, `cle`, `valeur`, `idAPI`) VALUES -- (1, 'apiHost', 'apiHost', '149.202.51.122', 1), -- (2, 'apiUser', 'apiUser', 'admin', 1), -- (3, 'apiPasswd', 'apiPasswd', 'ADMIN', 1), -- (4, 'apiMode', 'apiMode', 'Complete', 1), -- (5, 'apiSiteDem', 'apiSiteDem', '00', 1), -- (6, 'apiFamily', 'apiFamily', '', 1), -- (7, 'apiBdd', 'apiBdd', 'weasyloc_mese', 1), -- (8, 'apiCharset', 'apiCharset', 'ISO-8859-1', 1), -- (9, 'apiFtps', 'apiFtps', 'ftp://administrator:327XPmoD@149.202.51.122/essec', 1); -- -- 11-11-2019 FTH -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Ressource entrée', 'int(11)', 'ressEntree', 'plai_ressources', NULL, '1', '5', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Nombre de pseronnes entrée', 'int(11)', 'nbrPersEntree', 'plai_ressources', NULL, '1', '5', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Nombre de personnes à charge entrée', 'int(11)', 'nbrPersChargeEntree', 'plai_ressources', NULL, '1', '5', NULL); -- -- 18-11-2019 RM -- UPDATE droit_elements SET id_attr = 'id-modeAccesResa' WHERE unique_name = 'mode-input-candidats'; -- -- 20-11-2019 FTH -- ALTER TABLE `suivis` ADD `dateCreationSuivis` DATETIME NULL ; UPDATE `champs` SET `champs`.`table` = 'suivis', `champs`.`equivalentSql`='dateCreationSuivis',`champs`.`idTheme`=2 WHERE `code` = 'dateCreationSuivis'; -- -- 21-11-2019 FTH -- ALTER TABLE `suivis` CHANGE `dateCreationSuivis` `dateCreationSuivis` DATE NULL DEFAULT NULL; ALTER TABLE `suivis` ADD `heureCreationSuivis` TIME NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'heureCreationSuivis', 'Heure creation suivis', '2', '40', '20', 'heureCreationSuivis', NULL, '17', '0', 'suivis'); -- -- 22-11-2019 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Gestion de parcours', 'systeme-tab-fiche-parcours', 'menu', 7); -- -- Structure de la table `config_parcours` -- CREATE TABLE IF NOT EXISTS `config_parcours` ( `id` mediumint(9) NOT NULL AUTO_INCREMENT, `idCampagne` mediumint(9) NOT NULL, `champOrigine` varchar(255) NOT NULL, `champAffecte` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Historique sous onglet évènements', 'ficheLogs/evenements', 'menu', 99); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Historique sous onglet parcours', 'ficheLogs/parcours', 'menu', 99); -- -- 02-12-2019 FTH -- ALTER TABLE `reservations` ADD `statutRIB` ENUM('modifier','controler') NULL ; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Statut RIB', 'ENUM(''modifier'',''controler'')', 'statutRIB', 'reservations', NULL, '1', '1', NULL); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'statutRIB', 'Statut RIB', '2', '190', '100', 'statutRIB', NULL, '1', '1', 'reservations'); CREATE TABLE `ideal_caf_mode` ( `id` TINYINT NOT NULL AUTO_INCREMENT , `mode` ENUM('test','production') NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `ideal_caf_mode` (`id`, `mode`) VALUES (NULL, 'production'); -- -- 03-12-2019 FTH -- ALTER TABLE `prestations_periodes` CHANGE `joursInclus` `joursInclus` VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL; ALTER TABLE `prestations_periodes` ADD `typePeriode` ENUM('application','facturation') NOT NULL DEFAULT 'application' ; ALTER TABLE `prestations_formules` ADD `idPeriodeFacturation` INT NOT NULL ; -- -- 10-12-2019 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche documents : création de catégorie', 'fiche-btn-create-categorie', 'bouton', '1'); -- -- 12-12-2019 FTH archive DP -- ALTER TABLE `domiciliations` ADD `archive` TINYINT NOT NULL DEFAULT '0' , ADD INDEX `archive` (`archive`) ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Archivage domiciliation', 'liste-btn-archive-dp', 'bouton', '1'); -- -- 13-12-2019 FTH DP : ajout date fin validite -- ALTER TABLE `domiciliations` ADD `dateFinValidite` DATE NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateFinValidite', 'Date fin de validité domiciliation', '9', '3', '100', 'dateFinValidite', '', '2', '1', 'domiciliations'); -- -- 13-12-2019 FTH : ajout nouveau type d'action pour controller les elements de liste à afficher -- ALTER TABLE `actions_js` ADD `valeursSelect` TEXT NULL ; ALTER TABLE `actions_js_suivis` ADD `valeursSelect` TEXT NULL ; INSERT INTO `type_actions` (`id`, `type`) VALUES ('3', 'Contrôle des éléments de liste'); -- -- 31-12-2019 FTH : ajout de droits de suppresion/modification/champs pour les modes de listes Réservation, DP et multisuivis -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode réservation : Suppression', 'liste-input-mode-liste-btn-delete', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode réservation : Modification', 'liste-input-mode-liste-btn-save', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode réservation : Choix de champs', 'liste-input-mode-liste-btn-champs', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode domiciliation : Suppression', 'mode-input-dp-btn-delete', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode domiciliation : Modification', 'mode-input-dp-btn-save', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode domiciliation : Choix de champs', 'mode-input-dp-btn-champs', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode multisuivis : Suppression', 'mode-input-typesuivis-btn-delete', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode multisuivis : Modification', 'mode-input-typesuivis-btn-save', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode multisuivis : Choix de champs', 'mode-input-typesuivis-btn-champs', 'bouton', '1'); ALTER TABLE `configuration` ADD `debug` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 02-01-2020 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatProchaineResa', 'Etat de la prochaine réservation', '2', '31', '100', 'etatProchaineResa', '', '3', '1', ''); -- -- 06-01-2020 FTH -- ALTER TABLE `prestations_to_resa` ADD `controle1` ENUM('Oui','Non') NULL , ADD `controle2` ENUM('Oui','Non') NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'controle1', 'Prestation - contrôle 1', '2', '30', '100', 'controle1', '', '3', '1', 'prestations_to_resa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'controle2', 'Prestation - contrôle 2', '2', '30', '100', 'controle2', '', '3', '1', 'prestations_to_resa'); ALTER TABLE `prestations_to_resa` ADD `modePaiement` ENUM('Virement','Ticket') NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'modePaiement', 'Prestation - mode paiement', '2', '30', '100', 'modePaiement', '', '3', '1', 'prestations_to_resa'); -- -- 07-01-2020 -- INSERT INTO domiciliations_motifs (`id`, `nom`) VALUES (4, 'DP périmée'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Lancer le remboursement des prestations', 'liste-btn-prestations-rmb', 'bouton', '1'); -- -- 09-01-2020 -- UPDATE `champs` SET `idTypeHtml` = '3' WHERE `champs`.`code` = 'etatPrestation'; UPDATE `champs` SET `idTypeHtml` = '3' WHERE `champs`.`code` = 'etatCharge'; -- -- 13-01-2020 -- ALTER TABLE `charges_repartitions` ADD `libellePrestation` VARCHAR(255) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'libellePrestation', 'Charge - libellé prestation', '2', '30', '100', 'libellePrestation', '', '1', '1', 'charges_repartitions'); -- -- 17-01-2020 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'campagneDp', 'Campagne domiciliations', '9', '3', '100', 'idCampagne', 'campagnes', '3', '1', 'domiciliations'); -- -- 27-01-2020 AK -- ALTER TABLE `prestations` change `code` `code` VARCHAR(10) NOT NULL; ALTER TABLE `prestations` change `codePMS` `codePMS` VARCHAR(10) NOT NULL; CREATE TABLE IF NOT EXISTS `domiciliations_etat` ( `id` smallint(6) NOT NULL, `nom` varchar(50) NOT NULL) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; INSERT INTO `domiciliations_etat` (`id`, `nom`) VALUES (1, 'En cours'), (2, 'Suspendu'), (3, 'Terminé'); ALTER TABLE `domiciliations_etat` ADD PRIMARY KEY (`id`); ALTER TABLE `charges_repartitions` ADD `idApiPMS` VARCHAR(10) NULL after `libellePrestation`; ALTER TABLE `charges_repartitions` ADD `idPMS` VARCHAR(10) NULL after `idApiPMS`; -- 17-01-2020 FTH mode facture server side -- DROP TABLE IF EXISTS `liste_state_factures`; CREATE TABLE IF NOT EXISTS `liste_state_factures` ( `id` int(11) NOT NULL AUTO_INCREMENT, `data` text NOT NULL, `dateFilter` text, `numberFilter` text, `typeListe` VARCHAR(50), PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'soldeDebiteur', 'Solde débiteur', 10, 2, 100, 'soldeDebiteur', '', 5, 1, ''), (Null, 'dateFacture', 'Date facture', 10, 2, 100, 'dateFacture', '', 2, 1, ''), (Null, 'numeroFacture', 'Numéro facture', 10, 2, 100, 'numeroFacture', '', 5, 1, ''), (Null, 'modePaiementFacture', 'Mode Paiement facture', 10, 2, 100, 'modePaiementFacture', '', 1, 1, ''), (Null, 'datePaiement', 'Date paiement facture', 10, 2, 100, 'datePaiement', '', 2, 1, ''), (Null, 'montantPaiement', 'Montant Paiement facture', 10, 2, 100, 'montantPaiement', '', 5, 1, ''), (Null, 'statutPaiement', 'Etat Paiement facture', 10, 2, 100, 'statutPaiement', '', 1, 1, ''), (Null, 'montantFacture', 'Montant facture', 10, 2, 100, 'montantFacture', '', 5, 1, ''), (Null, 'numCB', 'Numéro CB', 11, 2, 100, 'numCB', '', 1, 1, ''), (Null, 'typeCB', 'Type CB', 11, 2, 100, 'typeCB', '', 1, 1, ''), (Null, 'dateExpCB', 'Date expiration CB', 11, 2, 100, 'dateExpCB', '', 2, 1, ''), (Null, 'datePrelevement', 'Date prélèvement', 11, 2, 100, 'datePrelevement', '', 2, 1, ''), (Null, 'montantPrelevement', 'Montant prélevé', 11, 2, 100, 'montantPrelevement', '', 5, 1, ''), (Null, 'resultatPrelevement', 'Résultat prélèvement', 11, 2, 100, 'msg', '', 1, 1, ''), (Null, 'causeRefus', 'Cause refus', 11, 2, 100, 'msgErreur', '', 1, 1, ''), (Null, 'source', 'Type', 11, 2, 100, 'source', '', 1, 1, ''), (Null, 'numeroFactureRmb', 'Numéro facture remboursement', 12, 2, 100, 'numeroFactureRmb', '', 1, 1, ''), (Null, 'montantFactureRmb', 'Montant facture remboursement', 12, 2, 100, 'montantFactureRmb', '', 5, 1, ''), (Null, 'etatDG', 'Etat remboursement', 12, 2, 100, 'etatDG', '', 1, 1, 'remboursements'), (Null, 'datePaiementRmb', 'Date remboursement', 12, 2, 100, 'datePaiementRmb', '', 2, 1, ''), (Null, 'rib', 'RIB', 12, 2, 100, 'rib', '', 1, 1, 'remboursements'), (Null, 'nomRIB', 'Nom RIB', 12, 2, 100, 'nomRIB', '', 1, 1, 'remboursements'), (Null, 'bic', 'BIC', 12, 2, 100, 'etatDG', '', 1, 1, 'remboursements'), (Null, 'remarqueRmb', 'Remarque remboursement', 12, 2, 100, 'remarqueRmb', '', 1, 1, ''), (Null, 'soldeCompteRmb', 'Solde compte', 12, 2, 100, 'soldeCompteRmb', '', 1, 1, ''); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode facture : Modification', 'mode-input-facture-btn-save', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode facture : Choix de champs', 'mode-input-facture-btn-champs', 'bouton', '1'); -- -- 27-01-2020 FTH -- ALTER TABLE `configuration` ADD `bloquerDateRDV` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Option pour bloquer la date de prise de rendez vous départ' ; -- -- 29-01-2020 FTH -- -- -- Structure de la table `config_mails` -- CREATE TABLE IF NOT EXISTS `config_mails` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idResidence` int(11) NOT NULL, `enteteMail` text, `imageEntete` varchar(100) DEFAULT NULL, `signatureMail` text, `imageSignature` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `prestations_to_resa` ADD `dateDebutPF` DATE NULL COMMENT 'PF:période facturation' , ADD `dateFinPF` DATE NULL COMMENT 'PF:période facturation' ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateDebutPF', 'Prestation - date début période de facturation', '2', '30', '100', 'dateDebutPF', '', '2', '1', 'prestations_to_resa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateFinPF', 'Prestation - date fin période de facturation', '2', '30', '100', 'dateFinPF', '', '2', '1', 'prestations_to_resa'); -- -- 30-01-2020 FTH -- ALTER TABLE `prestations_formules` CHANGE `idDureeSejour` `idDureeSejour` INT(11) NULL, CHANGE `idCondition` `idCondition` INT(11) NULL; ALTER TABLE `type_domiciliations` ADD `codeType` VARCHAR(100) NULL ; INSERT INTO `type_domiciliations` (`id`, `type`,`codeType`) VALUES (NULL, 'Archivé','archive'); -- -- Structure de la table `droit_config_campagne` -- CREATE TABLE IF NOT EXISTS `droit_config_campagne` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` varchar(255) NOT NULL, `droit_id` int(11) NOT NULL, `idCampagne` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 03-02-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode domiciliation : Changement campagne', 'liste-dp-btn-change-campagne', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode Réservation : Changement campagne', 'liste-resa-btn-change-campagne', 'bouton', '1'); -- 04-02-2020 FTH: correction champ modePaiement en double dans la table champs pour le mode facture -- UPDATE `champs` SET `code` = 'modePaiementFacture',`equivalentSql` = 'modePaiementFacture' WHERE `champs`.`nom` = 'Mode Paiement facture'; -- -- 04-02-2020 AK -- ALTER TABLE `charges_repartitions` CHANGE `montantReel` `montantReel` FLOAT NULL, CHANGE `montantRepartition` `montantRepartition` FLOAT NULL, CHANGE `montantProvision` `montantProvision` FLOAT NULL; UPDATE `champs` SET `idTypeHtml` = '12' WHERE `champs`.`code` IN ('montantRepartition', 'montantProvision', 'montantReel', 'baseTotal', 'baseIndividuel', 'montantReelGlobal', 'CF_soldeCompte', 'pmsSolde', 'soldeDebiteur', 'montantPaiement', 'montantFacture', 'montantPrelevement', 'montantFactureRmb'); -- -- 06-02-2020 AK -- ALTER TABLE `configuration` ADD `paiementEmailSms` SET('Email','SMS') NULL AFTER `prelevementJoursDuMois`; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Fiche Paiement Email', 'ficheclient/fichePaiementEmail', 'menu', '99', '0', NULL); ALTER TABLE `reservations` ADD `demPaiementEmail` ENUM('Solde','MontantFixe','Facture') DEFAULT NULL AFTER `statutRIB`; ALTER TABLE `reservations` ADD `montantPaiementEmail` FLOAT DEFAULT NULL AFTER `demPaiementEmail`; ALTER TABLE `reservations` ADD KEY `demPaiementEmail` (`demPaiementEmail`); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'demPaiementEmail', 'Demande de paiement par Email', '2', '30', '10', 'demPaiementEmail', '', '3', '1', 'reservations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPaiementEmail', 'Montant du paiement par Email', '2', '30', '10', 'montantPaiementEmail', '', '12', '1', 'reservations'); -- -- 10-02-2020 AK -- CREATE TABLE IF NOT EXISTS `urlToken` ( `id` int(11) NOT NULL, `tokenType` enum('payment') NOT NULL DEFAULT 'payment', `idToken` varchar(20) DEFAULT NULL, `idResa` int(11) DEFAULT NULL, `dateBuild` datetime DEFAULT NULL, `dateUse` datetime DEFAULT NULL, `compl` varchar(10) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `urlToken` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `tokenTypeEtId` (`idToken`,`tokenType`) USING BTREE, ADD KEY `idToken` (`idToken`), ADD KEY `idResa` (`idResa`), ADD KEY `tokenType` (`tokenType`); ALTER TABLE `urlToken` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- 13-02-2020 FTH -- INSERT INTO `type_prestation` (`id`, `type`, `codePrestation`) VALUES ('10', 'Loyer court séjour', NULL); ALTER TABLE `campagnes` CHANGE `modeEnvoiDemandePMS` `modeEnvoiDemandePMS` ENUM('Immediat','ApresCommission','NePasEnvoyer') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Immediat'; -- -- 14-02-2020 AK -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'urlPaiementEmail', 'urlPaiementEmail', '2', '30', '100', 'urlPaiementEmail', '', '1', '1', NULL); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateBuildPaiementEmail', 'Date de demande de paiement par Email', '2', '30', '100', 'dateBuild', '', '2', '1', 'urlToken'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateUsePaiementEmail', 'Date du paiement par Email', '2', '30', '100', 'dateUse', '', '2', '1', 'urlToken'); -- -- 02-10-2019 RM -- ALTER TABLE `reservations` ADD `cafChangementDateDepartTheorique` BOOLEAN NULL DEFAULT FALSE AFTER `cafTreated`; -- -- 04-10-2019 RM Ajout type email CAF -- INSERT INTO `type_email` (`type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES ('Notification CAF', NULL, 1, NULL, NULL, 1, 'caf'); -- -- 27-02-2020 AK -- ALTER TABLE `pmsCacheStatus` DROP INDEX idApiPms, DROP INDEX typeCache, ADD UNIQUE INDEX typeCache_idApiPms (typeCache, idApiPms), ADD INDEX typeCache (typeCache), ADD INDEX idApiPms (idApiPms); -- 31-12-2019 RM -- ALTER TABLE `edl_parametres` ADD `reprise_ancien_edl_validation_auto` BOOLEAN NOT NULL DEFAULT FALSE COMMENT 'L\'autorisation de reprise de l\'ancien edl lors de la validation auto (cron) ansi que depuis le portail résident' AFTER `afficher_label_prestations`; ALTER TABLE `edl` CHANGE `type` `type` ENUM('entrant','sortant','indifferent','intermediaire') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 08-01-2020 RM -- CREATE TABLE `type_travaux_demande` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `nom` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `nomEn` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL , PRIMARY KEY (`id`)) ENGINE = MyISAM CHARSET=utf8 COLLATE utf8_general_ci; INSERT INTO `champs_de_base`( `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere` ) VALUES( 'Type de travaux', 'int(1)', 'typeTravaux', 'demandes', 'type_travaux_demande', '1', '3', NULL); CREATE TABLE `motif_demande` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `nom` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `nomEn` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL , `idTypeTravauxDemande` MEDIUMINT NULL COMMENT 'correpondance avec la table: type_travaux_demande\"' , PRIMARY KEY (`id`)) ENGINE = MyISAM CHARSET=utf8 COLLATE utf8_general_ci; ALTER TABLE `motif_demande` ADD `deleted` BOOLEAN NOT NULL AFTER `idTypeTravauxDemande`; ALTER TABLE `type_travaux_demande` ADD `deleted` BOOLEAN NOT NULL AFTER `nomEn`; ALTER TABLE `motif_demande` ADD `ordre` MEDIUMINT NULL DEFAULT '0' AFTER `idTypeTravauxDemande`; ALTER TABLE `type_travaux_demande` ADD `ordre` MEDIUMINT NULL DEFAULT '0' AFTER `nomEn`; ALTER TABLE `motif_demande` CHANGE `deleted` `deleted` TINYINT(1) NULL DEFAULT '0'; ALTER TABLE `type_travaux_demande` CHANGE `deleted` `deleted` TINYINT(1) NULL DEFAULT '0'; -- -- 20-01-2020 RM -- CREATE TABLE `champs_association` ( `id` INT NOT NULL AUTO_INCREMENT , `idChamp1` MEDIUMINT NULL , `idVal1` MEDIUMINT NULL , `idChamp2` MEDIUMINT NULL , `idVal2` MEDIUMINT NULL , `idModele` MEDIUMINT NULL , PRIMARY KEY (`id`)) ENGINE = MyISAM COMMENT = 'Association entre 2 champs de type liste'; -- -- 28-01-2020 RM -- INSERT INTO `type_actions` (`id`, `type`) VALUES (NULL, 'Association entre 2 champs de type liste'); ALTER TABLE `champs_association` ADD `idFormulaire` MEDIUMINT NULL COMMENT 'Si c\'est un champ appartenant au formulaires' AFTER `idModele`; ALTER TABLE `champs_association` ADD `idTypeSuivis` MEDIUMINT NULL COMMENT 'Si c\'est un champ appartenant au mutlisuivis' AFTER `idFormulaire`; ALTER TABLE `type_actions` ADD `ordre` SMALLINT NULL AFTER `type`; -- -- 03-02-2020 RM -- INSERT INTO `prestations_types` (`id`, `code`, `description`) VALUES (NULL, 'INT', 'Interventions techniques'); -- -- 11-02-2020 RM -- CREATE TABLE `demandes_prestations` ( `idDemandes` MEDIUMINT NOT NULL , `idPrestations` MEDIUMINT NOT NULL ) ENGINE = InnoDB COMMENT = 'Une demande peut avoir 0,n prestations'; ALTER TABLE `demandes_prestations` ADD `libelle_ajouter` VARCHAR(100) NULL AFTER `idPrestations`, ADD `unite` VARCHAR(20) NULL AFTER `libelle_ajouter`, ADD `montant` float NULL AFTER `unite`, ADD `quantite` INT(11) NULL AFTER `montant`; ALTER TABLE `demandes_prestations` ADD `commentaires` TEXT NULL AFTER `quantite`; -- -- 05-02-2020 FTH -- ALTER TABLE `type_suivi` CHANGE `type_suivi` `type_suivi` ENUM('courriers','autres','logements','') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `suivis` ADD `idLogement` INT NULL ; ALTER TABLE `suivis_values` ADD `idLogement` INT NULL ; ALTER TABLE `logements_periode_travaux` ADD `typeTravaux` ENUM('total','plomberie','electricite','') NULL ; ALTER TABLE `logements_periode_travaux` ADD `commentaireTravaux` TEXT NULL , ADD `intervenantTravaux` VARCHAR(255) NULL ; -- -- 11-02-2020 FTH -- ALTER TABLE `logements` ADD `nbrLits` TINYINT NULL ; ALTER TABLE `logements` ADD `idTypeBail` TINYINT NULL ; ALTER TABLE `logements` ADD `montantMobilier` FLOAT NULL ; ALTER TABLE `logements` ADD `dateEntreeParc` DATE NULL ; ALTER TABLE `logements` ADD `idTypeBien` SMALLINT NULL ; ALTER TABLE `logements` ADD `secteurGeo` VARCHAR(255) NULL ; ALTER TABLE `logements` ADD `codeLogementAPI` VARCHAR(255) NULL , ADD `bailleur` VARCHAR(255) NULL , ADD `conventionnement` VARCHAR(255) NULL , ADD `dispositif` VARCHAR(255) NULL ; -- -- Structure de la table `type_bail` -- CREATE TABLE IF NOT EXISTS `type_bail` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `typeBail` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Structure de la table `type_bien` -- CREATE TABLE IF NOT EXISTS `type_bien` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `typeBien` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `type_bail`(`id`,`typeBail`) VALUES (null,'Contrat de sous-location'), (null,'Bail de sous-location'), (null,'Convention de location'); INSERT INTO `type_bien`(`id`,`typeBien`) VALUES (null,'Location'), (null,'Propriété'), (null,'Commerce'), (null,'Garage'), (null,'Bureaux'); -- -- 14-02-2020 FTH -- ALTER TABLE `prestations` CHANGE `description` `description` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 26-02-2020 FTH -- ALTER TABLE `groupes` ADD `archive` ENUM('0','1') NOT NULL DEFAULT '0' ; -- -- 02-03-2020 AK -- ALTER TABLE `urlToken` ADD `datePartialUse` DATETIME DEFAULT NULL AFTER `dateBuild`; ALTER TABLE `urlToken` CHANGE `compl` `compl` VARCHAR(100) NULL DEFAULT NULL; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'datePartialUsePaiementEmail', 'Date de paiement partiel par Email', '2', '30', '100', 'datePartialUse', '', '2', '1', 'urlToken'); CREATE TABLE IF NOT EXISTS `departements` ( `id` varchar(4) NOT NULL, `nom` varchar(40) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `departements` (`id`, `nom`) VALUES ('01', '01 - Ain'), ('02', '02 - Aisne'), ('03', '03 - Allier'), ('04', '04 - Alpes-de-Haute-Provence'), ('05', '05 - Hautes-Alpes'), ('06', '06 - Alpes-Maritimes'), ('07', '07 - Ardèche'), ('08', '08 - Ardennes'), ('09', '09 - Ariège'), ('10', '10 - Aube'), ('11', '11 - Aude'), ('12', '12 - Aveyron'), ('13', '13 - Bouches-du-Rhône'), ('14', '14 - Calvados'), ('15', '15 - Cantal'), ('16', '16 - Charente'), ('17', '17 - Charente-Maritime'), ('18', '18 - Cher'), ('19', '19 - Corrèze'), ('21', '21 - Côte-d\'or'), ('22', '22 - Côtes-d\'armor'), ('23', '23 - Creuse'), ('24', '24 - Dordogne'), ('25', '25 - Doubs'), ('26', '26 - Drôme'), ('27', '27 - Eure'), ('28', '28 - Eure-et-Loir'), ('29', '29 - Finistère'), ('2a', '2a - Corse-du-sud'), ('2b', '2b - Haute-corse'), ('30', '30 - Gard'), ('31', '31 - Haute-Garonne'), ('32', '32 - Gers'), ('33', '33 - Gironde'), ('34', '34 - Hérault'), ('35', '35 - Ile-et-Vilaine'), ('36', '36 - Indre'), ('37', '37 - Indre-et-Loire'), ('38', '38 - Isère'), ('39', '39 - Jura'), ('40', '40 - Landes'), ('41', '41 - Loir-et-Cher'), ('42', '42 - Loire'), ('43', '43 - Haute-Loire'), ('44', '44 - Loire-Atlantique'), ('45', '45 - Loiret'), ('46', '46 - Lot'), ('47', '47 - Lot-et-Garonne'), ('48', '48 - Lozère'), ('49', '49 - Maine-et-Loire'), ('50', '50 - Manche'), ('51', '51 - Marne'), ('52', '52 - Haute-Marne'), ('53', '53 - Mayenne'), ('54', '54 - Meurthe-et-Moselle'), ('55', '55 - Meuse'), ('56', '56 - Morbihan'), ('57', '57 - Moselle'), ('58', '58 - Nièvre'), ('59', '59 - Nord'), ('60', '60 - Oise'), ('61', '61 - Orne'), ('62', '62 - Pas-de-Calais'), ('63', '63 - Puy-de-Dôme'), ('64', '64 - Pyrénées-Atlantiques'), ('65', '65 - Hautes-Pyrénées'), ('66', '66 - Pyrénées-Orientales'), ('67', '67 - Bas-Rhin'), ('68', '68 - Haut-Rhin'), ('69', '69 - Rhône'), ('70', '70 - Haute-Saône'), ('71', '71 - Saône-et-Loire'), ('72', '72 - Sarthe'), ('73', '73 - Savoie'), ('74', '74 - Haute-Savoie'), ('75', '75 - Paris'), ('76', '76 - Seine-Maritime'), ('77', '77 - Seine-et-Marne'), ('78', '78 - Yvelines'), ('79', '79 - Deux-Sèvres'), ('80', '80 - Somme'), ('81', '81 - Tarn'), ('82', '82 - Tarn-et-Garonne'), ('83', '83 - Var'), ('84', '84 - Vaucluse'), ('85', '85 - Vendée'), ('86', '86 - Vienne'), ('87', '87 - Haute-Vienne'), ('88', '88 - Vosges'), ('89', '89 - Yonne'), ('90', '90 - Territoire de Belfort'), ('91', '91 - Essonne'), ('92', '92 - Hauts-de-Seine'), ('93', '93 - Seine-Saint-Denis'), ('94', '94 - Val-de-Marne'), ('95', '95 - Val-d\'oise'), ('971', '971 - Guadeloupe'), ('972', '972 - Martinique'), ('973', '973 - Guyane'), ('974', '974 - Réunion'), ('976', '976 - Mayotte'), ('99', '99 – Autre pays'); ALTER TABLE `departements` ADD PRIMARY KEY (`id`); ALTER TABLE `locataires` ADD `departementNaissance` VARCHAR(4) NULL AFTER `dateNaissance`; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'departementNaissance', 'Département de naissance', 1, 9, 100, 'departementNaissance', 'departements', 3, 1, 'locataires'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Département de naissance', 'varchar(255)', 'departementNaissance', 'locataires', 'departements', 1, 3, NULL); -- -- Structure de la table `modes_paiement` -- CREATE TABLE IF NOT EXISTS `modes_paiement` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nomMode` varchar(255) NOT NULL, `codePMS` varchar(10) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `codePMS` (`codePMS`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modes de paiement', 'systeme-tab-modes-paiement', 'menu', 7); -- -- 27-02-0202 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPrestationFacture', 'Montant prestation dû', '2', '30', '100', 'montantPrestationFacture', '', '5', '0', null); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPrestationAvoir', 'Montant prestation à verser', '2', '30', '100', 'montantPrestationAvoir', '', '5', '0', null); -- -- 28-02-0202 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Annuler le remboursement des prestations', 'liste-btn-prestations-annuler-rmb', 'bouton', '1'); ALTER TABLE `prestations_to_resa` ADD `noPiece` VARCHAR(255) NULL ; -- -- 05-03-2020 AK -- ALTER TABLE `bp_parametres` ADD UNIQUE INDEX libelle (libelle); DELETE FROM `champs_de_base` WHERE `equivalentSql` = 'dateEntree' AND `tableSql` = 'campagnes_domiciliation'; DELETE FROM `champs_de_base` WHERE `equivalentSql` = 'dateSortie' AND `tableSql` = 'campagnes_domiciliation'; ALTER TABLE `champs_de_base` ADD UNIQUE INDEX libelle (libelle); ALTER TABLE `champs_pms` ADD UNIQUE INDEX nom (nom); ALTER TABLE `domiciliations_etat` ADD UNIQUE INDEX nom (nom); ALTER TABLE `domiciliations_motifs` ADD UNIQUE INDEX nom (nom); UPDATE `droit_elements` SET `unique_name` = 'zfcadmin/general' WHERE `droit_elements`.`nom` = 'Général' AND `droit_elements`.`unique_name` = 'zfcadmin/residence'; UPDATE `droit_elements` SET `unique_name` = 'zfcadmin/gestionacces' WHERE `droit_elements`.`nom` = 'Gestion des accès' AND `droit_elements`.`unique_name` = 'zfcadmin/user'; ALTER TABLE `droit_elements` ADD UNIQUE INDEX unique_name (unique_name); ALTER TABLE `ideal_caf_mode` ADD UNIQUE INDEX mode (mode); -- TRUNCATE TABLE ideal_caf_situation_professionnelle; -- INSERT INTO `ideal_caf_situation_professionnelle` (`code`, `situation`) VALUES ('SAL', 'Salarié (e)'), ('APP', 'Apprenti'), ('SFP', 'Stage Formation Professionnelle'), ('ETI', 'Travailleur indépendant'), ('CHO', 'Chômeur'), ('ETU', 'Étudiant'), ('RET', 'Retraité (e)'), ('SSA', 'Sans activité'), ('AUT', 'Autres'); ALTER TABLE `ideal_caf_situation_professionnelle` ADD UNIQUE INDEX code (code); DELETE FROM `modules` WHERE `nom` = 'Général' AND `route` = 'residence'; ALTER TABLE `modules` ADD UNIQUE INDEX route (route), ADD UNIQUE INDEX nom (nom); ALTER TABLE `prestations_types` ADD UNIQUE INDEX code (code); ALTER TABLE `type_actions` ADD UNIQUE INDEX type (type); ALTER TABLE `type_bail` ADD UNIQUE INDEX typeBail (typeBail); ALTER TABLE `type_bien` ADD UNIQUE INDEX typeBien (typeBien); ALTER TABLE `type_champs_formulaire` ADD UNIQUE INDEX nom (nom); ALTER TABLE `type_document` ADD UNIQUE INDEX code (code); ALTER TABLE `type_domiciliations` ADD UNIQUE INDEX type (type); ALTER TABLE `type_email` ADD UNIQUE INDEX type (type); ALTER TABLE `type_prestation` ADD UNIQUE INDEX type (type); ALTER TABLE `pays` ADD UNIQUE INDEX pays (pays); -- 03-03-0202 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Gestion d\'accès', 'systeme-tab-access', 'menu', 7); -- -- Structure de la table `config_acces` -- CREATE TABLE IF NOT EXISTS `config_acces` ( `id` int(11) NOT NULL AUTO_INCREMENT, `formatMDP` enum('Fort','Moyen','Faible') NOT NULL DEFAULT 'Moyen', `renouvellementActif` enum('0','1') NOT NULL DEFAULT '0', `nbJoursRenouvellement` int(11) NOT NULL DEFAULT '0', `nbJoursAvantExpiration` int(11) NOT NULL DEFAULT '0' COMMENT 'Nombre de jours avant expiration on peut envoyer le mail', `typeUsager` enum('Utilisateur','Usager') NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 04-03-0202 FTH -- -- -- logements.cache : MAJ DES VALEUR NULL EN 0 -- update `logements` SET `cacher` = 0 WHERE `cacher` is null; ALTER TABLE `user` ADD `date_renouvellement_mdp` DATETIME NULL ; INSERT INTO `type_email` (`type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES ('Notification mot de passe expiré utilisateur', NULL, 1, NULL, NULL, 1, 'pwd_expired_uti'); -- -- 11-03-2020 JL : Dp App -- ALTER TABLE `champs_suivis` ADD `actifListeDp` TINYINT(1) NULL AFTER `valeurParDefaut`, ADD `nomListeDp` TEXT NULL AFTER `actifListeDp`; UPDATE `domiciliations_etat` SET `nom` = 'Actif' WHERE `domiciliations_etat`.`id` = 1; ALTER TABLE `demandes` ADD `idEdl` MEDIUMINT NULL AFTER `addedFrom`; ALTER TABLE `demandes` ADD `fromTabletteEdl` BOOLEAN NULL COMMENT 'Si l''état des lieux a été à partir d''un état des lieux depuis la tablette' AFTER `addedFrom`; -- -- 17-03-2020 FTH -- UPDATE `champs` SET `idTypeHtml`= 3 WHERE `nom` LIKE '%type logement choix%'; -- -- 18-03-2020 FTH -- ALTER TABLE `reservations` ADD `dateArriveeDemande` DATE NULL , ADD `dateDepartDemande` DATE NULL ; UPDATE `champs` SET `table` = 'reservations' WHERE `champs`.`code` = 'dateArriveeDemande'; UPDATE `champs` SET `table` = 'reservations' WHERE `champs`.`code` = 'dateDepartDemande'; -- -- 18-03-2020 AK -- ALTER TABLE `reservations_apipms` ADD `lastUpdateToPms` DATETIME NULL DEFAULT NULL AFTER `idPMS`, ADD `lastUpdateFromPms` DATETIME NULL DEFAULT NULL AFTER `lastUpdateToPms`; -- -- 24-03-2020 AK -- CREATE TABLE IF NOT EXISTS `locataires_apipms` ( `idLocataire` mediumint(8) unsigned NOT NULL, `idLocataireApiPms` mediumint(8) unsigned NOT NULL, `lastUpdateToPms` datetime DEFAULT NULL, `lastUpdateFromPms` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `locataires_apipms` ADD PRIMARY KEY (`idLocataire`,`idLocataireApiPms`), ADD KEY `idLocataire` (`idLocataire`), ADD KEY `idLocataireApiPms` (`idLocataireApiPms`) USING BTREE; -- -- 25-03-2020 AK -- ALTER TABLE `champs_formulaires` ADD `obligatoireSejour` TINYINT(1) NOT NULL DEFAULT '0' AFTER `modifiableResident`, ADD `renouvelable` TINYINT(1) NOT NULL DEFAULT '0' AFTER `obligatoireSejour`; ALTER TABLE `valeurs_dynamiques` ADD `finValidite` date DEFAULT NULL AFTER `idReservation`; -- AK 06-04-2020 : Gestion des prélèvements -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'prelevementJourDuMois', 'Jour de prélèvement', 2, 17, 100, 'prelevementJourDuMois', NULL, 5, 0, 'reservations'); -- 06-04-2020 FTH -- INSERT INTO `type_email` (`type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES ('Mail mot de passe oublié utilisateur', NULL, 1, NULL, NULL, 1, 'pwd_oublier_uti'); ALTER TABLE `user` ADD `isReset` TINYINT(1) NULL ; -- -- 09-04-2020 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logementAncienneResa', 'Logement anciènne réservation', '2', '31', '100', 'logementAncienneResa', '', '1', '1', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatAncienneResa', 'Etat anciènne réservation', '2', '31', '100', 'etatAncienneResa', '', '3', '1', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'soldeAncienneResa', 'Solde anciènne réservation', '2', '31', '100', 'soldeAncienneResa', '', '5', '1', ''); -- -- 15-04-2020 AK -- INSERT INTO `droit_elements` (`nom`, `unique_name`, `type`, `parent_id`) VALUES ('API sig', 'systeme-tab-api-sig', 'menu', 7); DROP TABLE IF EXISTS `api_sig`; CREATE TABLE IF NOT EXISTS `api_sig` ( `id` int(11) NOT NULL, `nom` varchar(255) NOT NULL, `className` varchar(100) NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `api_sig` ADD PRIMARY KEY (`id`); ALTER TABLE `api_sig` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; DROP TABLE IF EXISTS `api_setting_sig`; CREATE TABLE IF NOT EXISTS `api_setting_sig` ( `id` int(11) NOT NULL, `nom` varchar(255) NOT NULL, `cle` varchar(255) NOT NULL, `valeur` varchar(255) NOT NULL, `idAPI` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `api_setting_sig` ADD PRIMARY KEY (`id`); ALTER TABLE `api_setting_sig` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- 15-04-2020 FTH -- ALTER TABLE `suivis_historique` ADD `idUser` INT NULL ; -- -- 16-04-2020 FTH -- INSERT INTO `type_email` (`type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES ('Confirmation manuelle', NULL, 1, NULL, NULL, 0, 'confirmation_manuelle'); -- -- 22-04-2020 AK -- CREATE TABLE IF NOT EXISTS `champs_apisig` ( `idApiSig` tinyint(4) NOT NULL, `actionSig` enum('Value2Value','Id2Id','Id2Value') NOT NULL DEFAULT 'Value2Value', `tableSql` varchar(255) NOT NULL, `champSql` varchar(255) NOT NULL, `tableSig` varchar(255) DEFAULT NULL, `champSig` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `champs_apisig` ADD UNIQUE KEY `idApiSig_2` (`idApiSig`,`tableSql`,`champSql`), ADD UNIQUE KEY `idApiSig_3` (`idApiSig`,`tableSig`,`champSig`), ADD KEY `idApiSig` (`idApiSig`) USING BTREE; CREATE TABLE IF NOT EXISTS `valeurs_select_apisig` ( `idApiSig` tinyint(4) NOT NULL, `liste` varchar(255) NOT NULL, `idValeur` int(11) NOT NULL, `idValeurSig` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `valeurs_select_apisig` ADD UNIQUE KEY `idApiSig` (`idApiSig`), ADD UNIQUE KEY `idApiSig_2` (`idApiSig`,`liste`,`idValeur`), ADD UNIQUE KEY `idApiSig_3` (`idApiSig`,`liste`,`idValeurSig`), ADD KEY `liste` (`liste`); CREATE TABLE IF NOT EXISTS `locataires_apisig` ( `idLocataire` mediumint(8) unsigned NOT NULL, `idApiSig` tinyint(3) unsigned NOT NULL, `idLocataireSig` varchar(20) NOT NULL, `lastUpdateToSig` datetime DEFAULT NULL, `lastUpdateFromSig` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `locataires_apisig` ADD PRIMARY KEY (`idLocataire`,`idApiSig`,`idLocataireSig`), ADD UNIQUE KEY `idLocataire_idApiSig` (`idLocataire`,`idApiSig`) USING BTREE, ADD KEY `idApiSig` (`idApiSig`), ADD KEY `idLocataireSig` (`idLocataireSig`), ADD KEY `idLocataire` (`idLocataire`) USING BTREE; CREATE TABLE IF NOT EXISTS `reservations_apisig` ( `idReservation` mediumint(8) unsigned NOT NULL, `idApiSig` tinyint(3) unsigned NOT NULL, `idReservationSig` varchar(20) NOT NULL, `lastUpdateToSig` datetime DEFAULT NULL, `lastUpdateFromSig` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `reservations_apisig` ADD PRIMARY KEY (`idReservation`,`idApiSig`,`idReservationSig`), ADD UNIQUE KEY `idReservation_idApiSig` (`idReservation`,`idApiSig`) USING BTREE, ADD KEY `idApiSig` (`idApiSig`), ADD KEY `idReservationSig` (`idReservationSig`), ADD KEY `idReservation` (`idReservation`) USING BTREE; -- 17-04-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Dé-archivage réservation', 'liste-resa-btn-de-archivage', 'bouton', '1'); -- -- 20-04-2020 RM -- ALTER TABLE `locataires` ADD `nationalite` VARCHAR(100) NULL COMMENT 'Champ insérer via carredas ou autre api externe' AFTER `borneself_last_login`; ALTER TABLE `locataires` ADD `anneeEtude` VARCHAR(30) NULL COMMENT 'annee d''etude via carredas et autre api' AFTER `nationalite`; ALTER TABLE `locataires` ADD `cgv` BOOLEAN NULL DEFAULT FALSE COMMENT 'conditions generales de ventes' AFTER `anneeEtude`; ALTER TABLE `reservations` ADD `extras` VARCHAR(255) NULL COMMENT 'données supplémentaires' AFTER `dateDepartDemande`; ALTER TABLE `reservations` CHANGE `dateDepart` `dateDepart` DATE NULL; -- -- 27-04-2020 FTH -- ALTER TABLE `configuration` ADD `accepterCGV` TINYINT NOT NULL DEFAULT '0' ; ALTER TABLE `configuration` ADD `documentCGV` VARCHAR(255) NULL ; ALTER TABLE `configuration` ADD `texteCGV` TEXT NULL ; ALTER TABLE `configuration` ADD `majStatutLoge` TINYINT NOT NULL DEFAULT '0' , ADD `champStatutLoge` VARCHAR(255) NULL ; -- -- 28-04-2020 FTH -- CREATE TABLE IF NOT EXISTS `categorie_document_loge` ( `id` mediumint(9) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- 29-04-2020 RM -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Boutique en ligne', 'systeme-tab-boutique-en-ligne', 'menu', '7', '0', NULL); CREATE TABLE `boutique_en_ligne_configuration` ( `id` INT NOT NULL AUTO_INCREMENT , `menuResidentEnabled` BOOLEAN NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `boutique_en_ligne_configuration` (`id`, `menuResidentEnabled`) VALUES (NULL, '0'); -- -- 30-04-2020 AK -- DROP TABLE IF EXISTS `pays`; CREATE TABLE IF NOT EXISTS `pays` ( `id` int(11) NOT NULL, `pays` varchar(45) NOT NULL, `pays_en` varchar(45) NOT NULL, `code` varchar(2) NOT NULL, `codeIsoAlpha3` varchar(3) NOT NULL, `codeIsoNum` smallint(3) unsigned NOT NULL, `nationalite` varchar(45) NOT NULL, `paysADP` varchar(5) NOT NULL COMMENT 'Id du pays ADP', `natADP` varchar(5) NOT NULL COMMENT 'id de la nationnalité ADP' ) ENGINE=InnoDB AUTO_INCREMENT=206 DEFAULT CHARSET=utf8; ALTER TABLE `pays` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `pays` (`pays`), ADD UNIQUE KEY `code` (`code`), ADD UNIQUE KEY `nationalite` (`nationalite`), ADD UNIQUE KEY `pays_en` (`pays_en`), ADD UNIQUE KEY `codeIsoAlpha3` (`codeIsoAlpha3`), ADD UNIQUE KEY `codeIsoNum` (`codeIsoNum`); INSERT INTO `pays` (`id`, `pays`, `pays_en`, `code`, `codeIsoAlpha3`, `codeIsoNum`, `nationalite`, `paysADP`, `natADP`) VALUES (1, 'France', 'France', 'FR', 'FRA', 250, 'Française', '0010', '0010'), (2, 'Afghanistan', 'Afghanistan', 'AF', 'AFG', 4, 'Afghane', 'A010', 'A010'), (3, 'Afrique du Sud', 'South Africa', 'ZA', 'ZAF', 710, 'Sud-africaine', 'A020', 'A020'), (4, 'Albanie', 'Albania', 'AL', 'ALB', 8, 'Albanaise', 'A030', 'A030'), (5, 'Algérie', 'Algeria', 'DZ', 'DZA', 12, 'Algérienne', 'A040', 'A040'), (6, 'Allemagne', 'Germany', 'DE', 'DEU', 276, 'Allemande', 'A050', 'A050'), (7, 'États-Unis', 'United States', 'US', 'USA', 840, 'Américaine', 'E060', 'E060'), (8, 'Andorre', 'Andorra', 'AD', 'AND', 20, 'Andoranne', 'A055', 'A055'), (9, 'Royaume-Uni', 'United Kingdom', 'GB', 'GBR', 826, 'Britannique', 'A060', 'A060'), (10, 'Angola', 'Angola', 'AO', 'AGO', 24, 'Angolais', 'A070', 'A070'), (11, 'Arabie Saoudite', 'Saudi Arabia', 'SA', 'SAU', 682, 'Saoudienne', 'A080', 'A080'), (12, 'Argentine', 'Argentina', 'AR', 'ARG', 32, 'Argentine', 'A090', 'A090'), (13, 'Arménie', 'Armenia', 'AM', 'ARM', 51, 'Arménienne', 'A100', 'A100'), (14, 'Australie', 'Australia', 'AU', 'AUS', 36, 'Australienne', 'A110', 'A110'), (15, 'Autriche', 'Austria', 'AT', 'AUT', 40, 'Autrichienne', 'A120', 'A120'), (16, 'Azerbaïdjan', 'Azerbaijan', 'AZ', 'AZE', 31, 'Azerbaïdjanaise', 'A130', 'A130'), (17, 'Bahreïn', 'Bahrain', 'BH', 'BHR', 48, 'Bahreïnienne', 'B007', 'B007'), (18, 'Barbade', 'Barbados', 'BB', 'BRB', 52, 'Barbadienne', 'B005', 'B005'), (19, 'Belgique', 'Belgium', 'BE', 'BEL', 56, 'Belge', 'B030', 'B030'), (20, 'Bangladesh', 'Bangladesh', 'BD', 'BGD', 50, 'Bengladeshi', 'B010', 'B010'), (21, 'Bénin', 'Benin', 'BJ', 'BEN', 204, 'Béninoise', 'B040', 'B040'), (23, 'Bhoutan', 'Bhutan', 'BT', 'BTN', 64, 'Bhoutanais', 'B050', 'B050'), (24, 'Bélarus', 'Belarus', 'BY', 'BLR', 112, 'Biélorusse', 'B020', 'B020'), (25, 'Bolivie', 'Bolivia', 'BO', 'BOL', 68, 'Bolivienne', 'B070', 'B070'), (27, 'Bosnie-Herzégovine', 'Bosnia and Herzegovina', 'BA', 'BIH', 70, 'Bosniaque', 'B080', 'B080'), (28, 'Brésil', 'Brazil', 'BR', 'BRA', 76, 'Brésilienne', 'B100', 'B100'), (29, 'Bulgarie', 'Bulgaria', 'BG', 'BGR', 100, 'Bulgare', 'B110', 'B110'), (30, 'Burkina Faso', 'Burkina Faso', 'BF', 'BFA', 854, 'Burkinabe', 'B120', 'B120'), (31, 'Burundi', 'Burundi', 'BI', 'BDI', 108, 'Burundaise', 'B130', 'B130'), (32, 'Cambodge', 'Cambodia', 'KH', 'KHM', 116, 'Cambodgienne', 'C010', 'C010'), (33, 'Cameroun', 'Cameroon', 'CM', 'CMR', 120, 'Camerounaise', 'C020', 'C020'), (34, 'Canada', 'Canada', 'CA', 'CAN', 124, 'Canadienne', 'C030', 'C030'), (35, 'Cap-vert', 'Cape Verde', 'CV', 'CPV', 132, 'Cap-Verdienne', 'C040', 'C040'), (36, 'République Centrafricaine', 'Central African', 'CF', 'CAF', 140, 'Centrafricaine', 'C050', 'C050'), (37, 'Chili', 'Chile', 'CL', 'CHL', 152, 'Chilienne', 'C060', 'C060'), (38, 'Chine', 'China', 'CN', 'CHN', 156, 'Chinoise', 'C070', 'C070'), (40, 'Chypre', 'Cyprus', 'CY', 'CYP', 196, 'Chypriote', 'C080', 'C080'), (41, 'Colombie', 'Colombia', 'CO', 'COL', 170, 'Colombienne', 'C090', 'C090'), (42, 'Comores', 'Comoros', 'KM', 'COM', 174, 'Comorienne', 'C100', 'C100'), (43, 'République du Congo', 'Republic of the Congo', 'CG', 'COG', 178, 'Congolaise (Congo Brazzaville)', 'C110', 'C110'), (44, 'République Démocratique du Congo', 'The Democratic Republic Of The Congo', 'CD', 'COD', 180, 'Congolaise (Congo Kinshasa)', 'C120', 'C120'), (45, 'République Populaire Démocratique de Corée', 'Democratic People''s Republic of Korea', 'KP', 'PRK', 408, 'Coréenne du Nord', 'C140', 'C140'), (46, 'République de Corée', 'Republic of Korea', 'KR', 'KOR', 410, 'Coréenne du Sud', 'C130', 'C130'), (47, 'Costa Rica', 'Costa Rica', 'CR', 'CRI', 188, 'Costaricienne', 'C150', 'C150'), (48, 'Côte d''Ivoire', 'Côte d''Ivoire', 'CI', 'CIV', 384, 'Ivoirienne', 'C160', 'C160'), (49, 'Croatie', 'Croatia', 'HR', 'HRV', 191, 'Croate', 'C170', 'C170'), (50, 'Cuba', 'Cuba', 'CU', 'CUB', 192, 'Cubaine', 'C180', 'C180'), (51, 'Danemark', 'Denmark', 'DK', 'DNK', 208, 'Danoise', 'D010', 'D010'), (52, 'Égypte', 'Egypt', 'EG', 'EGY', 818, 'Egyptienne', 'E010', 'E010'), (53, 'Émirats Arabes Unis', 'United Arab Emirates', 'AE', 'ARE', 784, 'Emirati (Emirats Arabes Unis)', 'E015', 'E015'), (54, 'Équateur', 'Ecuador', 'EC', 'ECU', 218, 'Equatorienne', 'E020', 'E020'), (55, 'Érythrée', 'Eritrea', 'ER', 'ERI', 232, 'Erythréenne', 'E030', 'E030'), (56, 'Espagne', 'Spain', 'ES', 'ESP', 724, 'Espagnole', 'E040', 'E040'), (57, 'Estonie', 'Estonia', 'EE', 'EST', 233, 'Estonienne', 'E050', 'E050'), (58, 'Éthiopie', 'Ethiopia', 'ET', 'ETH', 231, 'Ethiopienne', 'E070', 'E070'), (59, 'Finlande', 'Finland', 'FI', 'FIN', 246, 'Finlandaise', 'F010', 'F010'), (61, 'Gabon', 'Gabon', 'GA', 'GAB', 266, 'Gabonaise', 'G010', 'G010'), (62, 'Gambie', 'Gambia', 'GM', 'GMB', 270, 'Gambienne', 'G020', 'G020'), (63, 'Géorgie', 'Georgia', 'GE', 'GEO', 268, 'Géorgienne', 'G030', 'G030'), (64, 'Ghana', 'Ghana', 'GH', 'GHA', 288, 'Ghanéenne', 'G040', 'G040'), (65, 'Grèce', 'Greece', 'GR', 'GRC', 300, 'Grecque', 'G050', 'G050'), (66, 'Guinée', 'Guinea', 'GN', 'GIN', 324, 'Guinéenne', 'G070', 'G070'), (67, 'Guinée-Bissau', 'Guinea-Bissau', 'GW', 'GNB', 624, 'Guinéenne (Bissau-Guinéenne)', 'G080', 'G080'), (68, 'Haïti', 'Haiti', 'HT', 'HTI', 332, 'Haitienne', 'H010', 'H010'), (69, 'Honduras', 'Honduras', 'HN', 'HND', 340, 'Hondurienne', 'H020', 'H020'), (70, 'Hongrie', 'Hungary', 'HU', 'HUN', 348, 'Hongroise', 'H030', 'H030'), (72, 'Mauritanie', 'Mauritania', 'MR', 'MRT', 478, 'Mauritanienne', 'M090', 'M090'), (73, 'Inde', 'India', 'IN', 'IND', 356, 'Indienne', 'I010', 'I010'), (74, 'Indonésie', 'Indonesia', 'ID', 'IDN', 360, 'Indonesienne', 'I020', 'I020'), (75, 'République Islamique d''Iran', 'Islamic Republic of Iran', 'IR', 'IRN', 364, 'Iranienne', 'I040', 'I040'), (76, 'Iraq', 'Iraq', 'IQ', 'IRQ', 368, 'Irakienne', 'I030', 'I030'), (77, 'Irlande', 'Ireland', 'IE', 'IRL', 372, 'Irlandaise', 'I050', 'I050'), (78, 'Islande', 'Iceland', 'IS', 'ISL', 352, 'Islandaise', 'I060', 'I060'), (79, 'Israël', 'Israel', 'IL', 'ISR', 376, 'Israélienne', 'I070', 'I070'), (80, 'Italie', 'Italy', 'IT', 'ITA', 380, 'Italienne', 'I080', 'I080'), (81, 'Jamaïque', 'Jamaica', 'JM', 'JAM', 388, 'Jamaicaine', 'J010', 'J010'), (82, 'Japon', 'Japan', 'JP', 'JPN', 392, 'Japonaise', 'J020', 'J020'), (83, 'Jordanie', 'Jordan', 'JO', 'JOR', 400, 'Jordanienne', 'J030', 'J030'), (84, 'Kazakhstan', 'Kazakhstan', 'KZ', 'KAZ', 398, 'Kazakh', 'K010', 'K010'), (85, 'Kenya', 'Kenya', 'KE', 'KEN', 404, 'Kényanne', 'K020', 'K020'), (86, 'Kirghizistan', 'Kyrgyzstan', 'KG', 'KGZ', 417, 'Kirghiz', 'K030', 'K030'), (88, 'Koweït', 'Kuwait', 'KW', 'KWT', 414, 'Kowéïtienne', 'K050', 'K050'), (89, 'République Démocratique Populaire Lao', 'Lao People''s Democratic Republic', 'LA', 'LAO', 418, 'Laotienne', 'L010', 'L010'), (90, 'Lettonie', 'Latvia', 'LV', 'LVA', 428, 'Lettone', 'L030', 'L030'), (91, 'Liban', 'Lebanon', 'LB', 'LBN', 422, 'Libanaise', 'L040', 'L040'), (92, 'Libéria', 'Liberia', 'LR', 'LBR', 430, 'Libérienne', 'L050', 'L050'), (93, 'Jamahiriya Arabe Libyenne', 'Libyan Arab Jamahiriya', 'LY', 'LBY', 434, 'Libyenne', 'L080', 'L080'), (94, 'Lituanie', 'Lithuania', 'LT', 'LTU', 440, 'Lithuanienne', 'L060', 'L060'), (95, 'Luxembourg', 'Luxembourg', 'LU', 'LUX', 442, 'Luxembourgeoise', 'L070', 'L070'), (96, 'L''ex-République Yougoslave de Macédoine', 'The Former Yugoslav Republic of Macedonia', 'MK', 'MKD', 807, 'Macédonienne', 'M010', 'M010'), (97, 'Malaisie', 'Malaysia', 'MY', 'MYS', 458, 'Malaisienne', 'M030', 'M030'), (98, 'Malawi', 'Malawi', 'MW', 'MWI', 454, 'Malawites', 'M040', 'M040'), (99, 'Madagascar', 'Madagascar', 'MG', 'MDG', 450, 'Malgache', 'M020', 'M020'), (100, 'Mali', 'Mali', 'ML', 'MLI', 466, 'Malienne', 'M050', 'M050'), (101, 'Maroc', 'Morocco', 'MA', 'MAR', 504, 'Marocaine', 'M070', 'M070'), (102, 'Mexique', 'Mexico', 'MX', 'MEX', 484, 'Mexicaine', 'M100', 'M100'), (103, 'République de Moldova', 'Republic of Moldova', 'MD', 'MDA', 498, 'Moldave', 'M110', 'M110'), (104, 'Monaco', 'Monaco', 'MC', 'MCO', 492, 'Monégasque', 'M115', 'M115'), (105, 'Népal', 'Nepal', 'NP', 'NPL', 524, 'Népalaise', 'N020', 'N020'), (106, 'Nicaragua', 'Nicaragua', 'NI', 'NIC', 558, 'Nicaraguayenne', 'N030', 'N030'), (107, 'Niger', 'Niger', 'NE', 'NER', 562, 'Nigérienne', 'N040', 'N040'), (108, 'Nigéria', 'Nigeria', 'NG', 'NGA', 566, 'Nigérianne', 'N050', 'N050'), (109, 'Norvège', 'Norway', 'NO', 'NOR', 578, 'Norvégienne', 'N060', 'N060'), (110, 'Nouvelle Calédonie', 'New Caledonia', 'NC', 'NCL', 540, 'Nouvelle Calédonie', '80', '80'), (111, 'Nouvelle-Zélande', 'New Zealand', 'NZ', 'NZL', 554, 'Néozélandaise', 'N070', 'N070'), (112, 'Ouganda', 'Uganda', 'UG', 'UGA', 800, 'Ougandaise', 'O020', 'O020'), (113, 'Ouzbékistan', 'Uzbekistan', 'UZ', 'UZB', 860, 'Ouzbek', 'O030', 'O030'), (114, 'Pakistan', 'Pakistan', 'PK', 'PAK', 586, 'Pakistanaise', 'P010', 'P010'), (115, 'Territoire Palestinien Occupé', 'Occupied Palestinian Territory', 'PS', 'PSE', 275, 'Palestinienne', 'P020', 'P020'), (116, 'Pays-Bas', 'Netherlands', 'NL', 'NLD', 528, 'Néerlandaise', 'P060', 'P060'), (117, 'Pérou', 'Peru', 'PE', 'PER', 604, 'Péruvienne', 'P070', 'P070'), (118, 'Philippines', 'Philippines', 'PH', 'PHL', 608, 'Philippine', 'P080', 'P080'), (119, 'Pologne', 'Poland', 'PL', 'POL', 616, 'Polonaise', 'P090', 'P090'), (120, 'Portugal', 'Portugal', 'PT', 'PRT', 620, 'Portugaise', 'P100', 'P100'), (121, 'Qatar', 'Qatar', 'QA', 'QAT', 634, 'Qatari', 'Q010', 'Q010'), (122, 'République Dominicaine', 'Dominican Republic', 'DO', 'DOM', 214, 'Dominicaine (Rép De Dominique)', 'D030', 'D030'), (123, 'République Tchèque', 'Czech Republic', 'CZ', 'CZE', 203, 'Tchèque', 'T040', 'T040'), (124, 'Roumanie', 'Romania', 'RO', 'ROU', 642, 'Roumaine', 'R010', 'R010'), (125, 'Fédération de Russie', 'Russian Federation', 'RU', 'RUS', 643, 'Russe', 'R020', 'R020'), (126, 'Rwanda', 'Rwanda', 'RW', 'RWA', 646, 'Rwandaise', 'R030', 'R030'), (127, 'El Salvador', 'El Salvador', 'SV', 'SLV', 222, 'Salvadorienne', 'S010', 'S010'), (128, 'Samoa', 'Samoa', 'WS', 'WSM', 882, 'American Samoa', 'S012', 'S012'), (129, 'Sao Tomé-et-Principe', 'Sao Tome and Principe', 'ST', 'STP', 678, 'Santoméenne', 'S015', 'S015'), (130, 'Sénégal', 'Senegal', 'SN', 'SEN', 686, 'Sénégalaise', 'S020', 'S020'), (131, 'Serbie', 'Serbie', 'RS', 'SRB', 688, 'Serbe', 'Y030', 'Y030'), (132, 'Singapour', 'Singapore', 'SG', 'SGP', 702, 'Singapourienne', 'S035', 'S035'), (133, 'Slovaquie', 'Slovakia', 'SK', 'SVK', 703, 'Slovaque', 'S040', 'S040'), (134, 'Slovénie', 'Slovenia', 'SI', 'SVN', 705, 'Slovène', 'S050', 'S050'), (135, 'Soudan', 'Sudan', 'SD', 'SDN', 736, 'Soudanaise', 'S070', 'S070'), (136, 'Sri Lanka', 'Sri Lanka', 'LK', 'LKA', 144, 'Sri-lankaise', 'S080', 'S080'), (137, 'Suède', 'Sweden', 'SE', 'SWE', 752, 'Suèdoise', 'S090', 'S090'), (138, 'Suisse', 'Switzerland', 'CH', 'CHE', 756, 'Suisse', 'S100', 'S100'), (139, 'République Arabe Syrienne', 'Syrian Arab Republic', 'SY', 'SYR', 760, 'Syrienne', 'S130', 'S130'), (140, 'Taïwan', 'Taiwan', 'TW', 'TWN', 158, 'Taiwanaise', 'T015', 'T015'), (141, 'République-Unie de Tanzanie', 'United Republic Of Tanzania', 'TZ', 'TZA', 834, 'Tanzanienne', 'T020', 'T020'), (142, 'Tchad', 'Chad', 'TD', 'TCD', 148, 'Tchadienne', 'T030', 'T030'), (143, 'Thaïlande', 'Thailand', 'TH', 'THA', 764, 'Thailandaise', 'T050', 'T050'), (144, 'Togo', 'Togo', 'TG', 'TGO', 768, 'Togolaise', 'T060', 'T060'), (145, 'Trinité-et-Tobago', 'Trinidad and Tobago', 'TT', 'TTO', 780, 'Trinidadienne', 'T067', 'T067'), (146, 'Tunisie', 'Tunisia', 'TN', 'TUN', 788, 'Tunisienne', 'T070', 'T070'), (147, 'Turkménistan', 'Turkmenistan', 'TM', 'TKM', 795, 'Turkmène', 'T080', 'T080'), (148, 'Turquie', 'Turkey', 'TR', 'TUR', 792, 'Turque', 'T001', 'T001'), (149, 'Ukraine', 'Ukraine', 'UA', 'UKR', 804, 'Ukrainienne', 'U010', 'U010'), (150, 'Uruguay', 'Uruguay', 'UY', 'URY', 858, 'Uruguayienne', 'U020', 'U020'), (152, 'Venezuela', 'Venezuela', 'VE', 'VEN', 862, 'Vénézuélienne', 'V010', 'V010'), (153, 'Viet Nam', 'Vietnam', 'VN', 'VNM', 704, 'Vietnamienne', '99', '99'), (154, 'Yémen', 'Yemen', 'YE', 'YEM', 887, 'Yéménite', 'Y010', 'Y010'), (155, 'Zimbabwe', 'Zimbabwe', 'ZW', 'ZWE', 716, 'Zimbabwéenne', 'Z020', 'Z020'), (157, 'Oman', 'Oman', 'OM', 'OMN', 512, 'Omanaise', 'O010', 'O010'), (158, 'Guatemala', 'Guatemala', 'GT', 'GTM', 320, 'Guatemaltéque', 'G060', 'G060'), (159, 'Maurice', 'Mauritius', 'MU', 'MUS', 480, 'Mauricienne', 'M080', 'M080'), (160, 'Antigua-et-Barbuda', 'Antigua and Barbuda', 'AG', 'ATG', 28, 'Antigua-et-Barbuda', '', ''), (162, 'Brunéi Darussalam', 'Brunei Darussalam', 'BN', 'BRN', 96, 'Brunéi Darussalam', '', ''), (163, 'Bahamas', 'Bahamas', 'BS', 'BHS', 44, 'Bahamas', '', ''), (164, 'Botswana', 'Botswana', 'BW', 'BWA', 72, 'Botswana', '', ''), (165, 'Belize', 'Belize', 'BZ', 'BLZ', 84, 'Belize', '', ''), (166, 'Djibouti', 'Djibouti', 'DJ', 'DJI', 262, 'Djibouti', '', ''), (167, 'Dominique', 'Dominica', 'DM', 'DMA', 212, 'Dominique', '', ''), (168, 'Fidji', 'Fiji', 'FJ', 'FJI', 242, 'Fidji', '', ''), (169, 'États Fédérés de Micronésie', 'Federated States of Micronesia', 'FM', 'FSM', 583, 'États Fédérés de Micronésie', '', ''), (170, 'Grenade', 'Grenada', 'GD', 'GRD', 308, 'Grenade', '', ''), (171, 'Guinée Équatoriale', 'Equatorial Guinea', 'GQ', 'GNQ', 226, 'Guinée Équatoriale', '', ''), (172, 'Guyana', 'Guyana', 'GY', 'GUY', 328, 'Guyana', '', ''), (173, 'Hong-Kong', 'Hong Kong', 'HK', 'HKG', 344, 'Hong-Kong', '', ''), (174, 'Saint-Kitts-et-Nevis', 'Saint Kitts and Nevis', 'KN', 'KNA', 659, 'Saint-Kitts-et-Nevis', '', ''), (175, 'Sainte-Lucie', 'Saint Lucia', 'LC', 'LCA', 662, 'Sainte-Lucie', '', ''), (176, 'Liechtenstein', 'Liechtenstein', 'LI', 'LIE', 438, 'Liechtenstein', '', ''), (177, 'Lesotho', 'Lesotho', 'LS', 'LSO', 426, 'Lesotho', '', ''), (178, 'Monténégro', 'Monténégro', 'ME', 'MNE', 499, 'Monténégro', '', ''), (179, 'Myanmar', 'Myanmar', 'MM', 'MMR', 104, 'Myanmar', '', ''), (180, 'Mongolie', 'Mongolia', 'MN', 'MNG', 496, 'Mongolie', '', ''), (181, 'Malte', 'Malta', 'MT', 'MLT', 470, 'Malte', '', ''), (182, 'Maldives', 'Maldives', 'MV', 'MDV', 462, 'Maldives', '', ''), (183, 'Mozambique', 'Mozambique', 'MZ', 'MOZ', 508, 'Mozambique', '', ''), (184, 'Namibie', 'Namibia', 'NA', 'NAM', 516, 'Namibie', '', ''), (185, 'Nauru', 'Nauru', 'NR', 'NRU', 520, 'Nauru', '', ''), (186, 'Panama', 'Panama', 'PA', 'PAN', 591, 'Panama', '', ''), (187, 'Papouasie-Nouvelle-Guinée', 'Papua New Guinea', 'PG', 'PNG', 598, 'Papouasie-Nouvelle-Guinée', '', ''), (188, 'Porto Rico', 'Puerto Rico', 'PR', 'PRI', 630, 'Porto Rico', '', ''), (189, 'Paraguay', 'Paraguay', 'PY', 'PRY', 600, 'Paraguay', '', ''), (192, 'Seychelles', 'Seychelles', 'SC', 'SYC', 690, 'Seychelles', '', ''), (193, 'Sierra Leone', 'Sierra Leone', 'SL', 'SLE', 694, 'Sierra Leone', '', ''), (194, 'Saint-Marin', 'San Marino', 'SM', 'SMR', 674, 'Saint-Marin', '', ''), (195, 'Somalie', 'Somalia', 'SO', 'SOM', 706, 'Somalie', '', ''), (196, 'Suriname', 'Suriname', 'SR', 'SUR', 740, 'Suriname', '', ''), (197, 'Swaziland', 'Swaziland', 'SZ', 'SWZ', 748, 'Swaziland', '', ''), (198, 'Tadjikistan', 'Tajikistan', 'TJ', 'TJK', 762, 'Tadjikistan', '', ''), (199, 'Timor-Leste', 'Timor-Leste', 'TL', 'TLS', 626, 'Timor-Leste', '', ''), (200, 'Tonga', 'Tonga', 'TO', 'TON', 776, 'Tonga', '', ''), (201, 'Tuvalu', 'Tuvalu', 'TV', 'TUV', 798, 'Tuvalu', '', ''), (202, 'Vanuatu', 'Vanuatu', 'VU', 'VUT', 548, 'Vanuatu', '', ''), (203, 'Zambie', 'Zambia', 'ZM', 'ZMB', 894, 'Zambie', '', ''), (204, 'Autre', 'Other', '__', '___', 0, 'Autre', '', ''); -- -- 30-04-2020 FTH -- ALTER TABLE `logements` ADD `dateCreation` DATETIME NULL , ADD `idAncienLogement` INT NULL , ADD `idNouveauLogement` INT NULL ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Duplication logement', 'listeLoge-btn-dupliquer', 'bouton', '1'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_dateCreation', 'Date création logement', 1, 8, 100, 'dateCreation', '', 2, 1, 'logements'); -- -- 08-05-2020 FTTH ---------- GESTION CATALOGUE ------------ -- -- -- Structure de la table `catalogue_type` -- CREATE TABLE IF NOT EXISTS `catalogue_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `type` enum('proprietaire','autre') NOT NULL, `dateCreationTypeCatalogue` DATE NOT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `champs_catalogue` -- CREATE TABLE IF NOT EXISTS `champs_catalogue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libelle` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `classCss` varchar(255) DEFAULT NULL, `idCss` varchar(255) NOT NULL, `options` text, `description` text, `obligatoire` tinyint(1) NOT NULL, `equivalentSql` varchar(255) DEFAULT NULL, `actionJS` varchar(255) DEFAULT NULL, `active` int(1) NOT NULL, `sourceListe` varchar(100) DEFAULT NULL, `ordre` tinyint(4) NOT NULL, `column` tinyint(1) NOT NULL DEFAULT '1', `row` int(2) NOT NULL, `idType` tinyint(4) NOT NULL, `idsCampagne` varchar(100) DEFAULT NULL, `nature` enum('standard','libre','texte') NOT NULL DEFAULT 'standard', `tailleColumn` tinyint(1) NOT NULL DEFAULT '1', `tailleRow` tinyint(1) NOT NULL DEFAULT '1', `nomXML` varchar(200) DEFAULT NULL, `size` smallint(6) DEFAULT NULL, `acces` tinyint(1) NOT NULL DEFAULT '1', `obligatoireDemande` tinyint(1) NOT NULL, `modifiable` tinyint(1) NOT NULL DEFAULT '1', `equivalentWS` varchar(255) DEFAULT NULL, `valeurMin` int(11) DEFAULT '0', `valeurMax` int(11) DEFAULT '0', `idTypeCatalogue` int(11) NOT NULL, `numOrdre` tinyint(4) NOT NULL DEFAULT '0', `valeurParDefaut` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `champs_catalogue_dateinterval` -- CREATE TABLE IF NOT EXISTS `champs_catalogue_dateinterval` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dateMin` enum('unlimited','limited') NOT NULL DEFAULT 'unlimited', `dateMax` enum('unlimited','limited','dateNow') NOT NULL DEFAULT 'unlimited', `nombreJoursMin` int(11) NOT NULL, `nombreJoursMax` int(11) NOT NULL, `idChamp` int(11) NOT NULL, `uniteMin` enum('day','week','month','year') DEFAULT NULL, `uniteMax` enum('day','week','month','year') DEFAULT NULL, `dateMinFixe` date DEFAULT NULL, `dateMaxFixe` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `catalogues` -- CREATE TABLE IF NOT EXISTS `catalogues` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idResa` int(11) DEFAULT NULL, `idDp` mediumint(9) DEFAULT NULL, `archive` tinyint(1) NOT NULL DEFAULT '0', `deleted` tinyint(1) NOT NULL DEFAULT '0', `idTypeCatalogue` int(11) NOT NULL, `dateCreationCatalogue` date DEFAULT NULL, `heureCreationCatalogue` time DEFAULT NULL, `idLogement` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idResa` (`idResa`), KEY `archive` (`archive`), KEY `deleted` (`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `catalogue_historique` -- CREATE TABLE IF NOT EXISTS `catalogue_historique` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idResa` int(11) DEFAULT NULL, `idDp` mediumint(9) DEFAULT NULL, `type` varchar(255) NOT NULL, `commentaire` text NOT NULL, `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `idCatalogue` int(11) NOT NULL, `idUser` int(11) DEFAULT NULL, `idLogement` mediumint(9) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `catalogue_listes` -- CREATE TABLE IF NOT EXISTS `catalogue_listes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `idUser` int(11) NOT NULL, `idEtat` tinyint(4) NOT NULL, `deleted` tinyint(1) NOT NULL, `idTypeCatalogue` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `catalogue_liste_profile` -- CREATE TABLE IF NOT EXISTS `catalogue_liste_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idListe` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `catalogue_savedstate` -- CREATE TABLE IF NOT EXISTS `catalogue_savedstate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `savedState` text NOT NULL, `idListe` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Structure de la table `catalogue_values` -- CREATE TABLE IF NOT EXISTS `catalogue_values` ( `id` int(11) NOT NULL AUTO_INCREMENT, `valeur` text, `idChamp` int(11) NOT NULL, `idResa` int(11) DEFAULT NULL, `idDp` mediumint(9) DEFAULT NULL, `idCatalogue` int(11) NOT NULL, `idLogement` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idChamp` (`idChamp`), KEY `idResa` (`idResa`), KEY `idCatalogue` (`idCatalogue`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Structure de la table `actions_conditions_catalogue` -- CREATE TABLE IF NOT EXISTS `actions_conditions_catalogue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChamp` int(11) NOT NULL, `idAction` int(11) NOT NULL, `typeValeur` enum('exact','interval') NOT NULL, `operateur` tinyint(4) NOT NULL, `valeurExact` varchar(255) DEFAULT NULL, `valeurMin` varchar(255) DEFAULT NULL, `valeurMax` varchar(255) DEFAULT NULL, `champDebut` int(11) DEFAULT NULL, `champFin` int(11) DEFAULT NULL, `unite` varchar(20) DEFAULT NULL, `idChampTexte` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Structure de la table `actions_js_catalogue` -- CREATE TABLE IF NOT EXISTS `actions_js_catalogue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChampAttache` int(11) NOT NULL, `idChamp` int(11) NOT NULL, `idType` int(11) NOT NULL, `valeur` varchar(255) DEFAULT NULL, `valeurChamp` varchar(255) DEFAULT NULL, `texte` text, `valeursSelect` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Structure de la table `catalogue_logement` -- CREATE TABLE IF NOT EXISTS `catalogue_logement` ( `idCatalogue` int(11) NOT NULL, `idLogement` int(11) NOT NULL, PRIMARY KEY (`idCatalogue`,`idLogement`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `champs_association` ADD `idTypeCatalogue` MEDIUMINT NULL COMMENT 'Champ pour le mode catalogue' ; INSERT INTO `droit_elements` (`nom`, `unique_name`, `type`, `parent_id`) VALUES ('Catalogues', 'systeme-tab-catalogue', 'menu', 7); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Catalogues', 'zfcadmin/catalogue', 'menu', '4'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Catalogues', 'catalogue', 'Reservation\\Controller\\Catalogue', 'index', '30'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode catalogue : Suppression', 'mode-input-catalogue-btn-delete', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode catalogue : Modification', 'mode-input-catalogue-btn-save', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode catalogue : Choix de champs', 'mode-input-catalogue-btn-champs', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Archivage catalogue', 'liste-btn-archive-catalogue', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification inline catalogue', 'liste-btn-modif-inline-catalogue', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Enregistrement liste catalogue', 'liste-btn-save-catalogue', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Envois de mail liste catalogue', 'liste-btn-envoyer-mail-catalogue', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification groupé catalogue', 'liste-btn-modif-group-catalogue', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Duplication catalogue', 'liste-btn-dupliquer-catalogue', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Ajout catalogues en lot', 'liste-btn-addlot-catalogue', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Affecté des logements aux catalogues', 'liste-btn-affecter-loge-to-catalogue', 'bouton', '1'); ALTER TABLE `catalogues` ADD `idPMSProp` VARCHAR(255) NULL , ADD `compteComptable` VARCHAR(255) NULL ; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`) VALUES (NULL, 'ID PMS propriétaire', 'varchar(255)', 'idPMSProp', 'catalogues', NULL, 2, 1); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`) VALUES (NULL, 'Compte comptable propriétaire', 'varchar(255)', 'compteComptable', 'catalogues', NULL, 2, 1); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idPMSProp', 'ID PMS propriétaire', '13', '30', '100', 'idPMSProp', '', '1', '0', 'catalogues'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'compteComptable', 'Compte comptable propriétaire', '13', '30', '100', 'compteComptable', '', '1', '0', 'catalogues'); -- -- 11-05-2020 AK -- ALTER TABLE `champs_apisig` ADD `idType` smallint unsigned NOT NULL DEFAULT '1' AFTER `champSig`, ADD `liste` varchar(45) DEFAULT NULL AFTER `idType`; ALTER TABLE `reservations_apisig` ADD `lastInfoSig` text DEFAULT NULL AFTER `lastUpdateFromSig`; ALTER TABLE `valeurs_select_apisig` MODIFY `idValeur` varchar(255) NOT NULL, DROP INDEX `idAPiSig`; ALTER TABLE `pays` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `valeurs_dynamiques` ADD KEY `finValidite` (`finValidite`); INSERT INTO `type_liste` (`id`, `type`) VALUES (14, 'Tous'); INSERT INTO `type_liste` (`id`, `type`) VALUES (15, 'Serrures'); -- -- 12-05-2020 RM -- INSERT INTO `api_setting_sig` (`id`, `nom`, `cle`, `valeur`, `idAPI`) VALUES (NULL, 'apiExterneActive', 'apiExterneActive', '0', '0'); -- -- 15-05-2020 RM -- INSERT INTO `prestations_types` (`id`, `code`, `description`) VALUES (NULL, 'BOU', 'Boutique en ligne'); ALTER TABLE `prestations` ADD `prixHT` BOOLEAN NULL DEFAULT FALSE AFTER `modePrestation`; ALTER TABLE `prestations` ADD `tva` INT NULL AFTER `prixHT`; ALTER TABLE `prestations` ADD `quantite` MEDIUMINT NULL COMMENT 'quantités de prestations si c''est de type boutique et unitaire' AFTER `tva`; -- -- 18-05-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Créer un nouveau catalogue', 'liste-btn-creer-catalogue', 'bouton', '1'); -- -- 19-05-2020 FTH -- -- -- Structure de la table `catalogue_dp` -- CREATE TABLE IF NOT EXISTS `catalogue_dp` ( `idCatalogue` int(11) NOT NULL, `idDp` int(11) NOT NULL, PRIMARY KEY (`idCatalogue`,`idDp`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Structure de la table `catalogue_reservation` -- CREATE TABLE IF NOT EXISTS `catalogue_reservation` ( `idCatalogue` int(11) NOT NULL, `idResa` int(11) NOT NULL, PRIMARY KEY (`idCatalogue`,`idResa`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Structure de la table `catalogue_suivis` -- CREATE TABLE IF NOT EXISTS `catalogue_suivis` ( `idCatalogue` int(11) NOT NULL, `idSuivis` int(11) NOT NULL, PRIMARY KEY (`idCatalogue`,`idSuivis`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `catalogue_historique` ADD `idSuivis` INT NULL ; ALTER TABLE `catalogue_values` DROP `idResa`, DROP `idDp`, DROP `idLogement`; ALTER TABLE `catalogues` DROP `idResa`, DROP `idDp`, DROP `idLogement`; -- -- 20-05-2020 RM -- ALTER TABLE `prestations` ADD `periodes` TEXT NULL AFTER `quantite`; -- -- 22-05-2020 RM -- ALTER TABLE `prestations_periodes` ADD `quantites` MEDIUMINT NULL AFTER `joursInclus`; ALTER TABLE `prestations_periodes` ADD `montant` MEDIUMINT NULL AFTER `quantites`; ALTER TABLE `prestations_periodes` CHANGE `joursInclus` `joursInclus` VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL; ALTER TABLE `prestations_periodes` ADD `idPrestation` SMALLINT NULL AFTER `montant`; -- -- 25-05-2020 AK -- ALTER TABLE `champs_logements` ADD UNIQUE KEY `code` (`code`); -- -- 28-05-2020 RM -- CREATE TABLE `prestations_boutique` ( `id` MEDIUMINT NULL AUTO_INCREMENT , `activerPortail` BOOLEAN NOT NULL DEFAULT FALSE , `activerFormDemande` BOOLEAN NOT NULL DEFAULT FALSE , `soumiseValidation` BOOLEAN NOT NULL DEFAULT FALSE , `type` ENUM('nuitee','unitaire','service','assurance') NULL , `nom` VARCHAR(255) NULL , `description` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL , `active` BOOLEAN NOT NULL DEFAULT FALSE , `residences` VARCHAR(50) NOT NULL COMMENT 'list de résidences' , `idPrestation` MEDIUMINT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `prestations_boutique` CHANGE `idPrestation` `idPrestation` VARCHAR(9) NULL; -- -- 29-05-2020 RM -- ALTER TABLE `prestations_boutique` ADD `deleted` BOOLEAN NULL DEFAULT FALSE AFTER `idPrestation`; ALTER TABLE `prestations_boutique` CHANGE `residences` `idResidences` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'list de résidences'; ALTER TABLE `prestations_periodes` ADD `idPrestationBoutique` MEDIUMINT NULL AFTER `idPrestation`; ALTER TABLE `prestations_boutique` ADD `quantites` MEDIUMINT NULL AFTER `idPrestation`; -- -- 04-06-2020 FTH -- INSERT INTO `demandes_etat_travaux` (`id`, `nom`) VALUES ('4', 'Impossibilité d''intervention'); ALTER TABLE `demandes` ADD `cause` TEXT NULL AFTER `archive`; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'demande_cause', 'Cause demande', 5, 9, 255, 'cause', NULL, 1, 1, 'demandes'); -- -- 05-06-2020 RM -- ALTER TABLE `prestations_boutique` ADD `dureeActivationDebut` DATE NULL AFTER `quantites`; ALTER TABLE `prestations_boutique` ADD `dureeActivationFin` DATE NULL AFTER `dureeActivationDebut`; CREATE TABLE `prestations_boutique_stock_nuitee_jour` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `jour` VARCHAR(20) NOT NULL , `quantites` MEDIUMINT NOT NULL DEFAULT '1' , `jourActive` BOOLEAN NOT NULL DEFAULT FALSE , `idPrestationBoutique` MEDIUMINT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `prestations_boutique` ADD `nuiteeMaxParusagerParJour` MEDIUMINT NULL AFTER `dureeActivationFin`; -- 08-06-2020 AK -- ALTER TABLE `membres2reservation` ADD `typeMembre` ENUM('Reel','PourExclusivite') NOT NULL AFTER `indMembre`; ALTER TABLE `membres2reservation` ADD KEY `typeMembre` (`typeMembre`); -- -- 08-06-2020 FTH -- INSERT INTO `type_user` (`id`, `type`, `codeType`) VALUES (NULL, 'Référent DP', 'DP'); ALTER TABLE `demandes` ADD `resolution` ENUM('Réparation','Changement','Vérification/Communication') NULL AFTER `cause`; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'demande_resolution', 'Résolution demande', 5, 9, 255, 'resolution', NULL, 3, 1, 'demandes'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_logeAdresse', 'Adresse logement', 1, 4, 100, 'logeAdresse', '', 1, 1, 'logements'), (Null, 'logements_logeCP', 'Code postal logement', 1, 4, 100, 'logeCP', '', 1, 1, 'logements'), (Null, 'logements_logeVille', 'Ville logement', 1, 4, 100, 'logeVille', '', 1, 1, 'logements'); ALTER TABLE `demandes` CHANGE `cause` `cause` ENUM('Usure','Dégradation','Mauvaise utilisation','Panne') CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL; UPDATE `champs` SET `idTypeHtml` = '3' WHERE `champs`.`code` = 'demande_cause'; -- -- 09-06-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modification groupé mode logements', 'liste-btn-modif-group-logements', 'bouton', '1'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_loyer', 'Loyer logement', 1, 4, 100, 'loyer', '', 5, 1, 'logements'), (Null, 'logements_loyerHC', 'Loyer HC logement', 1, 4, 100, 'loyerHC', '', 5, 1, 'logements'), (Null, 'logements_charges', 'Charges logement', 1, 4, 100, 'charges', '', 5, 1, 'logements'), (Null, 'logements_complementLoyer', 'Complement loyer logement', 1, 4, 100, 'complementLoyer', '', 5, 1, 'logements'), (Null, 'logements_tantieme', 'tantième logement', 1, 4, 100, 'tantieme', '', 5, 1, 'logements'), (Null, 'logements_etage', 'Etage logement', 1, 4, 100, 'etage', '', 1, 1, 'logements'), (Null, 'logements_nbrLits', 'Nombre de lits logement', 1, 4, 100, 'nbrLits', '', 5, 1, 'logements'), (Null, 'logements_idTypeBail', 'Type bail logement', 1, 4, 100, 'idTypeBail', 'type_bail', 3, 1, 'logements'), (Null, 'logements_idTypeBien', 'Type bien logement', 1, 4, 100, 'idTypeBien', 'type_bien', 3, 1, 'logements'), (Null, 'logements_montantMobilier', 'Montant mobilier logement', 1, 4, 100, 'montantMobilier', '', 5, 1, 'logements'), (Null, 'logements_dateEntreeParc', 'Date entrée parc logement', 1, 4, 100, 'dateEntreeParc', '', 2, 1, 'logements'), (Null, 'logements_secteurGeo', 'Sécteur géographique logement', 1, 4, 100, 'secteurGeo', '', 1, 1, 'logements'), (Null, 'logements_codeLogementAPI', 'Code logement API logement', 1, 4, 100, 'codeLogementAPI', '', 1, 1, 'logements'), (Null, 'logements_bailleur', 'Bailleur logement', 1, 4, 100, 'bailleur', '', 1, 1, 'logements'), (Null, 'logements_conventionnement', 'Conventionnement logement', 1, 4, 100, 'conventionnement', '', 1, 1, 'logements'), (Null, 'logements_dispositif', 'Dispositif logement', 1, 4, 100, 'dispositif', '', 1, 1, 'logements'); -- -- 09-06-2020 RM -- ALTER TABLE `prestations_boutique` ADD `nbPrestaMaxUsagerJour` MEDIUMINT NULL AFTER `nuiteeMaxParusagerParJour`; ALTER TABLE `prestations_boutique_stock_nuitee_jour` ADD `prix` FLOAT NULL AFTER `idPrestationBoutique`; ALTER TABLE `prestations_boutique_stock_nuitee_jour` CHANGE `quantites` `quantitesGratuites` MEDIUMINT(9) NULL; ALTER TABLE `prestations_boutique_stock_nuitee_jour` ADD `quantitesPayantes` MEDIUMINT NULL AFTER `quantitesGratuites`; -- -- 11-06-2020 FTH -- ALTER TABLE `liste_state` ADD `configFilters` TEXT NULL ; -- -- 12-06-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Facturer les prestations', 'liste-btn-prestations-facturer', 'bouton', '1'); -- -- 16-06-2020 JL -- ALTER TABLE `configuration` ADD `borneDpActive` ENUM('1','0') NOT NULL AFTER `champStatutLoge`; -- -- 17-07-2020 RM -- ALTER TABLE `cartes` CHANGE `idDp` `idDp` MEDIUMINT(9) NULL; ALTER TABLE `cartes` ADD `idLocataire` MEDIUMINT NULL AFTER `idDp`; -- -- 15-06-2020 RM -- CREATE TABLE `prestations_boutique_jours_feries` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT, `date` DATE NOT NULL , `idPrestationBoutique` MEDIUMINT NOT NULL , `joursFeries` BOOLEAN NOT NULL DEFAULT FALSE , `joursException` BOOLEAN NOT NULL DEFAULT FALSE, PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `prestations_boutique` CHANGE `idPrestation` `idPrestation` VARCHAR(9) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'id de la prestation côté financier'; CREATE TABLE `prestations_boutique_prises` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `idPrestationBoutique` MEDIUMINT NULL , `date` DATE NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `prestations_boutique_prises` ADD `type` ENUM('gratuite','payante') NULL AFTER `date`; -- -- 17-06-2020 FTH -- ALTER TABLE `configuration` ADD `modeValidationFiltreListe` ENUM('auto','enter') NOT NULL DEFAULT 'auto' ; -- -- 17-06-2020 AK -- ALTER TABLE `actions_conditions` ADD UNIQUE KEY `idAction` (`idAction`), ADD KEY `idChamp` (`idChamp`); ALTER TABLE `actions_js` ADD KEY `idChampAttache` (`idChampAttache`), ADD KEY `idChamp` (`idChamp`), ADD KEY `idType` (`idType`); ALTER TABLE `campagnes_type` DROP KEY `code`, ADD UNIQUE KEY `code` (`code`), ADD UNIQUE KEY `libelle` (`libelle`); ALTER TABLE `membres2reservation` ADD `idMembrePMS` varchar(100) DEFAULT NULL AFTER `typeMembre`; ALTER TABLE `membres2reservation` ADD KEY `idMembrePMS` (`idMembrePMS`); -- -- utile car souvent absent -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Serrures', 'mode-input-serrures', 'champs', 26, 0, 'id-modeSerrures'); -- INSERT INTO `prestations_types` (`id`, `code`, `description`) VALUES (NULL, 'EDL', 'Global EDL'); -- INSERT INTO `type_document` (`id`, `code`, `nom`, `nomEn`, `description`, `descriptionEn`, `deleted`) VALUES (NULL, 'GARANT', 'acte caution', 'act of joint and several guarantee', NULL, NULL, 1); ALTER TABLE `reservations_apipms` CHANGE `state` `state` ENUM('DemandeEnvoyee','DemandeRecue','DemandeAbandonnee') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'DemandeEnvoyee'; ALTER TABLE `reservations_apipms` ADD `createLinkPms` DATETIME NULL DEFAULT NULL AFTER `state`; -- -- 18-06-2020 -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`,`critere`) VALUES (NULL, 'Référent DP', 'int(1)', 'idUserDp', 'domiciliations', 'user', '1', '3',''); -- -- 18-06-2020 RM -- ALTER TABLE `residences` ADD `typeOccupation` VARCHAR(5) NULL COMMENT 'Type d''occupation correpondant avec la CAF' AFTER `idZonePLAI`; -- 19-06-2020 FTH -- ALTER TABLE `configuration` ADD `filtreAverEtoile` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Utilisation de l''étoile dans la recherche des filtres listes' ; -- -- 22-06-2020 AK -- ALTER TABLE `reservations` ADD `sousEtat` SET('avecFraisInitiaux','fraisInitiauxRegles') NULL DEFAULT NULL AFTER `etat`, ADD INDEX `sousEtat` (`sousEtat`); -- -- 26-06-2020 FTH -- ALTER TABLE `configuration` ADD `tarifsProgrammes` TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE `tarifs` ADD `idProgramme` INT NULL ; ALTER TABLE `modes_campagne` ADD `typeTarifs` ENUM('typeLogement','programme') NOT NULL DEFAULT 'typeLogement' ; -- -- 23-06-2020 AK -- INSERT INTO `type_email` (`type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES ('Accord commission', NULL, 1, NULL, NULL, 0, 'commission_accord'); INSERT INTO `type_email` (`type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES ('Refus commission', NULL, 1, NULL, NULL, 0, 'commission_refus'); INSERT INTO `type_email` (`type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES ('Frais initiaux réglés', NULL, 1, NULL, NULL, 0, 'frais_initiaux_regles'); -- -- 29-06-2020 RM -- DELETE FROM `type_actions` WHERE `type_actions`.`type` = 'Association entre 2 champs de type liste'; CREATE TABLE IF NOT EXISTS `prestations_boutique_commandes` ( `id` mediumint(9) NOT NULL, `idPrestationBoutique` mediumint(9) DEFAULT NULL, `idLocataire` mediumint(9) DEFAULT NULL, `idReservation` mediumint(9) DEFAULT NULL, `date` date DEFAULT NULL, `quantites` mediumint(9) DEFAULT NULL, `statut` enum('à payer', 'payée') DEFAULT NULL, `montant` float DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8; ALTER TABLE `prestations_boutique_commandes` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for table `prestations_boutique_commandes` -- ALTER TABLE `prestations_boutique_commandes` MODIFY `id` mediumint(9) NOT NULL AUTO_INCREMENT; ALTER TABLE `prestations_boutique_commandes` ADD `jour` VARCHAR(10) NULL AFTER `montant`; ALTER TABLE `prestations_boutique_commandes` ADD `type` VARCHAR(100) NULL AFTER `jour`; DROP TABLE prestations_boutique_prises; -- -- 01-07-2020 RM -- ALTER TABLE `locataires` ADD `fileNameDem` VARCHAR(255) NULL COMMENT 'le fichier à deplacer dans dem_ok prestataire externe (carredas)' AFTER `cgv`; DELETE FROM `type_actions` WHERE `type_actions`.`type` = 'Association entre 2 champs de type liste'; ALTER TABLE `locataires` ADD `fileNameDemLocal` VARCHAR(255) NULL AFTER `fileNameDem`; -- -- 29-06-2020 FTH -- ALTER TABLE `programme_campagne` ADD `encaisAcompte` TINYINT(1) NULL DEFAULT '0' ; -- -- 02-07-2020 FTH -- ALTER TABLE `logements` ADD `fourchetteLoyer` FLOAT NULL ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_fourchetteLoyer', 'Fourchette de loyer logement', 1, 4, 100, 'fourchetteLoyer', '', 5, 1, 'logements'); -- -- 07-07-2020 RM -- UPDATE `edl_parametres` SET `vetusteLibelle` = 'Neuf,Bon etat,Etat usage,Mauvaise etat,Hors service' WHERE `edl_parametres`.`id` = 1; -- -- 07-07-2020 FTH -- UPDATE `champs_logements` SET `code` = 'logements_typeBail' WHERE `champs_logements`.`code` = 'logements_idTypeBail'; UPDATE `champs_logements` SET `code` = 'logements_typeBien' WHERE `champs_logements`.`code` = 'logements_idTypeBien'; -- -- 08-07-2020 RM -- CREATE TABLE `pametres_mail` ( `id` INT NOT NULL AUTO_INCREMENT , `recupererParametresResidences` BOOLEAN NOT NULL DEFAULT FALSE , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `pametres_mail` ADD `idTypeEmail` MEDIUMINT NULL AFTER `recupererParametresResidences`; -- -- 10-07-2020 AK -- DELETE FROM `champs_pms` WHERE `classPms` = 'CeriFoyer'; INSERT INTO `champs_pms` (`id`, `nom`, `equivalentSql`, `classPms`) VALUES (NULL, 'CF_BlocPrestations', 'CF_BlocPrestations', 'ceriFoyer'), (NULL, 'CF_ETABL_ADRESSE1', 'CF_ETABL_ADRESSE1', 'ceriFoyer'), (NULL, 'CF_ETABL_ADRESSE2', 'CF_ETABL_ADRESSE2', 'ceriFoyer'), (NULL, 'CF_ETABL_ADRESSE3', 'CF_ETABL_ADRESSE3', 'ceriFoyer'), (NULL, 'CF_ETABL_AFFICHE_DETTE_LOYER', 'CF_ETABL_AFFICHE_DETTE_LOYER', 'ceriFoyer'), (NULL, 'CF_ETABL_AFF_TOT_JOUR', 'CF_ETABL_AFF_TOT_JOUR', 'ceriFoyer'), (NULL, 'CF_ETABL_ANNEE_DOS_VERT', 'CF_ETABL_ANNEE_DOS_VERT', 'ceriFoyer'), (NULL, 'CF_ETABL_APE', 'CF_ETABL_APE', 'ceriFoyer'), (NULL, 'CF_ETABL_BIC', 'CF_ETABL_BIC', 'ceriFoyer'), (NULL, 'CF_ETABL_CD_PAYS', 'CF_ETABL_CD_PAYS', 'ceriFoyer'), (NULL, 'CF_ETABL_CLE_RICE', 'CF_ETABL_CLE_RICE', 'ceriFoyer'), (NULL, 'CF_ETABL_CODE_AVOIR', 'CF_ETABL_CODE_AVOIR', 'ceriFoyer'), (NULL, 'CF_ETABL_CODE_BAILLEUR', 'CF_ETABL_CODE_BAILLEUR', 'ceriFoyer'), (NULL, 'CF_ETABL_CODE_CAF_AGENCE', 'CF_ETABL_CODE_CAF_AGENCE', 'ceriFoyer'), (NULL, 'CF_ETABL_CODE_FACTURE', 'CF_ETABL_CODE_FACTURE', 'ceriFoyer'), (NULL, 'CF_ETABL_CODE_IFACTURE', 'CF_ETABL_CODE_IFACTURE', 'ceriFoyer'), (NULL, 'CF_ETABL_CODE_LIC', 'CF_ETABL_CODE_LIC', 'ceriFoyer'), (NULL, 'CF_ETABL_CODE_SUPPR', 'CF_ETABL_CODE_SUPPR', 'ceriFoyer'), (NULL, 'CF_ETABL_COLLECTIF', 'CF_ETABL_COLLECTIF', 'ceriFoyer'), (NULL, 'CF_ETABL_COLOR_INFO_FOND', 'CF_ETABL_COLOR_INFO_FOND', 'ceriFoyer'), (NULL, 'CF_ETABL_COLOR_INFO_TEXTE', 'CF_ETABL_COLOR_INFO_TEXTE', 'ceriFoyer'), (NULL, 'CF_ETABL_COLOR_INFO_TRANSP', 'CF_ETABL_COLOR_INFO_TRANSP', 'ceriFoyer'), (NULL, 'CF_ETABL_COMPTE_ATTENTE', 'CF_ETABL_COMPTE_ATTENTE', 'ceriFoyer'), (NULL, 'CF_ETABL_COMPTE_CAUTION', 'CF_ETABL_COMPTE_CAUTION', 'ceriFoyer'), (NULL, 'CF_ETABL_COMPTE_CLI_ANA', 'CF_ETABL_COMPTE_CLI_ANA', 'ceriFoyer'), (NULL, 'CF_ETABL_COMPTE_CLI_ANA_VF', 'CF_ETABL_COMPTE_CLI_ANA_VF', 'ceriFoyer'), (NULL, 'CF_ETABL_COMPTE_CLI', 'CF_ETABL_COMPTE_CLI', 'ceriFoyer'), (NULL, 'CF_ETABL_COMPTE_DG_ANA', 'CF_ETABL_COMPTE_DG_ANA', 'ceriFoyer'), (NULL, 'CF_ETABL_COMPTE_INDU_ANA', 'CF_ETABL_COMPTE_INDU_ANA', 'ceriFoyer'), (NULL, 'CF_ETABL_COMPTE_INDU', 'CF_ETABL_COMPTE_INDU', 'ceriFoyer'), (NULL, 'CF_ETABL_COMPTE_TIERS', 'CF_ETABL_COMPTE_TIERS', 'ceriFoyer'), (NULL, 'CF_ETABL_CONVERSION_EURO', 'CF_ETABL_CONVERSION_EURO', 'ceriFoyer'), (NULL, 'CF_ETABL_CP', 'CF_ETABL_CP', 'ceriFoyer'), (NULL, 'CF_ETABL_CPTA_EIG_DOSSIER', 'CF_ETABL_CPTA_EIG_DOSSIER', 'ceriFoyer'), (NULL, 'CF_ETABL_CPTA_EIG_EXERCICE', 'CF_ETABL_CPTA_EIG_EXERCICE', 'ceriFoyer'), (NULL, 'CF_ETABL_CPTA_EIG_NOTRSFT', 'CF_ETABL_CPTA_EIG_NOTRSFT', 'ceriFoyer'), (NULL, 'CF_ETABL_CPTA_FIRST_V4', 'CF_ETABL_CPTA_FIRST_V4', 'ceriFoyer'), (NULL, 'CF_ETABL_CPTAUX_AUTO', 'CF_ETABL_CPTAUX_AUTO', 'ceriFoyer'), (NULL, 'CF_ETABL_CPTAUX_AUTOR', 'CF_ETABL_CPTAUX_AUTOR', 'ceriFoyer'), (NULL, 'CF_ETABL_CPTAUX_AUTOT', 'CF_ETABL_CPTAUX_AUTOT', 'ceriFoyer'), (NULL, 'CF_ETABL_CPTAUX_DG_CLT', 'CF_ETABL_CPTAUX_DG_CLT', 'ceriFoyer'), (NULL, 'CF_ETABL_CPT_INIT1', 'CF_ETABL_CPT_INIT1', 'ceriFoyer'), (NULL, 'CF_ETABL_CPT_INIT2', 'CF_ETABL_CPT_INIT2', 'ceriFoyer'), (NULL, 'CF_ETABL_CPT_SUBST', 'CF_ETABL_CPT_SUBST', 'ceriFoyer'), (NULL, 'CF_ETABL_CPT_TIERS_VD', 'CF_ETABL_CPT_TIERS_VD', 'ceriFoyer'), (NULL, 'CF_ETABL_CPT_TRANSIT_VD', 'CF_ETABL_CPT_TRANSIT_VD', 'ceriFoyer'), (NULL, 'CF_ETABL_DATE_BUTOIR', 'CF_ETABL_DATE_BUTOIR', 'ceriFoyer'), (NULL, 'CF_ETABL_DATE_MAJ', 'CF_ETABL_DATE_MAJ', 'ceriFoyer'), (NULL, 'CF_ETABL_DEB_CPTE_A', 'CF_ETABL_DEB_CPTE_A', 'ceriFoyer'), (NULL, 'CF_ETABL_DEB_CPTE', 'CF_ETABL_DEB_CPTE', 'ceriFoyer'), (NULL, 'CF_ETABL_DEB_CPTE_DG', 'CF_ETABL_DEB_CPTE_DG', 'ceriFoyer'), (NULL, 'CF_ETABL_DEB_CPTE_T', 'CF_ETABL_DEB_CPTE_T', 'ceriFoyer'), (NULL, 'CF_ETABL_DECOUVE', 'CF_ETABL_DECOUVE', 'ceriFoyer'), (NULL, 'CF_ETABL_DELAI_STANDARD', 'CF_ETABL_DELAI_STANDARD', 'ceriFoyer'), (NULL, 'CF_ETABL_DT_ARCHIVE', 'CF_ETABL_DT_ARCHIVE', 'ceriFoyer'), (NULL, 'CF_ETABL_DT_OUVERTURE', 'CF_ETABL_DT_OUVERTURE', 'ceriFoyer'), (NULL, 'CF_ETABL_E_MAIL', 'CF_ETABL_E_MAIL', 'ceriFoyer'), (NULL, 'CF_ETABL_FACT_EC', 'CF_ETABL_FACT_EC', 'ceriFoyer'), (NULL, 'CF_ETABL_FAX', 'CF_ETABL_FAX', 'ceriFoyer'), (NULL, 'CF_ETABL_FC_INCREMENTCARNET', 'CF_ETABL_FC_INCREMENTCARNET', 'ceriFoyer'), (NULL, 'CF_ETABL_FCMB_ST_FICHE_A3', 'CF_ETABL_FCMB_ST_FICHE_A3', 'ceriFoyer'), (NULL, 'CF_ETABL_FC_SIEGE', 'CF_ETABL_FC_SIEGE', 'ceriFoyer'), (NULL, 'CF_ETABL_FINSEJ_AL', 'CF_ETABL_FINSEJ_AL', 'ceriFoyer'), (NULL, 'CF_ETABL_FINSEJ_TPS', 'CF_ETABL_FINSEJ_TPS', 'ceriFoyer'), (NULL, 'CF_ETABL_FJT_CD_ET', 'CF_ETABL_FJT_CD_ET', 'ceriFoyer'), (NULL, 'CF_ETABL_FJT_CD_PM', 'CF_ETABL_FJT_CD_PM', 'ceriFoyer'), (NULL, 'CF_ETABL_FJT_PM', 'CF_ETABL_FJT_PM', 'ceriFoyer'), (NULL, 'CF_ETABL_FONCTION', 'CF_ETABL_FONCTION', 'ceriFoyer'), (NULL, 'CF_ETABL_GRP_LIGNE_FACT_SELF', 'CF_ETABL_GRP_LIGNE_FACT_SELF', 'ceriFoyer'), (NULL, 'CF_ETABL_GUICHET', 'CF_ETABL_GUICHET', 'ceriFoyer'), (NULL, 'CF_ETABL_HISTO_SAISIE', 'CF_ETABL_HISTO_SAISIE', 'ceriFoyer'), (NULL, 'CF_ETABL_IBAN', 'CF_ETABL_IBAN', 'ceriFoyer'), (NULL, 'CF_ETABL_ICS', 'CF_ETABL_ICS', 'ceriFoyer'), (NULL, 'CF_ETABL_ID_CAISSE', 'CF_ETABL_ID_CAISSE', 'ceriFoyer'), (NULL, 'CF_ETABL_INTERCONSULT_LIB', 'CF_ETABL_INTERCONSULT_LIB', 'ceriFoyer'), (NULL, 'CF_ETABL_INTERCONSULT_NO', 'CF_ETABL_INTERCONSULT_NO', 'ceriFoyer'), (NULL, 'CF_ETABL_JL_ATTENTE', 'CF_ETABL_JL_ATTENTE', 'ceriFoyer'), (NULL, 'CF_ETABL_JL_CAUTION', 'CF_ETABL_JL_CAUTION', 'ceriFoyer'), (NULL, 'CF_ETABL_LAST_LOT', 'CF_ETABL_LAST_LOT', 'ceriFoyer'), (NULL, 'CF_ETABL_LAST_NO_LOT', 'CF_ETABL_LAST_NO_LOT', 'ceriFoyer'), (NULL, 'CF_ETABL_LIB_ETABL', 'CF_ETABL_LIB_ETABL', 'ceriFoyer'), (NULL, 'CF_ETABL_LIB_LIGNE_FACT_SELF', 'CF_ETABL_LIB_LIGNE_FACT_SELF', 'ceriFoyer'), (NULL, 'CF_ETABL_MENTION_ATTESTATION', 'CF_ETABL_MENTION_ATTESTATION', 'ceriFoyer'), (NULL, 'CF_ETABL_MODE_PRLVTS', 'CF_ETABL_MODE_PRLVTS', 'ceriFoyer'), (NULL, 'CF_ETABL_MODE_VRM', 'CF_ETABL_MODE_VRM', 'ceriFoyer'), (NULL, 'CF_ETABL_MODIF_DOS_VERT', 'CF_ETABL_MODIF_DOS_VERT', 'ceriFoyer'), (NULL, 'CF_ETABL_MONNAIE_APL', 'CF_ETABL_MONNAIE_APL', 'ceriFoyer'), (NULL, 'CF_ETABL_MONNAIE', 'CF_ETABL_MONNAIE', 'ceriFoyer'), (NULL, 'CF_ETABL_MOT_PASSE', 'CF_ETABL_MOT_PASSE', 'ceriFoyer'), (NULL, 'CF_ETABL_NBNUITSMAX', 'CF_ETABL_NBNUITSMAX', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_CIEL', 'CF_ETABL_NO_CIEL', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_CPTE_A', 'CF_ETABL_NO_CPTE_A', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_CPTE', 'CF_ETABL_NO_CPTE', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_CPTE_DG', 'CF_ETABL_NO_CPTE_DG', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_CPTE_T', 'CF_ETABL_NO_CPTE_T', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_ETABL', 'CF_ETABL_NO_ETABL', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_AFFICHE', 'CF_ETABL_NOM_AFFICHE', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_CAISSE_CAF', 'CF_ETABL_NOM_CAISSE_CAF', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM', 'CF_ETABL_NOM', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_COMPTA1', 'CF_ETABL_NOM_COMPTA1', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_COMPTA2', 'CF_ETABL_NOM_COMPTA2', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_COMPTA', 'CF_ETABL_NOM_COMPTA', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_CPTA', 'CF_ETABL_NOM_CPTA', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_FICHIER_CAF2', 'CF_ETABL_NOM_FICHIER_CAF2', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_FICHIER_CAF', 'CF_ETABL_NOM_FICHIER_CAF', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_IMG_FACT', 'CF_ETABL_NOM_IMG_FACT', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_IMG_FACT_L', 'CF_ETABL_NOM_IMG_FACT_L', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_PAIE', 'CF_ETABL_NOM_PAIE', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_RESP', 'CF_ETABL_NOM_RESP', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_TEXTE_FACT', 'CF_ETABL_NOM_TEXTE_FACT', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_TEXTE_FACT_ENTETE', 'CF_ETABL_NOM_TEXTE_FACT_ENTETE', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_TXT', 'CF_ETABL_NOM_TXT', 'ceriFoyer'), (NULL, 'CF_ETABL_NOM_USER', 'CF_ETABL_NOM_USER', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_NTL_EMETTEUR_CAF', 'CF_ETABL_NO_NTL_EMETTEUR_CAF', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_NTL_EMETTEUR', 'CF_ETABL_NO_NTL_EMETTEUR', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_PIECE_C', 'CF_ETABL_NO_PIECE_C', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_PIECE', 'CF_ETABL_NO_PIECE', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_TYPE', 'CF_ETABL_NO_TYPE', 'ceriFoyer'), (NULL, 'CF_ETABL_NO_TYPESELF', 'CF_ETABL_NO_TYPESELF', 'ceriFoyer'), (NULL, 'CF_ETABL_PARAM_SAISIE_RES', 'CF_ETABL_PARAM_SAISIE_RES', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_10NA_L', 'CF_ETABL_PERS_10NA_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_10NA_V', 'CF_ETABL_PERS_10NA_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_11NB_L', 'CF_ETABL_PERS_11NB_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_11NB_V', 'CF_ETABL_PERS_11NB_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_12NC_L', 'CF_ETABL_PERS_12NC_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_12NC_V', 'CF_ETABL_PERS_12NC_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_1L_L', 'CF_ETABL_PERS_1L_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_1L_V', 'CF_ETABL_PERS_1L_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_2MA_L', 'CF_ETABL_PERS_2MA_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_2MA_V', 'CF_ETABL_PERS_2MA_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_3MB_L', 'CF_ETABL_PERS_3MB_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_3MB_V', 'CF_ETABL_PERS_3MB_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_4TA_L', 'CF_ETABL_PERS_4TA_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_4TA_V', 'CF_ETABL_PERS_4TA_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_5TB_L', 'CF_ETABL_PERS_5TB_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_5TB_V', 'CF_ETABL_PERS_5TB_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_6TC_L', 'CF_ETABL_PERS_6TC_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_6TC_V', 'CF_ETABL_PERS_6TC_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_7TD_L', 'CF_ETABL_PERS_7TD_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_7TD_V', 'CF_ETABL_PERS_7TD_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_8TE_L', 'CF_ETABL_PERS_8TE_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_8TE_V', 'CF_ETABL_PERS_8TE_V', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_9TF_L', 'CF_ETABL_PERS_9TF_L', 'ceriFoyer'), (NULL, 'CF_ETABL_PERS_9TF_V', 'CF_ETABL_PERS_9TF_V', 'ceriFoyer'), (NULL, 'CF_ETABL_POINTAGE_APL', 'CF_ETABL_POINTAGE_APL', 'ceriFoyer'), (NULL, 'CF_ETABL_PRELEV_CHEMIN', 'CF_ETABL_PRELEV_CHEMIN', 'ceriFoyer'), (NULL, 'CF_ETABL_PRELEV_FICHIER', 'CF_ETABL_PRELEV_FICHIER', 'ceriFoyer'), (NULL, 'CF_ETABL_RC_AL', 'CF_ETABL_RC_AL', 'ceriFoyer'), (NULL, 'CF_ETABL_RC_TPS', 'CF_ETABL_RC_TPS', 'ceriFoyer'), (NULL, 'CF_ETABL_RECALC_EURO', 'CF_ETABL_RECALC_EURO', 'ceriFoyer'), (NULL, 'CF_ETABL_REF_COMPTE', 'CF_ETABL_REF_COMPTE', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE1', 'CF_ETABL_RELANCE1', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE2', 'CF_ETABL_RELANCE2', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE3', 'CF_ETABL_RELANCE3', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE4', 'CF_ETABL_RELANCE4', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE5', 'CF_ETABL_RELANCE5', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE_B1', 'CF_ETABL_RELANCE_B1', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE_B2', 'CF_ETABL_RELANCE_B2', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE_B3', 'CF_ETABL_RELANCE_B3', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE_B4', 'CF_ETABL_RELANCE_B4', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE_B5', 'CF_ETABL_RELANCE_B5', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE_B', 'CF_ETABL_RELANCE_B', 'ceriFoyer'), (NULL, 'CF_ETABL_RELANCE', 'CF_ETABL_RELANCE', 'ceriFoyer'), (NULL, 'CF_ETABL_RETARD_REGLT1', 'CF_ETABL_RETARD_REGLT1', 'ceriFoyer'), (NULL, 'CF_ETABL_RETARD_REGLT2', 'CF_ETABL_RETARD_REGLT2', 'ceriFoyer'), (NULL, 'CF_ETABL_RETARD_REGLT3', 'CF_ETABL_RETARD_REGLT3', 'ceriFoyer'), (NULL, 'CF_ETABL_ROLCOL', 'CF_ETABL_ROLCOL', 'ceriFoyer'), (NULL, 'CF_ETABL_ROLEX', 'CF_ETABL_ROLEX', 'ceriFoyer'), (NULL, 'CF_ETABL_ROLIMP', 'CF_ETABL_ROLIMP', 'ceriFoyer'), (NULL, 'CF_ETABL_ROLNAT', 'CF_ETABL_ROLNAT', 'ceriFoyer'), (NULL, 'CF_ETABL_ROLPER', 'CF_ETABL_ROLPER', 'ceriFoyer'), (NULL, 'CF_ETABL_ROLREC', 'CF_ETABL_ROLREC', 'ceriFoyer'), (NULL, 'CF_ETABL_ROLROL', 'CF_ETABL_ROLROL', 'ceriFoyer'), (NULL, 'CF_ETABL_SAGE100_NOPLAN', 'CF_ETABL_SAGE100_NOPLAN', 'ceriFoyer'), (NULL, 'CF_ETABL_SEPA_MSGID_PREF', 'CF_ETABL_SEPA_MSGID_PREF', 'ceriFoyer'), (NULL, 'CF_ETABL_SEPAREF', 'CF_ETABL_SEPAREF', 'ceriFoyer'), (NULL, 'CF_ETABL_SIRET', 'CF_ETABL_SIRET', 'ceriFoyer'), (NULL, 'CF_ETABL_SISCO_DOSS', 'CF_ETABL_SISCO_DOSS', 'ceriFoyer'), (NULL, 'CF_ETABL_SISCO_LGCD', 'CF_ETABL_SISCO_LGCD', 'ceriFoyer'), (NULL, 'CF_ETABL_SOLDE_FACT_AIDE', 'CF_ETABL_SOLDE_FACT_AIDE', 'ceriFoyer'), (NULL, 'CF_ETABL_SOLDEFINFACT_AUTO', 'CF_ETABL_SOLDEFINFACT_AUTO', 'ceriFoyer'), (NULL, 'CF_ETABL_TEL', 'CF_ETABL_TEL', 'ceriFoyer'), (NULL, 'CF_ETABL_TEXTE_BAS_F', 'CF_ETABL_TEXTE_BAS_F', 'ceriFoyer'), (NULL, 'CF_ETABL_TEXTE_BAS_F_TVA', 'CF_ETABL_TEXTE_BAS_F_TVA', 'ceriFoyer'), (NULL, 'CF_ETABL_TEXTE_INFO', 'CF_ETABL_TEXTE_INFO', 'ceriFoyer'), (NULL, 'CF_ETABL_TIERS_APL', 'CF_ETABL_TIERS_APL', 'ceriFoyer'), (NULL, 'CF_ETABL_TITRSEJ_AL', 'CF_ETABL_TITRSEJ_AL', 'ceriFoyer'), (NULL, 'CF_ETABL_TITRSEJ_TPS', 'CF_ETABL_TITRSEJ_TPS', 'ceriFoyer'), (NULL, 'CF_ETABL_TP_CP', 'CF_ETABL_TP_CP', 'ceriFoyer'), (NULL, 'CF_ETABL_TP_CPT', 'CF_ETABL_TP_CPT', 'ceriFoyer'), (NULL, 'CF_ETABL_TP_LGN1', 'CF_ETABL_TP_LGN1', 'ceriFoyer'), (NULL, 'CF_ETABL_TP_LGN2', 'CF_ETABL_TP_LGN2', 'ceriFoyer'), (NULL, 'CF_ETABL_TP_LGN3', 'CF_ETABL_TP_LGN3', 'ceriFoyer'), (NULL, 'CF_ETABL_TP_TITRE', 'CF_ETABL_TP_TITRE', 'ceriFoyer'), (NULL, 'CF_ETABL_TP_TXT1', 'CF_ETABL_TP_TXT1', 'ceriFoyer'), (NULL, 'CF_ETABL_TP_TXT2', 'CF_ETABL_TP_TXT2', 'ceriFoyer'), (NULL, 'CF_ETABL_TP_VILLE', 'CF_ETABL_TP_VILLE', 'ceriFoyer'), (NULL, 'CF_ETABL_TREEVIEW_TOUS', 'CF_ETABL_TREEVIEW_TOUS', 'ceriFoyer'), (NULL, 'CF_ETABL_TVA', 'CF_ETABL_TVA', 'ceriFoyer'), (NULL, 'CF_ETABL_TYPE_AIDE', 'CF_ETABL_TYPE_AIDE', 'ceriFoyer'), (NULL, 'CF_ETABL_TYPE_AIDE_RAPPEL', 'CF_ETABL_TYPE_AIDE_RAPPEL', 'ceriFoyer'), (NULL, 'CF_ETABL_TYPE_NO_FACT', 'CF_ETABL_TYPE_NO_FACT', 'ceriFoyer'), (NULL, 'CF_ETABL_TYPRPLS', 'CF_ETABL_TYPRPLS', 'ceriFoyer'), (NULL, 'CF_ETABL_UNHAJ_LIBSOC', 'CF_ETABL_UNHAJ_LIBSOC', 'ceriFoyer'), (NULL, 'CF_ETABL_UTIL_DECOUV', 'CF_ETABL_UTIL_DECOUV', 'ceriFoyer'), (NULL, 'CF_ETABL_VALID_CODE', 'CF_ETABL_VALID_CODE', 'ceriFoyer'), (NULL, 'CF_ETABL_VERSION', 'CF_ETABL_VERSION', 'ceriFoyer'), (NULL, 'CF_ETABL_VILLE', 'CF_ETABL_VILLE', 'ceriFoyer'), (NULL, 'CF_ETABL_VIRT_NOM', 'CF_ETABL_VIRT_NOM', 'ceriFoyer'), (NULL, 'CF_ETABL_VITESSE_INFO', 'CF_ETABL_VITESSE_INFO', 'ceriFoyer'), (NULL, 'CF_ETABL_VRM_CHEMIN', 'CF_ETABL_VRM_CHEMIN', 'ceriFoyer'), (NULL, 'CF_ETABL_VRM_FICHIER', 'CF_ETABL_VRM_FICHIER', 'ceriFoyer'), (NULL, 'CF_FACTURE_ACOMPTE', 'CF_FACTURE_ACOMPTE', 'ceriFoyer'), (NULL, 'CF_FACTURE_Adr1', 'CF_FACTURE_Adr1', 'CeriFoyer'), (NULL, 'CF_FACTURE_Adr2', 'CF_FACTURE_Adr2', 'CeriFoyer'), (NULL, 'CF_FACTURE_Adr3', 'CF_FACTURE_Adr3', 'CeriFoyer'), (NULL, 'CF_FACTURE_Adr4', 'CF_FACTURE_Adr4', 'CeriFoyer'), (NULL, 'CF_FACTURE_AIDES', 'CF_FACTURE_AIDES', 'ceriFoyer'), (NULL, 'CF_FACTURE_AVOIRS_HT', 'CF_FACTURE_AVOIRS_HT', 'ceriFoyer'), (NULL, 'CF_FACTURE_AVOIRS_I_HT', 'CF_FACTURE_AVOIRS_I_HT', 'ceriFoyer'), (NULL, 'CF_FACTURE_AVOIRS_I_TTC', 'CF_FACTURE_AVOIRS_I_TTC', 'ceriFoyer'), (NULL, 'CF_FACTURE_AVOIRS_TTC', 'CF_FACTURE_AVOIRS_TTC', 'ceriFoyer'), (NULL, 'CF_FACTURE_CAUTIONS', 'CF_FACTURE_CAUTIONS', 'ceriFoyer'), (NULL, 'CF_FACTURE_CHORUSREF', 'CF_FACTURE_CHORUSREF', 'ceriFoyer'), (NULL, 'CF_FACTURE_Cp', 'CF_FACTURE_Cp', 'ceriFoyer'), (NULL, 'CF_FACTURE_curSolde', 'CF_FACTURE_curSolde', 'ceriFoyer'), (NULL, 'CF_FACTURE_DATE_CALCULS', 'CF_FACTURE_DATE_CALCULS', 'ceriFoyer'), (NULL, 'CF_FACTURE_DATE_COMPTA', 'CF_FACTURE_DATE_COMPTA', 'ceriFoyer'), (NULL, 'CF_FACTURE_DATE_DEB', 'CF_FACTURE_DATE_DEB', 'ceriFoyer'), (NULL, 'CF_FACTURE_DATE_ECHEANCE', 'CF_FACTURE_DATE_ECHEANCE', 'ceriFoyer'), (NULL, 'CF_FACTURE_DATE_EDITION', 'CF_FACTURE_DATE_EDITION', 'ceriFoyer'), (NULL, 'CF_FACTURE_DATE_FIN', 'CF_FACTURE_DATE_FIN', 'ceriFoyer'), (NULL, 'CF_FACTURE_DATE_VALEUR', 'CF_FACTURE_DATE_VALEUR', 'ceriFoyer'), (NULL, 'CF_FACTURE_DEJA_PAYEE', 'CF_FACTURE_DEJA_PAYEE', 'ceriFoyer'), (NULL, 'CF_FACTURE_DEJA_UTILISE', 'CF_FACTURE_DEJA_UTILISE', 'ceriFoyer'), (NULL, 'CF_FACTURE_DU', 'CF_FACTURE_DU', 'ceriFoyer'), (NULL, 'CF_FACTURE_EDIT_Q_LE', 'CF_FACTURE_EDIT_Q_LE', 'ceriFoyer'), (NULL, 'CF_FACTURE_FACT_EXTERNE', 'CF_FACTURE_FACT_EXTERNE', 'ceriFoyer'), (NULL, 'CF_FACTURE_MODEPAIEMENT', 'CF_FACTURE_MODEPAIEMENT', 'ceriFoyer'), (NULL, 'CF_FACTURE_MODIFIABLE', 'CF_FACTURE_MODIFIABLE', 'ceriFoyer'), (NULL, 'CF_FACTURE_MONNAIE', 'CF_FACTURE_MONNAIE', 'ceriFoyer'), (NULL, 'CF_FACTURE_MONTANT_HT', 'CF_FACTURE_MONTANT_HT', 'ceriFoyer'), (NULL, 'CF_FACTURE_MONTANT_TTC', 'CF_FACTURE_MONTANT_TTC', 'ceriFoyer'), (NULL, 'CF_FACTURE_NB_BP', 'CF_FACTURE_NB_BP', 'ceriFoyer'), (NULL, 'CF_FACTURE_NIVEAU_RELANCE', 'CF_FACTURE_NIVEAU_RELANCE', 'ceriFoyer'), (NULL, 'CF_FACTURE_NO_CLIENT', 'CF_FACTURE_NO_CLIENT', 'ceriFoyer'), (NULL, 'CF_FACTURE_NO_ETABL', 'CF_FACTURE_NO_ETABL', 'ceriFoyer'), (NULL, 'CF_FACTURE_NO_FACT', 'CF_FACTURE_NO_FACT', 'ceriFoyer'), (NULL, 'CF_FACTURE_NO_FACTURE', 'CF_FACTURE_NO_FACTURE', 'ceriFoyer'), (NULL, 'CF_FACTURE_NO_RESIDENT', 'CF_FACTURE_NO_RESIDENT', 'ceriFoyer'), (NULL, 'CF_FACTURE_NO_SEJOUR', 'CF_FACTURE_NO_SEJOUR', 'ceriFoyer'), (NULL, 'CF_FACTURE_NO_TIERS', 'CF_FACTURE_NO_TIERS', 'ceriFoyer'), (NULL, 'CF_FACTURE_P_AVOIR', 'CF_FACTURE_P_AVOIR', 'ceriFoyer'), (NULL, 'CF_FACTURE_payerEcheance', 'CF_FACTURE_payerEcheance', 'ceriFoyer'), (NULL, 'CF_FACTURE_payerEcheanceLabel', 'CF_FACTURE_payerEcheanceLabel', 'ceriFoyer'), (NULL, 'CF_FACTURE_payerSansDelai', 'CF_FACTURE_payerSansDelai', 'ceriFoyer'), (NULL, 'CF_FACTURE_payerSansDelaiLabel', 'CF_FACTURE_payerSansDelaiLabel', 'ceriFoyer'), (NULL, 'CF_FACTURE_prevLabel', 'CF_FACTURE_prevLabel', 'CeriFoyer'), (NULL, 'CF_FACTURE_prevSolde', 'CF_FACTURE_prevSolde', 'ceriFoyer'), (NULL, 'CF_FACTURE_PROVISOIRE', 'CF_FACTURE_PROVISOIRE', 'ceriFoyer'), (NULL, 'CF_FACTURE_REMBOURSE', 'CF_FACTURE_REMBOURSE', 'ceriFoyer'), (NULL, 'CF_FACTURE_resteLabel', 'CF_FACTURE_resteLabel', 'ceriFoyer'), (NULL, 'CF_FACTURE_SAISI_PAR', 'CF_FACTURE_SAISI_PAR', 'ceriFoyer'), (NULL, 'CF_FACTURE_SOLDE_AIDE', 'CF_FACTURE_SOLDE_AIDE', 'ceriFoyer'), (NULL, 'CF_FACTURE_SOLDE_CAUTION', 'CF_FACTURE_SOLDE_CAUTION', 'ceriFoyer'), (NULL, 'CF_FACTURE_SOLDE', 'CF_FACTURE_SOLDE', 'ceriFoyer'), (NULL, 'CF_FACTURE_SOLDE_EDIT', 'CF_FACTURE_SOLDE_EDIT', 'ceriFoyer'), (NULL, 'CF_FACTURE_soldeLabel', 'CF_FACTURE_soldeLabel', 'ceriFoyer'), (NULL, 'CF_FACTURE_totalHT', 'CF_FACTURE_totalHT', 'CeriFoyer'), (NULL, 'CF_FACTURE_TP_NO_RGLT', 'CF_FACTURE_TP_NO_RGLT', 'ceriFoyer'), (NULL, 'CF_FACTURE_TP_NO_ROLE', 'CF_FACTURE_TP_NO_ROLE', 'ceriFoyer'), (NULL, 'CF_FACTURE_Ville', 'CF_FACTURE_Ville', 'ceriFoyer'), (NULL, 'CF_lignePrestation_DATE_DEB', 'CF_lignePrestation_DATE_DEB', 'ceriFoyer'), (NULL, 'CF_lignePrestation_DATE_FIN', 'CF_lignePrestation_DATE_FIN', 'ceriFoyer'), (NULL, 'CF_lignePrestation_LIBELLE', 'CF_lignePrestation_LIBELLE', 'ceriFoyer'), (NULL, 'CF_lignePrestation_NO_LIGNE', 'CF_lignePrestation_NO_LIGNE', 'ceriFoyer'), (NULL, 'CF_lignePrestation_PU_HT', 'CF_lignePrestation_PU_HT', 'ceriFoyer'), (NULL, 'CF_lignePrestation_QTE', 'CF_lignePrestation_QTE', 'ceriFoyer'), (NULL, 'CF_lignePrestation_TOTAL_HT', 'CF_lignePrestation_TOTAL_HT', 'ceriFoyer'), (NULL, 'CF_lignePrestation_TOTAL_TTC', 'CF_lignePrestation_TOTAL_TTC', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_ACCES_PMR', 'CF_LOGEMENT_ACCES_PMR', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_ADRESSE1', 'CF_LOGEMENT_ADRESSE1', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_ADRESSE2', 'CF_LOGEMENT_ADRESSE2', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_ADRESSE3', 'CF_LOGEMENT_ADRESSE3', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_ADRESSE', 'CF_LOGEMENT_ADRESSE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_ASCENSEUR', 'CF_LOGEMENT_ASCENSEUR', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_BAILGLISSANT', 'CF_LOGEMENT_BAILGLISSANT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_BATIMENT', 'CF_LOGEMENT_BATIMENT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CAVE', 'CF_LOGEMENT_CAVE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CHARGES_DEM', 'CF_LOGEMENT_CHARGES_DEM', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CHAUFFAGE', 'CF_LOGEMENT_CHAUFFAGE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CHAUFFAGE_EQP', 'CF_LOGEMENT_CHAUFFAGE_EQP', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CH_AUTRES', 'CF_LOGEMENT_CH_AUTRES', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CH_CHAUFFAGE', 'CF_LOGEMENT_CH_CHAUFFAGE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CH_EAU', 'CF_LOGEMENT_CH_EAU', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CH_ELECT', 'CF_LOGEMENT_CH_ELECT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CH_ENTRETIEN', 'CF_LOGEMENT_CH_ENTRETIEN', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CH_ORDURES', 'CF_LOGEMENT_CH_ORDURES', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CONSO_DTDPE', 'CF_LOGEMENT_CONSO_DTDPE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CONSO_ENERGIE', 'CF_LOGEMENT_CONSO_ENERGIE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CONSO_ENERGIE_SERRE', 'CF_LOGEMENT_CONSO_ENERGIE_SERRE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CONSO_KWH', 'CF_LOGEMENT_CONSO_KWH', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CP', 'CF_LOGEMENT_CP', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CUISINE', 'CF_LOGEMENT_CUISINE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_CUISINE_EQP', 'CF_LOGEMENT_CUISINE_EQP', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_DG_DEM', 'CF_LOGEMENT_DG_DEM', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_DIGICODE', 'CF_LOGEMENT_DIGICODE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_DIVERS', 'CF_LOGEMENT_DIVERS', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_ENTREE', 'CF_LOGEMENT_ENTREE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_ETAGE', 'CF_LOGEMENT_ETAGE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_F_LOT', 'CF_LOGEMENT_F_LOT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_FRAIS', 'CF_LOGEMENT_FRAIS', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_IDAGREMENTCASF', 'CF_LOGEMENT_IDAGREMENTCASF', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_IDAGREMENTCCH', 'CF_LOGEMENT_IDAGREMENTCCH', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_IDAUTRESAEC', 'CF_LOGEMENT_IDAUTRESAEC', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_IDCOLLECTIFVSDIFFUS', 'CF_LOGEMENT_IDCOLLECTIFVSDIFFUS', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_IDCONVENTIONSLAL', 'CF_LOGEMENT_IDCONVENTIONSLAL', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_IDTYPEPROPRIO', 'CF_LOGEMENT_IDTYPEPROPRIO', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_IMAGE', 'CF_LOGEMENT_IMAGE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_INTERMEDIATION', 'CF_LOGEMENT_INTERMEDIATION', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_INTERPHONE', 'CF_LOGEMENT_INTERPHONE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_CONSTRUCT', 'CF_LOGEMENT_L_CONSTRUCT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_CONTRESLOG', 'CF_LOGEMENT_L_CONTRESLOG', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_CONVENTION', 'CF_LOGEMENT_L_CONVENTION', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_DEPCOM', 'CF_LOGEMENT_L_DEPCOM', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_DROIT', 'CF_LOGEMENT_L_DROIT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_FINAN_AUTRE', 'CF_LOGEMENT_L_FINAN_AUTRE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_FINAN_INITIAL', 'CF_LOGEMENT_L_FINAN_INITIAL', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_IDENT_INT_BA', 'CF_LOGEMENT_L_IDENT_INT_BA', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_LIEU_LOGT', 'CF_LOGEMENT_LIEU_LOGT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_LOCAT_PARC_AN1', 'CF_LOGEMENT_L_LOCAT_PARC_AN1', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_NBPIECE', 'CF_LOGEMENT_L_NBPIECE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_NUMSISAL', 'CF_LOGEMENT_L_NUMSISAL', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_ORIGINE', 'CF_LOGEMENT_L_ORIGINE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_LOYER_DEM', 'CF_LOGEMENT_LOYER_DEM', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_PATRIMOINE_AN1', 'CF_LOGEMENT_L_PATRIMOINE_AN1', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_PROPRIETAIRE', 'CF_LOGEMENT_L_PROPRIETAIRE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_QPV', 'CF_LOGEMENT_L_QPV', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_L_TYPECONST', 'CF_LOGEMENT_L_TYPECONST', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_MEUBLE', 'CF_LOGEMENT_MEUBLE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_MILIEME', 'CF_LOGEMENT_MILIEME', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_NBRE_LITS', 'CF_LOGEMENT_NBRE_LITS', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_NO_BATIMENT', 'CF_LOGEMENT_NO_BATIMENT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_NO_ETABL', 'CF_LOGEMENT_NO_ETABL', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_NO_LOGEMENT', 'CF_LOGEMENT_NO_LOGEMENT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_NO_LOGT', 'CF_LOGEMENT_NO_LOGT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_NOM', 'CF_LOGEMENT_NOM', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_NON_LOGT', 'CF_LOGEMENT_NON_LOGT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_NO_TIERS', 'CF_LOGEMENT_NO_TIERS', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_PARKING', 'CF_LOGEMENT_PARKING', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_PRINCSEC', 'CF_LOGEMENT_PRINCSEC', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_REF_CLEF', 'CF_LOGEMENT_REF_CLEF', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_SDB', 'CF_LOGEMENT_SDB', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_SDB_EQP', 'CF_LOGEMENT_SDB_EQP', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_SI_ACTIF', 'CF_LOGEMENT_SI_ACTIF', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_SI_ALT', 'CF_LOGEMENT_SI_ALT', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_SI_CAF', 'CF_LOGEMENT_SI_CAF', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_SOUSLOCATION', 'CF_LOGEMENT_SOUSLOCATION', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_STATUT_BAIL', 'CF_LOGEMENT_STATUT_BAIL', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_SUPERFICIE_CORR', 'CF_LOGEMENT_SUPERFICIE_CORR', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_SURFACE', 'CF_LOGEMENT_SURFACE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_TELEPHONE', 'CF_LOGEMENT_TELEPHONE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_T_TYPE', 'CF_LOGEMENT_T_TYPE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_VILLE', 'CF_LOGEMENT_VILLE', 'ceriFoyer'), (NULL, 'CF_LOGEMENT_WC', 'CF_LOGEMENT_WC', 'ceriFoyer'), (NULL, 'CF_PeriodePrestations', 'CF_PeriodePrestations', 'ceriFoyer'), (NULL, 'CF_QUITTANCE_Aides', 'CF_QUITTANCE_Aides', 'ceriFoyer'), (NULL, 'CF_QUITTANCE_DejaPaye', 'CF_QUITTANCE_DejaPaye', 'CeriFoyer'), (NULL, 'CF_QUITTANCE_Du', 'CF_QUITTANCE_Du', 'CeriFoyer'), (NULL, 'CF_QUITTANCE_totalHT', 'CF_QUITTANCE_totalHT', 'CeriFoyer'), (NULL, 'CF_RESIDENT_ADRESSE_ET', 'CF_RESIDENT_ADRESSE_ET', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ANNULE_LE', 'CF_RESIDENT_ANNULE_LE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ASS_HAB_FIN', 'CF_RESIDENT_ASS_HAB_FIN', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ASS_HABITATION', 'CF_RESIDENT_ASS_HABITATION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_BADGCLI', 'CF_RESIDENT_BADGCLI', 'ceriFoyer'), (NULL, 'CF_RESIDENT_BIC', 'CF_RESIDENT_BIC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_CDPAYS', 'CF_RESIDENT_CDPAYS', 'ceriFoyer'), (NULL, 'CF_RESIDENT_CHAMBRE_OCCUPEE', 'CF_RESIDENT_CHAMBRE_OCCUPEE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_CHB_OCC', 'CF_RESIDENT_CHB_OCC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_CHB_PREP_ALT', 'CF_RESIDENT_CHB_PREP_ALT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_CIVILITE', 'CF_RESIDENT_CIVILITE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_CLECPTWEB', 'CF_RESIDENT_CLECPTWEB', 'ceriFoyer'), (NULL, 'CF_RESIDENT_CLE_RICE', 'CF_RESIDENT_CLE_RICE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_COLOCATAIRE', 'CF_RESIDENT_COLOCATAIRE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_COMPTE_ACP', 'CF_RESIDENT_COMPTE_ACP', 'ceriFoyer'), (NULL, 'CF_RESIDENT_COMPTE_ANA', 'CF_RESIDENT_COMPTE_ANA', 'ceriFoyer'), (NULL, 'CF_RESIDENT_COMPTE', 'CF_RESIDENT_COMPTE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_COMPTE_DG', 'CF_RESIDENT_COMPTE_DG', 'ceriFoyer'), (NULL, 'CF_RESIDENT_COMPTE_INDU', 'CF_RESIDENT_COMPTE_INDU', 'ceriFoyer'), (NULL, 'CF_RESIDENT_COT_NATION', 'CF_RESIDENT_COT_NATION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_COT_REGION', 'CF_RESIDENT_COT_REGION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_COURRIEL_FACT', 'CF_RESIDENT_COURRIEL_FACT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DAL', 'CF_RESIDENT_DAL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DATE2_SDAPL', 'CF_RESIDENT_DATE2_SDAPL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DATE_FIN_VALIDITE', 'CF_RESIDENT_DATE_FIN_VALIDITE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DATE_PLAN_APUREMENT', 'CF_RESIDENT_DATE_PLAN_APUREMENT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DATE_SDAPL', 'CF_RESIDENT_DATE_SDAPL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DELAI_PAIE', 'CF_RESIDENT_DELAI_PAIE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DELIVRE_LE', 'CF_RESIDENT_DELIVRE_LE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DELIVRE_PAR', 'CF_RESIDENT_DELIVRE_PAR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DEPT_NE', 'CF_RESIDENT_DEPT_NE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DIVERS', 'CF_RESIDENT_DIVERS', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DIVERS_CR', 'CF_RESIDENT_DIVERS_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DOMICILIATION', 'CF_RESIDENT_DOMICILIATION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_DT_DECES', 'CF_RESIDENT_DT_DECES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_EMAIL_CAU', 'CF_RESIDENT_EMAIL_CAU', 'ceriFoyer'), (NULL, 'CF_RESIDENT_E_MAIL', 'CF_RESIDENT_E_MAIL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ENTREE_CR', 'CF_RESIDENT_ENTREE_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ETABL', 'CF_RESIDENT_ETABL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_EVALUATION_SOCIALE', 'CF_RESIDENT_EVALUATION_SOCIALE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FACT_PERS_CAUTION', 'CF_RESIDENT_FACT_PERS_CAUTION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FAX_CAU', 'CF_RESIDENT_FAX_CAU', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_CONNAISS_AUTRES', 'CF_RESIDENT_FCMB_CONNAISS_AUTRES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_CONNAISS_INFO', 'CF_RESIDENT_FCMB_CONNAISS_INFO', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_ENTREETDF', 'CF_RESIDENT_FCMB_ENTREETDF', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_ENTREEVILLE', 'CF_RESIDENT_FCMB_ENTREEVILLE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_ID_NAT', 'CF_RESIDENT_FCMB_ID_NAT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_LANGUES_ETR', 'CF_RESIDENT_FCMB_LANGUES_ETR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_OBJ_AUTRES', 'CF_RESIDENT_FCMB_OBJ_AUTRES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_OBJ_COMPAGNON', 'CF_RESIDENT_FCMB_OBJ_COMPAGNON', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_OBJ_FORMATION', 'CF_RESIDENT_FCMB_OBJ_FORMATION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_OBJ_FOR_PER', 'CF_RESIDENT_FCMB_OBJ_FOR_PER', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_PROJET_N1', 'CF_RESIDENT_FCMB_PROJET_N1', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FCMB_RECRUT_INIT', 'CF_RESIDENT_FCMB_RECRUT_INIT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_FIN_RC', 'CF_RESIDENT_FIN_RC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_GIR_REEL', 'CF_RESIDENT_GIR_REEL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_GUICHET', 'CF_RESIDENT_GUICHET', 'ceriFoyer'), (NULL, 'CF_RESIDENT_IBAN', 'CF_RESIDENT_IBAN', 'ceriFoyer'), (NULL, 'CF_RESIDENT_IDNET', 'CF_RESIDENT_IDNET', 'ceriFoyer'), (NULL, 'CF_RESIDENT_IMAGE', 'CF_RESIDENT_IMAGE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_IMMAT', 'CF_RESIDENT_IMMAT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_INFO_DEST', 'CF_RESIDENT_INFO_DEST', 'ceriFoyer'), (NULL, 'CF_RESIDENT_INFO_ORIGINE', 'CF_RESIDENT_INFO_ORIGINE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_INFOS_RES', 'CF_RESIDENT_INFOS_RES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_INSCRIT_LE', 'CF_RESIDENT_INSCRIT_LE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPETENCESAUTRES', 'CF_RESIDENT_ITI_COMPETENCESAUTRES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPETENCESPRO', 'CF_RESIDENT_ITI_COMPETENCESPRO', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOAUTOCAD', 'CF_RESIDENT_ITI_COMPRO_INFOAUTOCAD', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOAUTRES', 'CF_RESIDENT_ITI_COMPRO_INFOAUTRES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOB2I', 'CF_RESIDENT_ITI_COMPRO_INFOB2I', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOCADWORK', 'CF_RESIDENT_ITI_COMPRO_INFOCADWORK', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOEXCEL', 'CF_RESIDENT_ITI_COMPRO_INFOEXCEL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOILLUSTRATOR', 'CF_RESIDENT_ITI_COMPRO_INFOILLUSTRATOR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOOUTLOOK', 'CF_RESIDENT_ITI_COMPRO_INFOOUTLOOK', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOPAINT', 'CF_RESIDENT_ITI_COMPRO_INFOPAINT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOPHOTOSHOP', 'CF_RESIDENT_ITI_COMPRO_INFOPHOTOSHOP', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOPPOINT', 'CF_RESIDENT_ITI_COMPRO_INFOPPOINT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOSEMA', 'CF_RESIDENT_ITI_COMPRO_INFOSEMA', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOSKETCHUP', 'CF_RESIDENT_ITI_COMPRO_INFOSKETCHUP', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_INFOWORD', 'CF_RESIDENT_ITI_COMPRO_INFOWORD', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_LANGUE1', 'CF_RESIDENT_ITI_COMPRO_LANGUE1', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_LANGUE2', 'CF_RESIDENT_ITI_COMPRO_LANGUE2', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_LANGUE3', 'CF_RESIDENT_ITI_COMPRO_LANGUE3', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_COMPRO_LANGUE4', 'CF_RESIDENT_ITI_COMPRO_LANGUE4', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_CONVCOLL', 'CF_RESIDENT_ITI_CONVCOLL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_DEPTRESIDORIGINE', 'CF_RESIDENT_ITI_DEPTRESIDORIGINE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_DTCREATION', 'CF_RESIDENT_ITI_DTCREATION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_DTDELIVRCARNET', 'CF_RESIDENT_ITI_DTDELIVRCARNET', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_DTENTREETDF', 'CF_RESIDENT_ITI_DTENTREETDF', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_DTSAISIE', 'CF_RESIDENT_ITI_DTSAISIE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_ETATCOMP_ASPAFFJH', 'CF_RESIDENT_ITI_ETATCOMP_ASPAFFJH', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_ETATCOMP_COMPAGNON', 'CF_RESIDENT_ITI_ETATCOMP_COMPAGNON', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_ETATCOMP_JEUNE', 'CF_RESIDENT_ITI_ETATCOMP_JEUNE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_IDCAMPAGNE', 'CF_RESIDENT_ITI_IDCAMPAGNE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_IDLOCOMOTION', 'CF_RESIDENT_ITI_IDLOCOMOTION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_IDMETIER', 'CF_RESIDENT_ITI_IDMETIER', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_IDSOCIETE', 'CF_RESIDENT_ITI_IDSOCIETE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_IDVILLE', 'CF_RESIDENT_ITI_IDVILLE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_IDVILLESUIV', 'CF_RESIDENT_ITI_IDVILLESUIV', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_JEUNE1EREVILLE', 'CF_RESIDENT_ITI_JEUNE1EREVILLE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_NOM_COMPAGNON', 'CF_RESIDENT_ITI_NOM_COMPAGNON', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_OBJ_AUTRES', 'CF_RESIDENT_ITI_OBJ_AUTRES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_OBJ_COMPAGNONNIQUE', 'CF_RESIDENT_ITI_OBJ_COMPAGNONNIQUE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_OBJ_FORMATION', 'CF_RESIDENT_ITI_OBJ_FORMATION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_OBJ_PLANCARRIERE', 'CF_RESIDENT_ITI_OBJ_PLANCARRIERE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_DEPT', 'CF_RESIDENT_ITI_RECTRSFT_DEPT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_DT_ARRIVPREVUE', 'CF_RESIDENT_ITI_RECTRSFT_DT_ARRIVPREVUE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_IDCAMPAGNE', 'CF_RESIDENT_ITI_RECTRSFT_IDCAMPAGNE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_IDRECRUT', 'CF_RESIDENT_ITI_RECTRSFT_IDRECRUT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_IDSOCIETE', 'CF_RESIDENT_ITI_RECTRSFT_IDSOCIETE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_RECRUT', 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_RECRUT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_SUIV', 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_SUIV', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_VOEU1', 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_VOEU1', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_VOEU2', 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_VOEU2', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_VOEU3', 'CF_RESIDENT_ITI_RECTRSFT_IDVILLE_VOEU3', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_SAISON', 'CF_RESIDENT_ITI_SAISON', 'ceriFoyer'), (NULL, 'CF_RESIDENT_ITI_TERMINALEIEF', 'CF_RESIDENT_ITI_TERMINALEIEF', 'ceriFoyer'), (NULL, 'CF_RESIDENT_LIEU_HOSP', 'CF_RESIDENT_LIEU_HOSP', 'ceriFoyer'), (NULL, 'CF_RESIDENT_LIEU_N', 'CF_RESIDENT_LIEU_N', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MEMO_AD', 'CF_RESIDENT_MEMO_AD', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MEMO_PA', 'CF_RESIDENT_MEMO_PA', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MODIF_RESA_SELF', 'CF_RESIDENT_MODIF_RESA_SELF', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MONNAIE_CAU', 'CF_RESIDENT_MONNAIE_CAU', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MONTANT_CAU', 'CF_RESIDENT_MONTANT_CAU', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MUTUELLE_AU1', 'CF_RESIDENT_MUTUELLE_AU1', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MUTUELLE_AU2', 'CF_RESIDENT_MUTUELLE_AU2', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MUTUELLE_CONTRAT1', 'CF_RESIDENT_MUTUELLE_CONTRAT1', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MUTUELLE_CONTRAT2', 'CF_RESIDENT_MUTUELLE_CONTRAT2', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MUTUELLE_DU1', 'CF_RESIDENT_MUTUELLE_DU1', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MUTUELLE_DU2', 'CF_RESIDENT_MUTUELLE_DU2', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MUTUELLE_ORG1', 'CF_RESIDENT_MUTUELLE_ORG1', 'ceriFoyer'), (NULL, 'CF_RESIDENT_MUTUELLE_ORG2', 'CF_RESIDENT_MUTUELLE_ORG2', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NBPERSONNE', 'CF_RESIDENT_NBPERSONNE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NBRE_ENFANTS', 'CF_RESIDENT_NBRE_ENFANTS', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NBRE_ENFANTS_CHARGE', 'CF_RESIDENT_NBRE_ENFANTS_CHARGE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NBRE_ENFANTS_PAYS', 'CF_RESIDENT_NBRE_ENFANTS_PAYS', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NE_A', 'CF_RESIDENT_NE_A', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NE_A_CR', 'CF_RESIDENT_NE_A_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NE_LE', 'CF_RESIDENT_NE_LE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NE_LE_CR', 'CF_RESIDENT_NE_LE_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_ALLOCATAIRE', 'CF_RESIDENT_NO_ALLOCATAIRE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_CAT_RES', 'CF_RESIDENT_NO_CAT_RES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_CSP', 'CF_RESIDENT_NO_CSP', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_DEPART_CR', 'CF_RESIDENT_NO_DEPART_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_ETABL', 'CF_RESIDENT_NO_ETABL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_FAMILLE_RES', 'CF_RESIDENT_NO_FAMILLE_RES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_GROUPE', 'CF_RESIDENT_NO_GROUPE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_LOCATAIRE_CAF', 'CF_RESIDENT_NO_LOCATAIRE_CAF', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_LOGT', 'CF_RESIDENT_NO_LOGT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NOM_AD', 'CF_RESIDENT_NOM_AD', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NOM_CAU', 'CF_RESIDENT_NOM_CAU', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NOM', 'CF_RESIDENT_NOM', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NOM_CR', 'CF_RESIDENT_NOM_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NOM_JF', 'CF_RESIDENT_NOM_JF', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NOM_JF_CR', 'CF_RESIDENT_NOM_JF_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NOM_PA', 'CF_RESIDENT_NOM_PA', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NOMP_SUIVI', 'CF_RESIDENT_NOMP_SUIVI', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_NATIONALITE', 'CF_RESIDENT_NO_NATIONALITE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_NATION_CR', 'CF_RESIDENT_NO_NATION_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_PROFESSION_RES', 'CF_RESIDENT_NO_PROFESSION_RES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NOPROSPECT', 'CF_RESIDENT_NOPROSPECT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_PROSPECT_STATUT', 'CF_RESIDENT_NO_PROSPECT_STATUT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_RANG', 'CF_RESIDENT_NO_RANG', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_REGIME', 'CF_RESIDENT_NO_REGIME', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_RESIDENT', 'CF_RESIDENT_NO_RESIDENT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_SECTEUR', 'CF_RESIDENT_NO_SECTEUR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_SECU', 'CF_RESIDENT_NO_SECU', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_TIERS_FACTURE', 'CF_RESIDENT_NO_TIERS_FACTURE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_NO_TYPE', 'CF_RESIDENT_NO_TYPE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERMIS_CAT', 'CF_RESIDENT_PERMIS_CAT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERMIS_NB_PLACE', 'CF_RESIDENT_PERMIS_NB_PLACE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_10NA', 'CF_RESIDENT_PERS_10NA', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_11NB', 'CF_RESIDENT_PERS_11NB', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_12NC', 'CF_RESIDENT_PERS_12NC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_2MA', 'CF_RESIDENT_PERS_2MA', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_3MB', 'CF_RESIDENT_PERS_3MB', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_4TA', 'CF_RESIDENT_PERS_4TA', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_5TB', 'CF_RESIDENT_PERS_5TB', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_6TC', 'CF_RESIDENT_PERS_6TC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_7TD', 'CF_RESIDENT_PERS_7TD', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_8TE', 'CF_RESIDENT_PERS_8TE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PERS_9TF', 'CF_RESIDENT_PERS_9TF', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PLAN_APUREMENT', 'CF_RESIDENT_PLAN_APUREMENT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PRARCHIVE', 'CF_RESIDENT_PRARCHIVE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PRENOM', 'CF_RESIDENT_PRENOM', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PRENOM_CR', 'CF_RESIDENT_PRENOM_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PROFESSION', 'CF_RESIDENT_PROFESSION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PROROGATION', 'CF_RESIDENT_PROROGATION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PROSPECTDTACC', 'CF_RESIDENT_PROSPECTDTACC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PROSPECTDTBASC', 'CF_RESIDENT_PROSPECTDTBASC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PROSPECTETBACC', 'CF_RESIDENT_PROSPECTETBACC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_PUBLIC', 'CF_RESIDENT_PUBLIC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_REF_COMPTE', 'CF_RESIDENT_REF_COMPTE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_REFERENCE_RC', 'CF_RESIDENT_REFERENCE_RC', 'ceriFoyer'), (NULL, 'CF_RESIDENT_REF_TITRE', 'CF_RESIDENT_REF_TITRE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_REINIT_REVENU', 'CF_RESIDENT_REINIT_REVENU', 'ceriFoyer'), (NULL, 'CF_RESIDENT_RELANCE_LE', 'CF_RESIDENT_RELANCE_LE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_REPRISE_SUR_REVISION', 'CF_RESIDENT_REPRISE_SUR_REVISION', 'ceriFoyer'), (NULL, 'CF_RESIDENT_RESPONSABLE', 'CF_RESIDENT_RESPONSABLE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_RES_PRESENT', 'CF_RESIDENT_RES_PRESENT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_RESSOURCES', 'CF_RESIDENT_RESSOURCES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SALAIRE', 'CF_RESIDENT_SALAIRE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SANTE_CAISSE', 'CF_RESIDENT_SANTE_CAISSE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SANTE_CENTRE', 'CF_RESIDENT_SANTE_CENTRE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SANTE_INFO', 'CF_RESIDENT_SANTE_INFO', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SDAPL', 'CF_RESIDENT_SDAPL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SEPA_DTSIGN', 'CF_RESIDENT_SEPA_DTSIGN', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SEPA_FIRST', 'CF_RESIDENT_SEPA_FIRST', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SEPA_RUM', 'CF_RESIDENT_SEPA_RUM', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SEPA_TYPMT', 'CF_RESIDENT_SEPA_TYPMT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SEXE', 'CF_RESIDENT_SEXE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SEXE_CR', 'CF_RESIDENT_SEXE_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SITUATION_F', 'CF_RESIDENT_SITUATION_F', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SL_INFO_JEUNE_RELOGE', 'CF_RESIDENT_SL_INFO_JEUNE_RELOGE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SL_NO_REF_PRESCRIPTEUR', 'CF_RESIDENT_SL_NO_REF_PRESCRIPTEUR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SL_ORIENTE_PAR', 'CF_RESIDENT_SL_ORIENTE_PAR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SL_PARC_LOGT_RELOGE', 'CF_RESIDENT_SL_PARC_LOGT_RELOGE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SL_REFERENT', 'CF_RESIDENT_SL_REFERENT', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SL_TYP_LOGT_RELOGE', 'CF_RESIDENT_SL_TYP_LOGT_RELOGE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SORTIE_CR', 'CF_RESIDENT_SORTIE_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SQL1_V40', 'CF_RESIDENT_SQL1_V40', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SQL2_V40', 'CF_RESIDENT_SQL2_V40', 'ceriFoyer'), (NULL, 'CF_RESIDENT_STATUS', 'CF_RESIDENT_STATUS', 'ceriFoyer'), (NULL, 'CF_RESIDENT_STATUS_CR', 'CF_RESIDENT_STATUS_CR', 'ceriFoyer'), (NULL, 'CF_RESIDENT_SUIVI_SOCIAL', 'CF_RESIDENT_SUIVI_SOCIAL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_TEL_AD', 'CF_RESIDENT_TEL_AD', 'ceriFoyer'), (NULL, 'CF_RESIDENT_TEL_CAU', 'CF_RESIDENT_TEL_CAU', 'ceriFoyer'), (NULL, 'CF_RESIDENT_TEL', 'CF_RESIDENT_TEL', 'ceriFoyer'), (NULL, 'CF_RESIDENT_TEL_MOBILE', 'CF_RESIDENT_TEL_MOBILE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_TEL_PA', 'CF_RESIDENT_TEL_PA', 'ceriFoyer'), (NULL, 'CF_RESIDENT_TEL_RESP', 'CF_RESIDENT_TEL_RESP', 'ceriFoyer'), (NULL, 'CF_RESIDENT_TUTEUR_PA1', 'CF_RESIDENT_TUTEUR_PA1', 'ceriFoyer'), (NULL, 'CF_RESIDENT_TYPE_RESSOURCES', 'CF_RESIDENT_TYPE_RESSOURCES', 'ceriFoyer'), (NULL, 'CF_RESIDENT_TYPE_TITRE', 'CF_RESIDENT_TYPE_TITRE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_VEHICULE', 'CF_RESIDENT_VEHICULE', 'ceriFoyer'), (NULL, 'CF_RESIDENT_VIREMENT', 'CF_RESIDENT_VIREMENT', 'ceriFoyer'), (NULL, 'CF_SEJOUR_AUTRE_DIPLOME', 'CF_SEJOUR_AUTRE_DIPLOME', 'ceriFoyer'), (NULL, 'CF_SEJOUR_CHOMAGE', 'CF_SEJOUR_CHOMAGE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_CLOTUREE', 'CF_SEJOUR_CLOTUREE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_COLOCATION', 'CF_SEJOUR_COLOCATION', 'ceriFoyer'), (NULL, 'CF_SEJOUR_CONFIRME', 'CF_SEJOUR_CONFIRME', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DATE_ANNULATION', 'CF_SEJOUR_DATE_ANNULATION', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DATE_ARRIVEE', 'CF_SEJOUR_DATE_ARRIVEE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DATE_DEB', 'CF_SEJOUR_DATE_DEB', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DATE_FIN', 'CF_SEJOUR_DATE_FIN', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DATE_FIN_FACTURATION', 'CF_SEJOUR_DATE_FIN_FACTURATION', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DATE_FIN_PREVUE', 'CF_SEJOUR_DATE_FIN_PREVUE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DATE_LIMITE', 'CF_SEJOUR_DATE_LIMITE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DATE_SAISIE', 'CF_SEJOUR_DATE_SAISIE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DIPLOME', 'CF_SEJOUR_DIPLOME', 'ceriFoyer'), (NULL, 'CF_SEJOUR_DT_FIN_FRACT', 'CF_SEJOUR_DT_FIN_FRACT', 'ceriFoyer'), (NULL, 'CF_SEJOUR_EN_COURS', 'CF_SEJOUR_EN_COURS', 'ceriFoyer'), (NULL, 'CF_SEJOUR_FORMATION', 'CF_SEJOUR_FORMATION', 'ceriFoyer'), (NULL, 'CF_SEJOUR_GR_FACTURE', 'CF_SEJOUR_GR_FACTURE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_HEB_ANT', 'CF_SEJOUR_HEB_ANT', 'ceriFoyer'), (NULL, 'CF_SEJOUR_INDIRLACTUELPER', 'CF_SEJOUR_INDIRLACTUELPER', 'ceriFoyer'), (NULL, 'CF_SEJOUR_INDIRLACTUELVAL', 'CF_SEJOUR_INDIRLACTUELVAL', 'ceriFoyer'), (NULL, 'CF_SEJOUR_INDIRLPRECPER', 'CF_SEJOUR_INDIRLPRECPER', 'ceriFoyer'), (NULL, 'CF_SEJOUR_INDIRLPRECVAL', 'CF_SEJOUR_INDIRLPRECVAL', 'ceriFoyer'), (NULL, 'CF_SEJOUR_LIEU_DEPART', 'CF_SEJOUR_LIEU_DEPART', 'ceriFoyer'), (NULL, 'CF_SEJOUR_LOGT_SORTIE', 'CF_SEJOUR_LOGT_SORTIE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MEMO_EMP', 'CF_SEJOUR_MEMO_EMP', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MEMO_PA', 'CF_SEJOUR_MEMO_PA', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MEMO_PR', 'CF_SEJOUR_MEMO_PR', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MOTIF_ANNULATION', 'CF_SEJOUR_MOTIF_ANNULATION', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MOTIF_DEP', 'CF_SEJOUR_MOTIF_DEP', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MOTIVATION', 'CF_SEJOUR_MOTIVATION', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MT_RESS_E1', 'CF_SEJOUR_MT_RESS_E1', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MT_RESS_E2', 'CF_SEJOUR_MT_RESS_E2', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MT_RESS_E3', 'CF_SEJOUR_MT_RESS_E3', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MT_RESS_S1', 'CF_SEJOUR_MT_RESS_S1', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MT_RESS_S2', 'CF_SEJOUR_MT_RESS_S2', 'ceriFoyer'), (NULL, 'CF_SEJOUR_MT_RESS_S3', 'CF_SEJOUR_MT_RESS_S3', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NB_CHANGEMENT', 'CF_SEJOUR_NB_CHANGEMENT', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NB_PERSONNES', 'CF_SEJOUR_NB_PERSONNES', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NBRE_ENFANTS', 'CF_SEJOUR_NBRE_ENFANTS', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_ACTIVITE_PROF_MERE', 'CF_SEJOUR_NO_ACTIVITE_PROF_MERE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_ACTIVITE_PROF_PERE', 'CF_SEJOUR_NO_ACTIVITE_PROF_PERE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_CH_LOGT_FJT', 'CF_SEJOUR_NO_CH_LOGT_FJT', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_CONTRAT_AIDE', 'CF_SEJOUR_NO_CONTRAT_AIDE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NOM_EMP', 'CF_SEJOUR_NOM_EMP', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NOM_PA2', 'CF_SEJOUR_NOM_PA2', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NOM_PA', 'CF_SEJOUR_NOM_PA', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NOM_PR', 'CF_SEJOUR_NOM_PR', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NOM_SEJOUR', 'CF_SEJOUR_NOM_SEJOUR', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_MT_REVENUS', 'CF_SEJOUR_NO_MT_REVENUS', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_RESA', 'CF_SEJOUR_NO_RESA', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_RESIDENT', 'CF_SEJOUR_NO_RESIDENT', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_SEJOUR_ALT', 'CF_SEJOUR_NO_SEJOUR_ALT', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_SEJOUR', 'CF_SEJOUR_NO_SEJOUR', 'ceriFoyer'), (NULL, 'CF_SEJOUR_NO_SEJ_REF', 'CF_SEJOUR_NO_SEJ_REF', 'ceriFoyer'), (NULL, 'CF_SEJOUR_ORG_GEO', 'CF_SEJOUR_ORG_GEO', 'ceriFoyer'), (NULL, 'CF_SEJOUR_PASSAGER', 'CF_SEJOUR_PASSAGER', 'ceriFoyer'), (NULL, 'CF_SEJOUR_PROF_ENTREE', 'CF_SEJOUR_PROF_ENTREE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_PROF_MERE', 'CF_SEJOUR_PROF_MERE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_PROF_PERE', 'CF_SEJOUR_PROF_PERE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_PROF_SORTIE', 'CF_SEJOUR_PROF_SORTIE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_RESS_ENTREE', 'CF_SEJOUR_RESS_ENTREE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_RESS_SORTIE', 'CF_SEJOUR_RESS_SORTIE', 'ceriFoyer'), (NULL, 'CF_SEJOUR_SECTEUR_ACT', 'CF_SEJOUR_SECTEUR_ACT', 'ceriFoyer'), (NULL, 'CF_SEJOUR_SEJ_FRACT', 'CF_SEJOUR_SEJ_FRACT', 'ceriFoyer'), (NULL, 'CF_SEJOUR_SIGLE_PR', 'CF_SEJOUR_SIGLE_PR', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TEL_EMP', 'CF_SEJOUR_TEL_EMP', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TEL_PA2', 'CF_SEJOUR_TEL_PA2', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TEL_PA', 'CF_SEJOUR_TEL_PA', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TEL_PR', 'CF_SEJOUR_TEL_PR', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TUTEUR_PA1', 'CF_SEJOUR_TUTEUR_PA1', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TUTEUR_PA2', 'CF_SEJOUR_TUTEUR_PA2', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TYPE_RESS_E1', 'CF_SEJOUR_TYPE_RESS_E1', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TYPE_RESS_E2', 'CF_SEJOUR_TYPE_RESS_E2', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TYPE_RESS_E3', 'CF_SEJOUR_TYPE_RESS_E3', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TYPE_RESS_S1', 'CF_SEJOUR_TYPE_RESS_S1', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TYPE_RESS_S2', 'CF_SEJOUR_TYPE_RESS_S2', 'ceriFoyer'), (NULL, 'CF_SEJOUR_TYPE_RESS_S3', 'CF_SEJOUR_TYPE_RESS_S3', 'ceriFoyer'), (NULL, 'CF_soldeCompte', 'CF_soldeCompte', 'CeriFoyer'), (NULL, 'CF_TitrePrestations', 'CF_TitrePrestations', 'ceriFoyer'), (NULL, 'CF_TotalHtPrestations', 'CF_TotalHtPrestations', 'ceriFoyer'); ALTER TABLE `config_modeles_docs` ADD `imageTampon` VARCHAR(255) NULL DEFAULT NULL AFTER `imageSignature`; -- -- 10-07-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Annuler le calcule des prestations', 'liste-btn-prestations-annuler', 'bouton', '1'); -- 14-07-2020 FTH -- ALTER TABLE `reservations` ADD `flagDG` VARCHAR(255) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'flagDG', 'Flag transfert et remb DG', '2', '30', '100', 'flagDG', '', '1', '0', 'reservations'); -- -- 15-07-2020 FTH -- ALTER TABLE `reservations` CHANGE `statutRIB` `statutRIB` ENUM('modifier','controler','refuser') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 15-07-2020 AK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Sauvegarder les listes privées', 'liste-save-private', 'menu', '1'); -- -- 20-07-2020 RM -- CREATE TABLE `domiciliation_config` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `ip` INT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `domiciliation_config` (`id`, `ip`) VALUES ('1', NULL); ALTER TABLE `domiciliation_config` CHANGE `ip` `ip` VARCHAR(100) NULL DEFAULT NULL; -- -- 20-07-2020 FTH -- ALTER TABLE `categorie_document` ADD `visibleResident` TINYINT(1) NULL DEFAULT '1' ; ALTER TABLE `categorie_document` ADD `deleted` TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE `categorie_document` ADD `parDefaut` TINYINT(1) NULL DEFAULT '0' AFTER `visibleResident`; INSERT INTO `categorie_document` (`id`, `nom`, `nomEn`, `visibleResident`, `parDefaut`, `deleted`) VALUES (NULL, 'Document demandé lors de la demande', NULL, '1', '1', '0'); INSERT INTO `categorie_document` (`id`, `nom`, `nomEn`, `visibleResident`, `parDefaut`, `deleted`) VALUES (NULL, 'Document demandé pour le séjour', NULL, '1', '1', '0'); INSERT INTO `categorie_document` (`id`, `nom`, `nomEn`, `visibleResident`, `parDefaut`, `deleted`) VALUES (NULL, 'Document mis à disposition par le gestionnaire', NULL, '1', '1', '0'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Campagnes-Documents résident', 'campagneDocumentResident', 'Reservation\\Controller\\Tarif', 'index', '3'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Documents résident', 'zfcadmin/campagneDocumentResident', 'menu', '3'); ALTER TABLE `documents` ADD `isResident` TINYINT NULL DEFAULT '0', ADD `idModele` INT NULL; ALTER TABLE `documents` ADD `idCategorie` INT NULL ; ALTER TABLE `documents` ADD `typeDoc` ENUM('statique','modele') NULL ; ALTER TABLE `documents` ADD `etatResa` VARCHAR(255) ; ALTER TABLE `documents` ADD `libelle` VARCHAR(255) NULL AFTER `nom`; -- -- 23-07-2020 JL -- UPDATE `domiciliations_etat` SET `nom` = 'Périmé' WHERE `domiciliations_etat`.`id` = 2; UPDATE `domiciliations_etat` SET `nom` = '+ 3 mois' WHERE `domiciliations_etat`.`id` = 3; INSERT INTO `domiciliations_etat` (`id`, `nom`) VALUES (4, 'A archiver'); INSERT INTO `domiciliations_etat` (`id`, `nom`) VALUES (5, 'Terminé'); -- -- 15-07-2020 AK -- UPDATE `champs` SET `idTypeHtml` = '14' WHERE `code` IN ('telephoneLocataire', 'mobileLocataire'); -- -- 29-07-2020 JL -- INSERT INTO `domiciliations_motifs` (`id`, `nom`) VALUES (5, 'Date de sortie dépassée'); UPDATE `domiciliations_etat` SET `nom` = 'Terminé' WHERE `domiciliations_etat`.`id` = 2; UPDATE `domiciliations_etat` SET `nom` = 'A archiver' WHERE `domiciliations_etat`.`id` = 3; DELETE FROM `domiciliations_etat` WHERE `domiciliations_etat`.`id` = 4; DELETE FROM `domiciliations_etat` WHERE `domiciliations_etat`.`id` = 5; -- -- 21-07-2020 FTH -- ALTER TABLE `categorie_document` CHANGE `parDefaut` `parDefaut` TINYINT NULL DEFAULT '0'; UPDATE `categorie_document` SET `parDefaut` = '2' WHERE `categorie_document`.`nom` = 'Document demandé pour le séjour'; UPDATE `categorie_document` SET `parDefaut` = '3' WHERE `categorie_document`.`nom` = 'Document demandé lors de la demande'; -- -- 11-08-2020 RM -- ALTER TABLE `api_paiement` ADD `carteActive` TEXT NULL AFTER `active`; -- -- 25-07-2020 FTH -- ALTER TABLE `logements` CHANGE `fourchetteLoyer` `fourchetteLoyer` VARCHAR(60) NULL DEFAULT NULL; UPDATE `champs_logements` SET `idTypeHtml` = '1' WHERE `champs_logements`.`code` = 'logements_fourchetteLoyer'; -- -- 03-08-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Fiche EDL', 'ficheclient/ficheEDL', 'menu', '99', '0', NULL); -- -- 05-08-2020 FTH -- ALTER TABLE `config_acces` ADD `controleMdpPMS` TINYINT(1) NULL DEFAULT '0' ; -- ------------------------------------------------------------------------------------------------------------------------------------ -- -------------------------- modèle mail pour le mot de passe oublié BO, à adapter selon le projet( le idType peut être différent)---- -- ------------------------------------------------------------------------------------------------------------------------------------ -- INSERT INTO `modeles_email` (`id`, `nomModele`, `nomFrom`, `emailFrom`, `emailCopie`, `emailCopieCachee`, `objet`, `corps`, `pdf`, `pdfHeader`, `pdfFooter`, `langue`, `idListe`, `idUser`, `idType`, `pj`, `docPJ`, `idDocs`, `modelePJ`, `idParent`, `deleted`, `idCategorie`) VALUES (null, 'Mdp oublié BO', 'Weasyloc', 'noreply@weasyloc.fr', NULL, NULL, 'Mot de passe oublié utilisateur', '
Bonjour %display_name%,
\r\n\r\nVotre nouveau mot de passe est %new_password%
\r\n\r\nVous devez le changer une fois connecté
\r\n', NULL, NULL, NULL, 'FR', 1, 1, 90, '', NULL, NULL, NULL, 0, 0, NULL); ALTER TABLE `modes_campagne` ADD `jourPrelevement` SMALLINT NULL , ADD `modePrelevement` ENUM('facture','soldeCompte','montantFixe','') NULL ; -- -- 06-08-2020 AAK -- UPDATE `categorie_document` SET `categorie_document`.`nom` = 'Documents demandés lors de la demande' WHERE `categorie_document`.`id` = 1; UPDATE `categorie_document` SET `categorie_document`.`nom` = 'Documents demandés pour le séjour' WHERE `categorie_document`.`id` = 2; UPDATE `categorie_document` SET `categorie_document`.`nom` = 'Documents mis à disposition par le gestionnaire' WHERE `categorie_document`.`id` = 3; -- -- 11-08-2020 AAK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Prestations', 'mode-input-prestation', 'champs', 26, 0, 'id-modePrestation'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode prestation : Modification', 'mode-input-prestation-btn-save', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode prestation : Choix de champs', 'mode-input-prestation-btn-champs', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode prestation : Suppression', 'mode-input-prestation-btn-delete', 'bouton', '1'); CREATE TABLE IF NOT EXISTS `liste_state_prestations` ( `id` int(11) NOT NULL, `data` text NOT NULL, `dateFilter` text, `numberFilter` text, `typeListe` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `liste_state_prestations` ADD PRIMARY KEY (`id`); ALTER TABLE `liste_state_prestations` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'prestaNo', 'N° prestation', 14, 1, 100, 'prestaNo', NULL, 1, 1, ''), (NULL, 'prestaDesc', 'Description prestation', 14, 1, 100, 'prestaDesc', NULL, 3, 1, ''), (NULL, 'prestaEtab', 'Etablissement prestation', 14, 1, 100, 'prestaEtab', NULL, 3, 1, ''), (NULL, 'prestaMontant', 'Montant prestation', 14, 1, 100, 'prestaMontant', NULL, 12, 1, ''), (NULL, 'prestaCat', 'Catégorie prestation', 14, 1, 100, 'prestaCat', NULL, 3, 1, ''), (NULL, 'prestaType', 'Type prestation', 14, 1, 100, 'prestaType', NULL, 3, 1, ''), (NULL, 'prestaNature', 'Nature prestation', 14, 1, 100, 'prestaNature', NULL, 3, 1, ''), (NULL, 'prestaFreq', 'Fréquence prestation', 14, 1, 100, 'prestaFreq', NULL, 3, 1, ''), (NULL, 'prestaNomPMS', 'PMS prestation', 14, 1, 100, 'prestaNomPMS', NULL, 3, 1, ''); INSERT INTO champs_pms (`nom`,`equivalentSql`) VALUES ('urlDemandePaiement','urlDemandePaiement'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'residentType', 'Type résident', 14, 1, 100, 'residentType', NULL, 3, 1, ''), (NULL, 'residentCat', 'Catégorie résident', 14, 1, 100, 'residentCat', NULL, 3, 1, ''); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode prestation : Réviser', 'mode-input-prestation-btn-reviser', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode prestation : Annuler Révision', 'mode-input-prestation-btn-annuler-revision', 'bouton', '1'); -- 12-08-2020 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'photo', 'Photo d''identité', 1, 9, 255, 'photo', NULL, 4, 1, 'locataires'); ALTER TABLE `locataires` ADD `statutPhoto` TINYINT NULL ; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`,`critere`) VALUES (NULL, 'Statut photo', 'int(1)', 'statutPhoto', 'locataires', 'statut_docs', '1', '3',''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'statutPhoto', 'Statut Photo d''identité', 1, 9, 255, 'statutPhoto', 'statut_docs', 3, 1, 'locataires'); -- -- RM 19-08-20 -- ALTER TABLE `demandes_prestations` ADD `libelle` VARCHAR(100) NULL AFTER `commentaires`; -- -- RM 21-08-20 -- INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`, `idFormEtatTravaux`) VALUES (NULL, 'Adresse e-mail de l''émetteur par défaut', 'noreply@wheb.fr', '0', NULL, NULL, '0', NULL, NULL); -- -- 27-08-2020 AAK -- CREATE TABLE IF NOT EXISTS `prestations_histo` ( `idPrestaHisto` int(11) NOT NULL, `idPrestaRev` int(11) NOT NULL, `prestaKey` varchar(100) NOT NULL, `idApiPms` smallint(6) NOT NULL, `dateCalcul` datetime DEFAULT NULL, `dateTransfert` datetime DEFAULT NULL, `montantOld` float DEFAULT NULL, `montantCalc` float DEFAULT NULL, `montantNew` float DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `prestations_histo` ADD PRIMARY KEY (`idPrestaHisto`), ADD KEY `prestaKey` (`prestaKey`), ADD KEY `idApiPms` (`idApiPms`) USING BTREE, ADD KEY `idPrestaRev` (`idPrestaRev`) USING BTREE, ADD KEY `dateCalcul` (`dateCalcul`) USING BTREE, ADD KEY `dateTransfert` (`dateTransfert`); ALTER TABLE `prestations_histo` MODIFY `idPrestaHisto` int(11) NOT NULL AUTO_INCREMENT; CREATE TABLE IF NOT EXISTS `prestations_revision` ( `prestaRevId` int(11) NOT NULL, `dateCalcul` datetime NOT NULL, `dateTransfert` datetime NOT NULL, `modeRevision` enum('prestaModeRevisionManuelle','prestaModeRevisionIndex') DEFAULT NULL, `tauxRevision` float DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `prestations_revision` ADD PRIMARY KEY (`prestaRevId`), ADD KEY `dateCalcul` (`dateCalcul`) USING BTREE, ADD KEY `dateTransfert` (`dateTransfert`) USING BTREE; ALTER TABLE `prestations_revision` MODIFY `prestaRevId` int(11) NOT NULL AUTO_INCREMENT; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'prestaHistoMontantOld', 'Montant prestation avant dernière révision', 14, 1, 100, 'montantOld', NULL, 12, 1, 'prestations_histo'), (NULL, 'prestaHistoMontantCalc', 'Montant prestation proposé', 14, 1, 100, 'montantCalc', NULL, 12, 1, 'prestations_histo'), (NULL, 'prestaHistoMontantNew', 'Montant prestation après révision', 14, 1, 100, 'montantNew', NULL, 12, 1, 'prestations_histo'), (NULL, 'prestaHistoDateCalcul', 'Date de calcul de révision', 14, 1, 100, 'dateCalcul', NULL, 2, 1, 'prestations_histo'), (NULL, 'prestaHistoDateTransfert', 'Date de dernière révision', 14, 1, 100, 'dateTransfert', NULL, 2, 1, 'prestations_histo'); -- -- 25-08-2020 JL -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Imprimer les codes barres sur les enveloppes', 'liste-btn-print-barcode-enveloppe', 'bouton', '1', '0', NULL); -- -- 25-08-2020 FTH -- -- -- Structure de la table `champs_profile` -- CREATE TABLE IF NOT EXISTS `champs_profile` ( `id` int(11) NOT NULL, `champName` varchar(255) NOT NULL, `idProfile` varchar(255) NOT NULL, `action` varchar(2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 26-08-2020 JL -- ALTER TABLE `cartes` ADD `carteImprimee` ENUM('1','0') NOT NULL DEFAULT '0' AFTER `actif`; -- 25-08-2020 RM -- UPDATE `champs` SET `nom` = 'Type de la demande' WHERE `champs`.`code` = 'demande_type'; -- -- 28-08-2020 JL -- ALTER TABLE `champs_formulaires` ADD `inCarteUsager` ENUM('0','1') NOT NULL DEFAULT '0' AFTER `valeurBredea`; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Carte usager', 'liste-btn-carte-usager', 'bouton', '1', '0', NULL); ALTER TABLE `configuration` ADD `modeImpressionCartes` ENUM('Evolis','Papier') NOT NULL DEFAULT 'Evolis' AFTER `tarifsProgrammes`; -- -- 27-08-2020 FTH -- DROP table `champs_profile`; -- -- Structure de la table `champs_profile` -- CREATE TABLE IF NOT EXISTS `champs_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `champName` varchar(255) NOT NULL, `idProfile` varchar(255) NOT NULL, `action` varchar(2) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; UPDATE `champs` SET `idTypeHtml` = '8' WHERE `champs`.`code` = 'controle1'; UPDATE `champs` SET `idTypeHtml` = '8' WHERE `champs`.`code` = 'controle2'; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Bouton login dans la fiche résident', 'liste-fiche-resident-login', 'bouton', '1'); -- -- RM Ajouter l'ordre sur l'etat des travaux -- ALTER TABLE `demandes_etat_travaux` ADD `ordre` SMALLINT NULL AFTER `nom`; UPDATE `demandes_etat_travaux` SET `ordre` = '1' WHERE `demandes_etat_travaux`.`nom` LIKE "%Impossibilité d'intervention%"; UPDATE `demandes_etat_travaux` SET `ordre` = '0' WHERE `demandes_etat_travaux`.`nom` LIKE "%Pris en compte%"; UPDATE `demandes_etat_travaux` SET `ordre` = '2' WHERE `demandes_etat_travaux`.`nom` LIKE "%En cours de réalisation%"; UPDATE `demandes_etat_travaux` SET `ordre` = '3' WHERE `demandes_etat_travaux`.`nom` LIKE "%Terminée%"; -- -- 2020-09-01 AK Création de la table Cartes oubliée précédemment -- CREATE TABLE IF NOT EXISTS `cartes` ( `id` mediumint(9) NOT NULL, `idDp` mediumint(9) DEFAULT NULL, `idLocataire` mediumint(9) DEFAULT NULL, `dateCreation` datetime NOT NULL, `actif` enum('0','1') NOT NULL, `carteImprimee` enum('1','0') NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `cartes` ADD PRIMARY KEY (`id`); ALTER TABLE `cartes` MODIFY `id` mediumint(9) NOT NULL AUTO_INCREMENT; -- -- 02-09-2020 FTH -- ALTER TABLE `configuration` ADD `prestaLoyerMultiple` TINYINT(1) NOT NULL DEFAULT '0' , ADD `prestaLoyerHC` VARCHAR(20) NULL , ADD `prestaCharges` VARCHAR(20) NULL ; -- -- 2020-09-03 AK -- CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `chargesParLogements` AS select `logements_to_type_charge`.`id` AS `id`,`residences`.`nom` AS `nomResidence`,`logements`.`nom` AS `nomLogement`,`charges_types`.`nomCharge` AS `nomCharge`,`charges_methodes`.`nomMethode` AS `nomMethode`,`charges_methodes`.`codeMethode` AS `codeMethode`,`logements_to_type_charge`.`valeurTypeCharge` AS `valeurTypeCharge` from (((((`logements_to_type_charge` left join `logements` on((`logements`.`id` = `logements_to_type_charge`.`idLogement`))) left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) left join `charges_types` on((`charges_types`.`id` = `logements_to_type_charge`.`idTypeCharge`))) left join `charges_methodes` on((`charges_methodes`.`id` = `charges_types`.`idMethode`))) where 1 order by `residences`.`nom`,`logements_to_type_charge`.`id`,`charges_types`.`nomCharge`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `logementsSansCharges` AS select `residences`.`nom` AS `nomResidence`,`logements`.`nom` AS `nomLogement`,`logements`.`numero` AS `numero`,`logements_to_type_charge`.`idLogement` AS `idLogement` from (((`logements` left join `logements_to_type_charge` on((`logements`.`id` = `logements_to_type_charge`.`idLogement`))) left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) where (1 and isnull(`logements_to_type_charge`.`idLogement`)) order by `residences`.`nom`,`logements`.`nom`; -- -- 03-09-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Bouton impression en lot suivis', 'liste-btn-modeles-docs-suivis', 'bouton', '1'); ALTER TABLE `type_modeles_docs` ADD `typeModele` ENUM('reservation','suivis') NULL DEFAULT 'reservation' ; -- 09-09-2020 JL -- ALTER TABLE `domiciliations` CHANGE `idCartes` `idCarte` MEDIUMINT(9) NULL DEFAULT NULL; -- -- 16-09-2020 RM -- ALTER TABLE `edl_article` CHANGE `changement` `changement` TINYINT(1) NULL DEFAULT '0'; ALTER TABLE `edl_article` CHANGE `changement_champ` `changement_champ` VARCHAR(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL; -- -- 22-09-2020 JL -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Trombinoscope', 'liste-btn-trombinoscope', 'bouton', '1', '0', NULL); -- -- 24-09-2020 RM (edl intermediaire) -- ALTER TABLE `edl` CHANGE `id_locataire` `id_locataire` MEDIUMINT(8) UNSIGNED NULL; ALTER TABLE `edl` CHANGE `id_reservations` `id_reservations` MEDIUMINT(8) UNSIGNED NULL; -- -- 2020-09-24 AK -- ALTER TABLE `api_paiement` ADD `defaut` TINYINT(1) UNSIGNED NULL DEFAULT NULL AFTER `active`; ALTER TABLE `api_paiement` ADD UNIQUE KEY `defaut` (`defaut`) USING BTREE, ADD KEY `active` (`active`); CREATE TABLE IF NOT EXISTS `api_paiement2residence` ( `idApiPaiement` smallint(6) NOT NULL, `idResidence` smallint(6) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `api_paiement2residence` ADD PRIMARY KEY (`idApiPaiement`,`idResidence`), ADD UNIQUE KEY `idResidence` (`idResidence`), ADD KEY `idApiPaiement` (`idApiPaiement`); ALTER TABLE `categorie_document` ADD UNIQUE KEY `nom` (`nom`); -- -- 24-09-2020 FTH -- ALTER TABLE `configuration` ADD `typeFacturation` ENUM('prorata','quinzaine','quinzaineHorsPremierDernier') NULL , ADD `dateDebutFact` ENUM('dateArriveeReel','dateArriveeInitiale') NULL ; -- -- 01-10-2020 RM -- ALTER TABLE `champs_demandes` ADD `formule` VARCHAR(255) NULL AFTER `valeurMax`; -- -- 05-10-2020 RM -- ALTER TABLE `valeurs_dynamiques` ADD `idDp` INT NULL AFTER `finValidite`; -- -- 07-10-2020 FTH -- CREATE TABLE IF NOT EXISTS `document_dp` ( `idDocument` int(11) NOT NULL, `idDp` int(11) NOT NULL, PRIMARY KEY (`idDocument`,`idDp`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 09-10-2020 FTH -- CREATE TABLE IF NOT EXISTS `categorie_document_profile` ( `idCategorie` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`idCategorie`,`idProfile`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 12-10-2020 FTH -- ALTER TABLE `user` ADD `deleted` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 14-10-2020 RM -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'demande_creer_par', 'Demande créée par', '5', '10', '255', 'user_id', NULL, '1', '1', 'user'); ALTER TABLE `demandes_historique` ADD `idUser` SMALLINT NULL AFTER `creation_date`; -- -- 15-10-2020 AK -- ALTER TABLE `logements_to_type_charge` ADD KEY `idLogement` (`idLogement`), ADD KEY `idTypeCharge` (`idTypeCharge`); -- -- 22-10-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode logement : Ajout périodes travaux', 'liste-btn-periode-travaux-logements', 'bouton', '1'); -- -- 26-10-2020 RM -- UPDATE `champs` SET `nom` = 'Etat formulaire' WHERE `champs`.`sourceListe` = 'demandes_etat' AND nom LIKE 'Etat'; -- -- 26-10-2020 AK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Mode réservation : Suppression de liste quelconque', 'liste-input-mode-liste-btn-delete-any', 'bouton', 1, 0, NULL); -- -- 27-10-2020 FTH -- ALTER TABLE `champs_catalogue` ADD `showAsSelectItem` TINYINT(1) NULL ; -- -- 02-11-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode multisuivis : créer un nouveau catalogue', 'liste-btn-creer-catalogue-mode-suivis', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode multisuivis : modifier un catalogue', 'liste-btn-edit-catalogue-suivis', 'bouton', '1'); ALTER TABLE `champs_catalogue` ADD `formule` VARCHAR(255) NULL ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Onglet documents : supprimer un document', 'fiche-locataire-btn-supprimer-doc', 'bouton', '1'); -- -- 03-11-2020 AK -- ALTER TABLE `type_logement` ADD `nomGenerique` VARCHAR(255) NULL DEFAULT NULL AFTER `nomEn`; ALTER TABLE `prestations_to_types` ADD UNIQUE KEY `id_prestations` (`id_prestations`,`id_types`); -- -- 03-12-2020 FTH -- ALTER TABLE `listes` ADD `flag` ENUM('planning') NULL ; -- -- 04-12-2020 FTH -- -- -- Structure de la table `domiciliations_commentaires` -- CREATE TABLE IF NOT EXISTS `domiciliations_commentaires` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idDp` int(11) NOT NULL, `commentaire` text, `userid` int(11) NOT NULL, `creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 12-11-2020 RM -- CREATE TABLE IF NOT EXISTS `configuration_cron` ( `id` SMALLINT NOT NULL AUTO_INCREMENT , `adresse` VARCHAR(50) NULL DEFAULT '["adresse1","adresse2","adresse3"]' COMMENT 'adresse de correspondance pour majAdresseLogement au niveau de la table logement' , `tableWeasyloc` VARCHAR(50) NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; INSERT INTO `configuration_cron` (`id`, `adresse`, `tableWeasyloc`) VALUES (NULL, '["adresse1","adresse2","adresse3"]', 'logements'); -- -- 13-11-2020 RM -- ALTER TABLE `edl_base_article` ADD `isCompteur` BOOLEAN NULL DEFAULT FALSE AFTER `cout`; -- -- 14-11-2020 RM -- ALTER TABLE `edl_article` ADD `isCompteur` BOOLEAN NULL DEFAULT FALSE AFTER `id_edl_sous_cat`; CREATE TABLE `compteurs` ( `id` SMALLINT NOT NULL AUTO_INCREMENT , `idArticleEdl` INT NOT NULL , `idEdl` MEDIUMINT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `edl_article` ADD `valeurCompteur` VARCHAR(20) NULL AFTER `isCompteur`; ALTER TABLE `edl_base_article` ADD `valeurCompteur` VARCHAR(20) NULL AFTER `isCompteur`; -- -- 17-11-2020 RM -- ALTER TABLE `suivis_historique` ADD `idLogement` INT NULL ; -- -- 17-11-2020 RM -- UPDATE champs SET `equivalentSql` = 'display_name', `sourceListe` = '', `idTypeHtml` = 3, `table` = 'user' WHERE `code` = 'demande_creer_par'; -- -- 19-11-2020 RM -- ALTER TABLE `edl_prestations` ADD `idPrestation` MEDIUMINT NULL AFTER `edl_id`; -- -- 23-11-2020 RM -- UPDATE `champs` SET `table` = 'demandes_historique' WHERE `champs`.`code` = 'demande_creer_par'; -- -- 24-11-2020 RM -- ALTER TABLE `logements` ADD `log_no` VARCHAR(20) NULL AFTER `fourchetteLoyer`; ALTER TABLE `logements` ADD `log_sno` VARCHAR(20) NULL AFTER `log_no`; -- -- 24-11-2020 AK -- ALTER TABLE `configuration` ADD `modeEditionInline` ENUM('champ','global') NOT NULL DEFAULT 'champ' ; ALTER TABLE `configuration` ADD `presentationCompteFinancier` SET('soldeAvecCaution','datesDecroissantes','soldeDuNegatif') NOT NULL AFTER `modeEditionInline`; ALTER TABLE `pmsCache` CHANGE `typeCache` `typeCache` ENUM('solde','soldeAvecCaution') NOT NULL DEFAULT 'solde'; -- -- 24-11-2020 RM -- ALTER TABLE `edl_base_article` ADD `idTypeCharges` SMALLINT(6) NULL AFTER `valeurCompteur`; -- -- 26-11-2020 RM -- ALTER TABLE `charges_compteurs` ADD `nouveauCompteur` BOOLEAN NULL DEFAULT FALSE AFTER `typeReleve`; -- -- 27-11-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Onglet domiciliation : modifier DP archivé', 'fiche-dp-modifier-archiver', 'bouton', '1'); -- -- 30-11-2020 RM -- ALTER TABLE `edl_article` ADD `nouveauCompteur` BOOLEAN NULL DEFAULT FALSE AFTER `valeurCompteur`; -- -- 01-12-2020 RM -- ALTER TABLE `edl_article` ADD `idTypeCharges` MEDIUMINT NULL AFTER `nouveauCompteur`; ALTER TABLE `charges_compteurs` ADD `idEdl` MEDIUMINT NULL AFTER `nouveauCompteur`; -- -- 01-12-2020 JL -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatCourrier', 'Etat du courrier', '2', '10', '255', 'etatCourrier', NULL, '3', '0', 'suivis'); -- -- 02-12-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche usager : modifier un catalogue', 'btn-edit-catalogue-fiche-usager', 'bouton', '1'); -- -- 03-12-2020 JL -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateDernierScan', 'Date du dernier scan', '9', '5', '100', 'dateDernierScan', '', '2', '0', 'domiciliations'); ALTER TABLE `suivis` ADD `dateDistribution` DATE NULL DEFAULT NULL AFTER `idLogement`; -- -- 09-12-2020 RM -- ALTER TABLE `rdv` ADD `idRdvPlanning` MEDIUMINT NULL AFTER `idResidence`; -- -- 11-12-2020 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche usager : ajouter un encaissement', 'btn-ajouter-encaissement-fiche-usager', 'bouton', '1'); -- -- 15-12-2020 FTH -- ALTER TABLE `configuration` ADD `rembAuto` TINYINT(1) NULL DEFAULT '0' COMMENT 'Activer le remboursement auto si on saisie un RIB' ; -- -- 17-12-2020 RM -- ALTER TABLE `rdv_planning_to_residences` ADD `id_batiment` MEDIUMINT NULL DEFAULT NULL AFTER `id_residence`; ALTER TABLE `rdv_planning_to_residences` CHANGE `id_residence` `id_residence` MEDIUMINT(9) NULL DEFAULT NULL; -- -- 17-12-2020 FTH -- ALTER TABLE `plai_ressources` ADD `handicap` VARCHAR(2) NULL , ADD `finValiditeHandicap` DATE NULL , ADD `preuveHandicap` VARCHAR(255) NULL ; ALTER TABLE `plai_ressources` ADD `statutPreuveHandicap` TINYINT NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'handicap', 'Hadicap', '7', '30', '100', 'handicap', '', '8', '1', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'finValiditeHandicap', 'Date fin validité handicap', '7', '30', '100', 'finValiditeHandicap', '', '2', '1', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'preuveHandicap', 'Document preuve handicap', '7', '30', '100', 'preuveHandicap', '', '4', '1', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'statutPreuveHandicap', 'Statut Document preuve handicap', 1, 9, 255, 'statutPreuveHandicap', 'statut_docs', 3, 1, 'plai_ressources'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Hadicap', 'varchar(2)', 'handicap', 'plai_ressources', NULL, '1', '8', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date fin validité handicap', 'date', 'finValiditeHandicap', 'plai_ressources', NULL, '1', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Document preuve handicap', 'varchar(255)', 'preuveHandicap', 'plai_ressources', NULL, '1', '4', NULL); -- -- 21-12-2020 RM -- ALTER TABLE rdv DROP INDEX idReservations_2; -- -- 18-12-2020 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'jeuneMenage', 'Jeune ménage', 1, 9, 255, 'jeuneMenage', '', 8, 0, ''); -- -- 22-12-2020 AK -- ALTER TABLE `configuration` ADD `presentationCompteFinancier` SET('soldeAvecCaution','datesDecroissantes','soldeDuNegatif') NOT NULL AFTER `modeEditionInline`; ALTER TABLE `pmsCache` ADD `valeur2` FLOAT NOT NULL AFTER `valeur`; ALTER TABLE `pmsCache` CHANGE `typeCache` `typeCache` ENUM('solde') NOT NULL DEFAULT 'solde'; INSERT INTO champs (`code`,`nom`,`idTheme`,`ordre`,`taille`,`equivalentSql`,`idTypeHtml`,`afficher`,`table`) VALUES ('pmsSoldeAvecCaution','Solde du compte (avec DG)','2','20','100','valeur2','12','0','pmsCache'); INSERT INTO champs (`code`,`nom`,`idTheme`,`ordre`,`taille`,`equivalentSql`,`idTypeHtml`,`afficher`,`table`) VALUES ('pmsSoldeSansCaution','Solde du compte (hors DG)','2','20','100','valeur','12','0','pmsCache'); ALTER TABLE `type_user` ADD UNIQUE KEY `codeType` (`codeType`); -- -- 28-12-2020 AK -- INSERT INTO champs (`code`,`nom`,`idTheme`,`ordre`,`taille`,`equivalentSql`,`idTypeHtml`,`afficher`,`table`) VALUES ('sousEtatReservation','Sous-état de réservation','2','17','100','sousEtat','3','0','reservations'); -- 28-12-2020 FTH -- ALTER TABLE `plai_ressources` ADD `handicapEntree` VARCHAR(2) NULL , ADD `finValiditeHandicapEntree` DATE NULL , ADD `preuveHandicapEntree` VARCHAR(255) NULL ; ALTER TABLE `plai_ressources` ADD `statutPreuveHandicapEntree` TINYINT NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'handicapEntree', 'Hadicap entrée', '7', '30', '100', 'handicapEntree', '', '8', '1', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'finValiditeHandicapEntree', 'Date fin validité entrée', '7', '30', '100', 'finValiditeHandicapEntree', '', '2', '1', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'preuveHandicapEntree', 'Document preuve handicap entrée', '7', '30', '100', 'preuveHandicapEntree', '', '4', '1', 'plai_ressources'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'statutPreuveHandicapEntree', 'Statut Document preuve handicap entrée', 1, 9, 255, 'statutPreuveHandicapEntree', 'statut_docs', 3, 1, 'plai_ressources'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Hadicap entrée', 'varchar(2)', 'handicapEntree', 'plai_ressources', NULL, '1', '8', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date fin validité handicap entrée', 'date', 'finValiditeHandicapEntree', 'plai_ressources', NULL, '1', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Document preuve handicap entrée', 'varchar(255)', 'preuveHandicapEntree', 'plai_ressources', NULL, '1', '4', NULL); -- -- 05-01-2021 RM -- INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (NULL, 'Liste multiple', 'Multiple-Select', '1'); -- -- 08-01-2021 FTH -- ALTER TABLE `configuration` ADD `filtresDyn` TINYINT(1) NULL DEFAULT '0' COMMENT 'Filtres dynamiques pour les listes' ; -- -- 11-01-2021 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Listes', 'dashboard/listes', 'bouton', '83'); -- -- 12-01-2021 FTH -- -- -- Structure de la table `historique_menage` -- CREATE TABLE IF NOT EXISTS `historique_menage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idResa` int(11) NOT NULL, `idAncienMenage` int(11) NOT NULL, `idNouveauMenage` int(11) NOT NULL, `dateChangement` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `menages` -- CREATE TABLE IF NOT EXISTS `menages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `statut_familial` -- CREATE TABLE IF NOT EXISTS `statut_familial` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `reservations` ADD `idMenage` INT NULL ; ALTER TABLE `reservations` ADD `idStatutFamilial` SMALLINT NULL ; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Nom du ménage', 'int(9)', 'idMenage', 'reservations', 'menages', '1', '3', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Statut familial', 'int(9)', 'idStatutFamilial', 'reservations', 'statut_familial', '1', '3', NULL); ALTER TABLE `configuration` ADD `pageValiderBtn` ENUM('creer','dupliquer','creerDupliquer','') NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'idSuivis', 'ID suivis', 2, 9, 255, 'id', '', 5, 0, 'suivis'); -- -- 18-01-2021 RM -- INSERT INTO `type_actions` (`id`, `type`, `ordre`) VALUES (NULL, 'Générer un modèle de document', NULL); -- -- 15-01-2021 FTH -- ALTER TABLE `statut_familial` ADD `code` VARCHAR(50) NOT NULL ; INSERT INTO `statut_familial` (`id`, `nom`, `code`) VALUES ('1', 'Chef de famille', 'chef'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Créer un dossier', 'liste-btn-creer-dossier', 'bouton', '1'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'idMenage', 'Nom ménage', 2, 9, 255, 'idMenage', 'menages', 3, 0, 'reservations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'idStatutFamilial', 'Statut familial', 2, 9, 255, 'idStatutFamilial', 'statut_familial', 3, 0, 'reservations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'montantPrestaMenage', 'Montant prestation total de ménage', 1, 9, 255, 'montantPrestaMenage', '', 5, 0, ''); -- -- 18-01-2021 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Historique sous onglet évolution ménage', 'ficheLogs/menages', 'menu', 99); -- -- 22-01-2021 AK -- INSERT INTO `type_prestation` (`id`, `type`, `codePrestation`) VALUES ('11', 'Appel paiement DG', 'APD'), ('12', 'Appel remboursement DG', 'ARD'), ('13', 'Remboursement DG', 'RDG'), ('14', 'Utilisation DG', 'UDG'); -- -- 22-01-2021 FTH -- CREATE TABLE IF NOT EXISTS `suivis_type_liste` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `type` varchar(255) NOT NULL, `codeType` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `suivis_type_liste` (`id`, `type`, `codeType`) VALUES (1, 'Archivés', 'archive'); ALTER TABLE `suivis_listes` ADD `idTypeListe` SMALLINT NULL ; -- -- 26-01-2021 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode domiciliation : suppression définitif des domiciliations', 'liste-btn-delete-dp', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode réservation : suppression définitif des résa', 'liste-btn-delete-resa', 'bouton', '1'); -- -- 28-01-2021 FTH -- INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Campagnes-logos', 'campagneLogos', 'Reservation\\Controller\\Tarif', 'index', '3'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Logos', 'zfcadmin/campagneLogos', 'menu', '3'); ALTER TABLE `campagnes` ADD `logo` VARCHAR(255) NULL ; ALTER TABLE `config_mails` CHANGE `idResidence` `idResidence` INT(11) NULL; ALTER TABLE `config_mails` ADD `idCampagne` INT NULL ; ALTER TABLE `config_modeles_docs` ADD `idCampagne` INT NULL ; ALTER TABLE `pametres_mail` ADD `recupererParametresCampagnes` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 02-02-2021 FTH -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`) VALUES (NULL, 'Date de départ renonce', 'date', 'dateDepartRenonce', 'demandes', NULL, 4, 2); UPDATE `champs_demandes` SET `name` = 'dateDepartRenonce',`equivalentSql` = 'dateDepartRenonce',`nature` = 'standard',`idCss` = 'id-dateDepartRenonce' WHERE `champs_demandes`.`name` = 'libre_date_de_depart_souhaitee'; -- -- 10-02-2021 AK -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'aliasCB', 'Alias CB', 1, 10, 25, 'alias', '', 1, 1, 'alias_locataires'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'aliasFinValidite', 'Alias fin validité', 1, 10, 100, 'dateExpCB', '', 1, 1, 'alias_locataires'); -- 11-02-2021 FTH -- DELETE FROM `champs` WHERE `code` = 'montantPrestaMenage'; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'montantPrestaMenageAvoir', 'Montant prestation total de ménage à verser', 1, 9, 255, 'montantPrestaMenageAvoir', '', 5, 0, ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'montantPrestaMenageFacture', 'Montant prestation total de ménage dû', 1, 9, 255, 'montantPrestaMenageFacture', '', 5, 0, ''); -- -- 12-02-2021 JL -- ALTER TABLE `domiciliations` ADD `renouvellement` ENUM('0','1') NOT NULL DEFAULT '0' AFTER `dateFinValidite`; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'renouvellement', 'Dp renouvelée', '9', '3', '100', 'renouvellement', '', '9', '1', 'domiciliations'); -- -- 15-02-2021 RM -- ALTER TABLE `champs_formulaires` ADD `itemsRequiredToActivateSelect2` SMALLINT NULL DEFAULT '10' AFTER `inCarteUsager`; ALTER TABLE `champs_demandes` ADD `itemsRequiredToActivateSelect2` SMALLINT NULL DEFAULT '10' AFTER `formule`; ALTER TABLE `champs_suivis` ADD `itemsRequiredToActivateSelect2` SMALLINT NULL DEFAULT '10' AFTER `nomListeDp`; -- -- 16-02-2021 FTH -- -- -- Structure de la table `logements_listes` -- CREATE TABLE IF NOT EXISTS `logements_listes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `idUser` int(11) NOT NULL, `idEtat` tinyint(4) NOT NULL, `deleted` tinyint(1) NOT NULL, `idType` int(11) NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `logements_liste_profile` -- CREATE TABLE IF NOT EXISTS `logements_liste_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idListe` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `logements_state` ADD `idListe` INT(11) NOT NULL; INSERT INTO `logements_listes` (`id`, `nom`, `idUser`, `idEtat`, `deleted`, `idType`) VALUES (1, 'Logements', '1', '2', '0', null); UPDATE `logements_state` SET `idListe` = '1' WHERE `logements_state`.`id` = 1; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode logements : Suppression', 'mode-input-loge-btn-delete', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode logements : Modification', 'mode-input-loge-btn-save', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode logements : Choix de champs', 'mode-input-loge-btn-champs', 'bouton', '1'); -- -- 18-02-2021 FTH -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`) VALUES (NULL, 'Résidence logement', 'MEDIUMINT', 'residenceLogement', '', 'residences', '1', '3'); -- -- 19-02-2021 FTH -- ALTER TABLE `modeles_email` ADD `emailDest` TEXT NULL AFTER `emailCopieCachee`; ALTER TABLE `modeles_email_campagne` ADD `emailDest` TEXT NULL AFTER `emailCopieCachee`; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (null, 'Fiche logement', 'fichelogement', 'menu', '0'); INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/infos'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Fiche signalétique' WHERE `droit_elements`.`unique_name` = 'fichelogement/infos'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/occupant'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Occupant' WHERE `droit_elements`.`unique_name` = 'fichelogement/occupant'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/intercontrat'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Inter-contrat' WHERE `droit_elements`.`unique_name` = 'fichelogement/intercontrat'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/commentaires'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Commentaires' WHERE `droit_elements`.`unique_name` = 'fichelogement/commentaires'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/compteur'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Compteur' WHERE `droit_elements`.`unique_name` = 'fichelogement/compteur'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/travaux'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Travaux' WHERE `droit_elements`.`unique_name` = 'fichelogement/travaux'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/typecharge'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Type charge' WHERE `droit_elements`.`unique_name` = 'fichelogement/typecharge'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/interventions'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Interventions' WHERE `droit_elements`.`unique_name` = 'fichelogement/interventions'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/inventaire'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Inventaire' WHERE `droit_elements`.`unique_name` = 'fichelogement/inventaire'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/documents'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Documents' WHERE `droit_elements`.`unique_name` = 'fichelogement/documents'; INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/historique'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Historique' WHERE `droit_elements`.`unique_name` = 'fichelogement/historique'; -- -- 23-02-2021 RM -- ALTER TABLE `locataires` ADD `pays` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `statutPhoto`; -- -- 25-02-2021 RM -- ALTER TABLE `logements` ADD `idSitePMS` VARCHAR(50) NULL AFTER `log_sno`; -- -- 24-02-2021 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idDp', 'Id domiciliation', '5', '15', '50', 'idDp', '', '5', '0', 'domiciliations'); -- -- 25-02-2021 AK -- ALTER TABLE `modes_campagne` ADD `priseEmpreinteCBdemande` ENUM('sansPriseEmpreinteCB','avecPriseEmpreinteCBpourFraisInitiaux', 'avecPriseEmpreinteCBpourFraisInitiauxEtLoyers') NOT NULL DEFAULT 'sansPriseEmpreinteCB' AFTER `modePrelevement`; ALTER TABLE `modes_campagne` ADD `validationExpliciteDossiersComplets` ENUM('sansValidationDossiersComplets', 'avecValidationDossiersComplets', 'avecValidationDossiersCompletsBloquante') NOT NULL DEFAULT 'sansValidationDossiersComplets' AFTER `priseEmpreinteCBdemande`; ALTER TABLE `reservations` CHANGE `sousEtat` `sousEtat` SET('avecFraisInitiaux','fraisInitiauxRegles','dossierIncomplet') NULL DEFAULT NULL; -- -- 04-03-2021 FTH -- INSERT INTO `type_user` (`id`, `type`, `codeType`) VALUES (NULL, 'Référent RSA', 'RSA'); -- -- 08-03-2021 AK -- CREATE TABLE IF NOT EXISTS `nationalites` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `nationalite` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) DEFAULT CHARSET = utf8 AUTO_INCREMENT = 1; -- éventuellement si table encore vide et pas de PMS -- INSERT INTO `nationalites` (`id`, `nationalite`) VALUES (1, 'Française'), (2, 'Afghane'), (3, 'Sud-africaine'), (4, 'Albanaise'), (5, 'Algérienne'), (6, 'Allemande'), (7, 'Américaine'), (8, 'Andoranne'), (9, 'Britannique'), (10, 'Angolais'), (11, 'Saoudienne'), (12, 'Argentine'), (13, 'Arménienne'), (14, 'Australienne'), (15, 'Autrichienne'), (16, 'Azerbaïdjanaise'), (17, 'Bahreïnienne'), (18, 'Barbadienne'), (19, 'Belge'), (20, 'Bengladeshi'), (21, 'Béninoise'), (23, 'Bhoutanais'), (24, 'Biélorusse'), (25, 'Bolivienne'), (27, 'Bosniaque'), (28, 'Brésilienne'), (29, 'Bulgare'), (30, 'Burkinabe'), (31, 'Burundaise'), (32, 'Cambodgienne'), (33, 'Camerounaise'), (34, 'Canadienne'), (35, 'Cap-Verdienne'), (36, 'Centrafricaine'), (37, 'Chilienne'), (38, 'Chinoise'), (40, 'Chypriote'), (41, 'Colombienne'), (42, 'Comorienne'), (43, 'Congolaise (Congo Brazzaville)'), (44, 'Congolaise (Congo Kinshasa)'), (45, 'Coréenne du Nord'), (46, 'Coréenne du Sud'), (47, 'Costaricienne'), (48, 'Ivoirienne'), (49, 'Croate'), (50, 'Cubaine'), (51, 'Danoise'), (52, 'Egyptienne'), (53, 'Emirati (Emirats Arabes Unis)'), (54, 'Equatorienne'), (55, 'Erythréenne'), (56, 'Espagnole'), (57, 'Estonienne'), (58, 'Ethiopienne'), (59, 'Finlandaise'), (61, 'Gabonaise'), (62, 'Gambienne'), (63, 'Géorgienne'), (64, 'Ghanéenne'), (65, 'Grecque'), (66, 'Guinéenne'), (67, 'Guinéenne (Bissau-Guinéenne)'), (68, 'Haitienne'), (69, 'Hondurienne'), (70, 'Hongroise'), (72, 'Mauritanienne'), (73, 'Indienne'), (74, 'Indonesienne'), (75, 'Iranienne'), (76, 'Irakienne'), (77, 'Irlandaise'), (78, 'Islandaise'), (79, 'Israélienne'), (80, 'Italienne'), (81, 'Jamaicaine'), (82, 'Japonaise'), (83, 'Jordanienne'), (84, 'Kazakh'), (85, 'Kényanne'), (86, 'Kirghiz'), (88, 'Kowéïtienne'), (89, 'Laotienne'), (90, 'Lettone'), (91, 'Libanaise'), (92, 'Libérienne'), (93, 'Libyenne'), (94, 'Lithuanienne'), (95, 'Luxembourgeoise'), (96, 'Macédonienne'), (97, 'Malaisienne'), (98, 'Malawites'), (99, 'Malgache'), (100, 'Malienne'), (101, 'Marocaine'), (102, 'Mexicaine'), (103, 'Moldave'), (104, 'Monégasque'), (105, 'Népalaise'), (106, 'Nicaraguayenne'), (107, 'Nigérienne'), (108, 'Nigérianne'), (109, 'Norvégienne'), (110, 'Nouvelle Calédonie'), (111, 'Néozélandaise'), (112, 'Ougandaise'), (113, 'Ouzbek'), (114, 'Pakistanaise'), (115, 'Palestinienne'), (116, 'Néerlandaise'), (117, 'Péruvienne'), (118, 'Philippine'), (119, 'Polonaise'), (120, 'Portugaise'), (121, 'Qatari'), (122, 'Dominicaine (Rép De Dominique)'), (123, 'Tchèque'), (124, 'Roumaine'), (125, 'Russe'), (126, 'Rwandaise'), (127, 'Salvadorienne'), (128, 'American Samoa'), (129, 'Santoméenne'), (130, 'Sénégalaise'), (131, 'Serbe'), (132, 'Singapourienne'), (133, 'Slovaque'), (134, 'Slovène'), (135, 'Soudanaise'), (136, 'Sri-lankaise'), (137, 'Suèdoise'), (138, 'Suisse'), (139, 'Syrienne'), (140, 'Taiwanaise'), (141, 'Tanzanienne'), (142, 'Tchadienne'), (143, 'Thailandaise'), (144, 'Togolaise'), (145, 'Trinidadienne'), (146, 'Tunisienne'), (147, 'Turkmène'), (148, 'Turque'), (149, 'Ukrainienne'), (150, 'Uruguayienne'), (152, 'Vénézuélienne'), (153, 'Vietnamienne'), (154, 'Yéménite'), (155, 'Zimbabwéenne'), (157, 'Omanaise'), (158, 'Guatemaltéque'), (159, 'Mauricienne'), (160, 'Antigua-et-Barbuda'), (162, 'Brunéi Darussalam'), (163, 'Bahamas'), (164, 'Botswana'), (165, 'Belize'), (166, 'Djibouti'), (167, 'Dominique'), (168, 'Fidji'), (169, 'États Fédérés de Micronésie'), (170, 'Grenade'), (171, 'Guinée Équatoriale'), (172, 'Guyana'), (173, 'Hong-Kong'), (174, 'Saint-Kitts-et-Nevis'), (175, 'Sainte-Lucie'), (176, 'Liechtenstein'), (177, 'Lesotho'), (178, 'Monténégro'), (179, 'Myanmar'), (180, 'Mongolie'), (181, 'Malte'), (182, 'Maldives'), (183, 'Mozambique'), (184, 'Namibie'), (185, 'Nauru'), (186, 'Panama'), (187, 'Papouasie-Nouvelle-Guinée'), (188, 'Porto Rico'), (189, 'Paraguay'), (192, 'Seychelles'), (193, 'Sierra Leone'), (194, 'Saint-Marin'), (195, 'Somalie'), (196, 'Suriname'), (197, 'Swaziland'), (198, 'Tadjikistan'), (199, 'Timor-Leste'), (200, 'Tonga'), (201, 'Tuvalu'), (202, 'Vanuatu'), (203, 'Zambie'), (204, 'Autre'); UPDATE `champs` SET `sourceListe` = 'nationalites' WHERE `champs`.`code` LIKE 'nationaliteLocataire'; -- -- 09-03-2021 FTH -- -- -- Structure de la table `modeles_email_modeles_docs` -- CREATE TABLE IF NOT EXISTS `modeles_email_modeles_docs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModeleMail` int(11) NOT NULL, `idModeleDoc` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 12-03-2021 FTH -- -- -- Structure de la table `actions_conditions_demandes` -- CREATE TABLE IF NOT EXISTS `actions_conditions_demandes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChamp` int(11) NOT NULL, `idAction` int(11) NOT NULL, `typeValeur` enum('exact','interval') NOT NULL, `operateur` tinyint(4) NOT NULL, `valeurExact` varchar(255) DEFAULT NULL, `valeurMin` varchar(255) DEFAULT NULL, `valeurMax` varchar(255) DEFAULT NULL, `champDebut` int(11) DEFAULT NULL, `champFin` int(11) DEFAULT NULL, `unite` varchar(20) DEFAULT NULL, `idChampTexte` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `actions_js_demandes` -- CREATE TABLE IF NOT EXISTS `actions_js_demandes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChampAttache` int(11) NOT NULL, `idChamp` int(11) NOT NULL, `idType` int(11) NOT NULL, `valeur` varchar(255) DEFAULT NULL, `valeurChamp` varchar(255) DEFAULT NULL, `texte` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 15-03-2021 AK -- ALTER TABLE `paiements` ADD `idApiPaiement` MEDIUMINT NOT NULL AFTER `numeroTransaction`, ADD INDEX `idApiPaiement` (`idApiPaiement`); ALTER TABLE `pile_loyer_historique` ADD `idPaiement` INT NULL DEFAULT NULL AFTER `dateExpCB`, ADD INDEX `idPaiement` (`idPaiement`); ALTER TABLE `paiements` CHANGE `idType` `idType` ENUM('0','1','2','3','4','5','6'); INSERT INTO `type_paiement` (`id`, `nom`) VALUES ('5', 'Prélèvement CB'), ('6', 'Paiement par URL'); -- -- 18-03-2021 RM -- ALTER TABLE `reservations` CHANGE `dateOption` `dateOption` DATE NULL DEFAULT NULL; -- -- 19-03-2021 RM -- INSERT INTO `civilites` (`id`, `nom`, `nomEn`) VALUES (NULL, 'Mlle', 'Mlle'); ALTER TABLE `locataires` CHANGE `civilite` `civilite` ENUM('1','2','3') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 23-03-2021 RM -- DELETE FROM `civilites` WHERE `civilites`.`nom` = 'Mlle'; ALTER TABLE `locataires` CHANGE `civilite` `civilite` ENUM('1','2') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 23-03-2021 FTH -- CREATE TABLE IF NOT EXISTS `demandes_type_liste` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `type` varchar(255) NOT NULL, `codeType` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `demandes_type_liste` (`id`, `type`, `codeType`) VALUES (1, 'Archivés', 'archive'); -- -- Structure de la table `demandes_listes` -- CREATE TABLE IF NOT EXISTS `demandes_listes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `idUser` int(11) NOT NULL, `idEtat` tinyint(4) NOT NULL, `deleted` tinyint(1) NOT NULL, `idTypeListe` int(11) NULL, `idModele` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `demandes_liste_profile` -- CREATE TABLE IF NOT EXISTS `demandes_liste_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idListe` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `champs_demandes_save` ADD `idListe` INT(11) NULL; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode formulaires : Suppression', 'liste-btn-delete-liste-demande', 'bouton', '1'); ALTER TABLE `configuration` ADD `interfaceOngletDocsSimple` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 30-03-2021 FTH -- ALTER TABLE `configuration` ADD `showDateHeureSuivis` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Affichage ou non de date et herue multisuivis dans la fiche usager' ; ALTER TABLE `configuration` DROP `showDateHeureSuivis`; ALTER TABLE `type_suivi` ADD `showDateHeureSuivis` TINYINT(1) NULL DEFAULT '0' ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateDistribution', 'Date remise courrier', '2', '10', '255', 'dateDistribution', NULL, '2', '0', 'suivis'); ALTER TABLE `type_suivi` ADD `showEtatCourrier` TINYINT(1) NULL DEFAULT '0' ; ALTER TABLE `type_suivi` ADD `showDateDistribution` TINYINT(1) NULL DEFAULT '0' ; -- -- 01-04-2021 AK -- ALTER TABLE `suivis` ADD INDEX `idDp` (`idDp`); -- 07-04-2021 FTH -- ALTER TABLE `configuration` ADD `relanceDemandes` TINYINT(1) NULL DEFAULT '0' ; ALTER TABLE `configuration` ADD `dureeRelanceDemande` SMALLINT NULL DEFAULT '0' , ADD `dureeArchivageDemande` SMALLINT NULL DEFAULT '0' ; ALTER TABLE `reservations` ADD `dateRelanceDemande` DATE NULL ; INSERT INTO `type_email` (`type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES ('Relance demandes en cours', NULL, 1, NULL, NULL, 0, 'relance_demandes'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateRelanceDemande', 'Date relance demande en cours', '2', '30', '100', 'dateRelanceDemande', '', '2', '0', 'reservations'); -- 08-04-2021 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'residenceOrientation', 'Résidence orientation', '2', '30', '100', 'residenceOrientation', 'residences', '3', '0', 'reservations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'sexe', 'Sexe', '1', '30', '100', 'sexe', 'sexe', '3', '1', 'locataires'); -- -- 12-04-2021 FTH -- ALTER TABLE `type_modeles_docs` ADD `sousTypeModele` ENUM('unique','groupé') NULL DEFAULT 'unique' ; -- -- 12-04-2021 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Boutique en ligne', 'boutique_enligne', 'menu', '26'); UPDATE droit_elements SET id_attr = 'id-modeBoutique' WHERE unique_name = 'boutique_enligne'; -- -- 15-04-2021 FTH -- ALTER TABLE `configuration` ADD `titreFicheUsager` ENUM('nom_prenom','nom_prenom_numeroChambre') NULL DEFAULT 'nom_prenom' ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Suppression modèles mails', 'btn-delete-modele-mail', 'bouton', '1'); -- -- 19-04-2021 AK -- ALTER TABLE `champs_formulaires` ADD `idSousType` SET('avecPluginPhoto','affichageMiniature') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `idType`, ADD INDEX `idSousType` (`idSousType`); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche locataire : avec photo', 'ficheclient/ficheLocataireAvecPhoto', 'bouton', '100'); -- -- 20-04-2021 AK -- ALTER TABLE `pile_loyer_historique` ADD INDEX `idReservation` (`idReservation`); -- -- 20-04-2021 RM -- ALTER TABLE `prestations_boutique` ADD `prix` FLOAT NOT NULL AFTER `nbPrestaMaxUsagerJour`; -- -- 21-04-2021 RM -- ALTER TABLE `prestations_boutique_commandes` ADD `date_commande` DATETIME NULL AFTER `type`; ALTER TABLE `prestations_boutique_commandes` CHANGE `date` `date` DATETIME NULL DEFAULT NULL; -- -- 22-04-2021 JL -- ALTER TABLE `suivis` CHANGE `etatCourrier` `etatCourrier` ENUM('A remettre','Non remis','Remis','Retour expéditeur') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'A remettre'; -- -- 27-04-2021 AK -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'cafNumLocataire', 'Numéro locataire CAF', '2', '30', '13', 'cafCode', '', '1', '0', 'reservations'); -- 27-04-2021 FTH -- ALTER TABLE `configuration` ADD `casesChgntCampDpRO` TINYINT(1) NULL DEFAULT '0' COMMENT 'Affichage des cases Duplication et archiage ancien dossier lors de changement campagne DP' ; -- -- 28-04-2021 AK -- ALTER TABLE `residences` ADD `cafNumEmetteur` VARCHAR(6) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `ideal_code_occupation`; ALTER TABLE `residences` ADD `cafCodeBailleur` VARCHAR(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `cafNumEmetteur`; ALTER TABLE `residences` ADD `cafCodeAgence` VARCHAR(3) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `cafCodeBailleur`; ALTER TABLE `residences` ADD `cafCodeEtablBailleur` VARCHAR(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `cafCodeAgence`; ALTER TABLE `residences` ADD `cafCodeGuichetBailleur` VARCHAR(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `cafCodeEtablBailleur`; ALTER TABLE `residences` ADD `cafNumCompteBailleur` VARCHAR(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `cafCodeGuichetBailleur`; ALTER TABLE `residences` ADD `cafRaisonSocialeCAF` VARCHAR(24) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `cafNumCompteBailleur`; ALTER TABLE `residences` ADD `cafRaisonSocialeBailleur` VARCHAR(24) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `cafRaisonSocialeCAF`; -- -- 29-04-2021 RM -- INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Boutique en ligne', 'boutique', 'Reservation\\Controller\\Boutique', 'index', '30'); -- -- 03-05-2021 RM -- CREATE TABLE `champs_boutique_save` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `type` MEDIUMINT NULL , `fields` TEXT CHARACTER SET utf16 COLLATE utf16_general_ci NULL , `idListe` MEDIUMINT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE IF NOT EXISTS `boutique_type_liste` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `type` varchar(255) NOT NULL, `codeType` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `boutique_type_liste` (`id`, `type`, `codeType`) VALUES (1, 'Archivés', 'archive'); CREATE TABLE `boutique_liste` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `nom` VARCHAR(255) NULL , `idUser` MEDIUMINT NULL , `idEtat` MEDIUMINT NULL , `deleted` BOOLEAN NULL , `idType` MEDIUMINT NULL , `idModele` MEDIUMINT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Mode boutique: Modification', 'mode-input-boutique-btn-save', 'bouton', '1', '0', NULL); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode boutique : Choix de champs', 'mode-input-boutique-btn-champs', 'bouton', '1'); -- -- 03-05-2021 FTH -- INSERT INTO `type_user` (`id`, `type`, `codeType`) VALUES (NULL, 'Référent RSA', 'RSA'); -- -- 04-05-2021 RM -- CREATE TABLE `boutique_liste_state` ( `id` MEDIUMINT NOT NULL , `data` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL , `idListe` MEDIUMINT NULL , `dateFilter` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL , `numberFilter` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL , `configFilters` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL ) ENGINE = InnoDB; CREATE TABLE `boutique_liste_profile` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `idListe` MEDIUMINT NULL , `idProfile` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `boutique_liste_state` ADD PRIMARY KEY(`id`); ALTER TABLE `boutique_liste_state` ADD INDEX `id` (`id`); ALTER TABLE `boutique_liste_state` CHANGE `id` `id` MEDIUMINT(9) NOT NULL AUTO_INCREMENT; -- -- 05-05-2021 AK -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'cafDepartNotifie', 'CAF Départ notifié', '2', '30', '13', 'cafTreated', '', '8', '0', 'reservations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'cafChgtDateDepart', 'CAF Changement date départ', '2', '30', '20', 'cafChangementDateDepartTheorique', '', '8', '0', 'reservations'); -- -- 10-05-2021 RM -- ALTER TABLE `edl_parametres` ADD `l_msg_edl_cles` VARCHAR(255) NULL AFTER `reprise_ancien_edl_validation_auto`; -- -- 11-05-2021 RM -- ALTER TABLE `edl` ADD `proprietaire` BOOLEAN NULL DEFAULT FALSE AFTER `remise_des_cles_old`; ALTER TABLE `edl_parametres` ADD `user_proprio` VARCHAR(255) NULL AFTER `l_msg_edl_cles`; -- -- 12-05-2021 FTH -- ALTER TABLE `domiciliations` ADD `idAncienneDP` INT NULL , ADD `idNouvelleDP` INT NULL ; -- -- 17-05-2021 FTH -- -- -- Structure de la table `erreurs_pms` -- CREATE TABLE IF NOT EXISTS `erreurs_pms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `erreur` text, `ligne` int(11) DEFAULT NULL, `fonction` varchar(255) DEFAULT NULL, `fichier` text DEFAULT NULL, `idLocataire` int(11) DEFAULT NULL, `idReservation` int(11) DEFAULT NULL, `type` varchar(100) DEFAULT NULL, `dateErreur` DATETIME NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 19-05-2021 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'adresseComp', 'Adresse complémentaire', '1', '10', '300', 'adresseComp', '', '1', '1', 'locataires'); -- -- 21-05-2021 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Dé-archivage domiciliation', 'liste-dp-btn-de-archivage', 'bouton', '1'); -- -- 25-05-2021 RM -- INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `idFormEtatTravaux`) VALUES (NULL, 'Etat Travaux - Impossibilité d\'intervention', NULL, 1, 5, NULL, 4); -- -- 24-05-2021 FTH -- ALTER TABLE `configuration` ADD `txtPlaceholderTextarea` TEXT NULL ; -- -- 25-05-2021 FTH -- ALTER TABLE `domiciliations` ADD `ajouterDP` TINYINT(1) NULL ; -- -- 28-05-2021 FTH -- ALTER TABLE `configuration` ADD `envoyerUneCopieMail` TINYINT(1) NULL DEFAULT '0' ; -- -- 01-06-2021 FTH -- ALTER TABLE `configuration` ADD `afficherTelAvecIndicatif` TINYINT(1) NULL DEFAULT '0' COMMENT 'Affichage des champs téléphone avec indicatif dans les listes' ; -- -- 02-06-2021 JL -- ALTER TABLE `api_sig` ADD `ftpADR` VARCHAR(255) NULL AFTER `active`, ADD `ftpID` VARCHAR(50) NULL AFTER `ftpADR`, ADD `ftpMDP` VARCHAR(50) NULL AFTER `ftpID`, ADD `prefixFile` VARCHAR(255) NULL AFTER `ftpMDP`, ADD `dirFile` VARCHAR(255) NULL AFTER `prefixFile`, ADD `dirErr` VARCHAR(255) NULL AFTER `dirFile`; CREATE TABLE `pile_sig` ( `id` INT NOT NULL AUTO_INCREMENT , `idLocataire` MEDIUMINT(8) NOT NULL , `idResa` MEDIUMINT(8) NULL , `idDp` MEDIUMINT(8) NULL , `idApiSig` TINYINT NOT NULL , `dateCreation` DATETIME NOT NULL , `flag` ENUM('confirm','majDate','annulChgtLoge','majLoc','chgtTel','chgtLoge') NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `pile_sig_historique` ( `idPile` INT NOT NULL , `idLocataire` MEDIUMINT(8) NOT NULL , `idResa` MEDIUMINT(8) NULL , `idDp` MEDIUMINT(8) NULL , `idApiSig` TINYINT NOT NULL , `etat` ENUM('ok','attente','errWL','errSalto') NOT NULL , `codeErreur` VARCHAR(50) NULL , `erreur` VARCHAR(255) NULL , `erreurSignalee` ENUM('0','1') NOT NULL DEFAULT '0' , `dateTraitement` DATETIME NOT NULL ) ENGINE = InnoDB; ALTER TABLE `logements` ADD `uniteVie` VARCHAR(50) NULL AFTER `numero`; -- BLOC COMMENTE POUR SALTO UNIQUEMENT /* INSERT INTO `api_sig` (`id`, `nom`, `className`, `active`, `ftpADR`, `ftpID`, `ftpMDP`, `prefixFile`, `dirFile`, `dirErr`) VALUES (NULL, 'Salto', 'SALTO', '1', 'srvftp.essec.fr', 'weasy', 'Zerl9z', 'residents', '/ftp/weasy/WEASY/ResidentWeasy', '/ftp/weasy/WEASY/RetourSalto'); UPDATE logements, batiments SET logements.uniteVie = batiments.nom WHERE logements.idBatiment = batiments.id AND batiments.idResidence = '4' UPDATE logements, batiments SET logements.uniteVie = SUBSTR(logements.nom, 1, LENGTH(logements.nom)-1) WHERE logements.nom LIKE '%D' OR logements.nom LIKE '%G' OR logements.nom LIKE '%H' OR logements.nom LIKE '%B' CREATE TRIGGER `pileSIGmajLoc` AFTER UPDATE ON `locataires` FOR EACH ROW BEGIN IF(!(NEW.telephoneMobile <=> OLD.telephoneMobile)) THEN INSERT INTO pile_sig(idLocataire, idApiSIG, dateCreation, flag) VALUES(NEW.id, (SELECT id FROM api_sig WHERE api_sig.className = 'SALTO'), NOW(), 'chgtTel'); ELSEIF( !(NEW.nom <=> OLD.nom) OR !(NEW.prenom <=> OLD.prenom) ) THEN INSERT INTO pile_sig(idLocataire, idApiSIG, dateCreation, flag) VALUES(NEW.id, (SELECT id FROM api_sig WHERE api_sig.className = 'SALTO'), NOW(), 'majLoc'); END IF; END CREATE TRIGGER `insertIntoPileSIG` AFTER UPDATE ON `reservations` FOR EACH ROW BEGIN IF (NEW.idNouvelleResa <=> OLD.idNouvelleResa) THEN IF (!(NEW.dateArrivee <=> OLD.dateArrivee) OR !(NEW.dateDepart <=> OLD.dateDepart)) THEN INSERT INTO pile_sig(idLocataire, idResa, idApiSIG, dateCreation, flag) VALUES(NEW.idLocataire, NEW.id, (SELECT id FROM api_sig WHERE api_sig.className = 'SALTO'), NOW(), 'majDate'); ELSEIF (!(NEW.etat <=> OLD.etat)) THEN IF (NEW.etat = '3') THEN INSERT INTO pile_sig(idLocataire, idResa, idApiSIG, dateCreation, flag) VALUES(new.idLocataire, new.id, (SELECT id FROM api_sig WHERE api_sig.className = 'SALTO'), NOW(), 'confirm'); ELSEIF (NEW.etat = '13' AND OLD.etat != '7') THEN INSERT INTO pile_sig(idLocataire, idResa, idApiSIG, dateCreation, flag) VALUES(new.idLocataire, new.id, (SELECT id FROM api_sig WHERE api_sig.className = 'SALTO'), NOW(), 'suppr'); END IF; END IF; ELSEIF (!(NEW.idNouvelleResa <=> OLD.idNouvelleResa)) THEN IF ((NEW.idNouvelleResa != 0) OR (NEW.idNouvelleResa IS NOT NULL)) THEN UPDATE pile_sig SET dateCreation=NOW(),flag='chgtLoge' WHERE idResa=NEW.id; ELSEIF ((NEW.idNouvelleResa = 0) OR (NEW.idNouvelleResa IS NULL)) THEN INSERT INTO pile_sig(idLocataire, idResa, idApiSIG, dateCreation, flag) VALUES(NEW.idLocataire, NEW.id, (SELECT id FROM api_sig WHERE api_sig.className = 'SALTO'), NOW(), 'annulChgtLoge'); END IF; END IF; END */ -- -- 03-06-2021 JL -- ALTER TABLE `pile_sig` CHANGE `flag` `flag` ENUM('confirm','majDate','annulChgtLoge','majLoc','chgtTel','chgtLoge','checkOut','desist') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; ALTER TABLE `api_sig` DROP `ftpADR`, DROP `ftpID`, DROP `ftpMDP`, DROP `prefixFile`, DROP `dirFile`, DROP `dirErr`; -- -- 07-06-2021 AK -- ALTER TABLE `pmsCacheStatus` CHANGE `typeCache` `typeCache` ENUM('solde','acces') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'solde'; -- -- 10-06-2021 FTH -- INSERT INTO `type_domiciliations` (`id`, `type`, `codeType`) VALUES (NULL, 'TOUS', 'tous'), (NULL, 'DP', 'dp'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dp_archive', 'DP Archivé', '9', '100', '0', 'archive', NULL, '8', '1', 'domiciliations'); -- -- 13-06-2021 AK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Mode réservation : Recherche stricte', 'liste-input-mode-liste-btn-recherche-stricte', 'bouton', '1', '0', NULL); -- -- 14-06-2021 FTH -- ALTER TABLE `configuration` ADD `afficherAttesAssurance` TINYINT(1) NOT NULL DEFAULT '1' COMMENT 'Afficher la colonne attestation assurance dans l espace résident menu réservation' ; -- -- 15-06-2021 FTH -- ALTER TABLE `type_prestation` ADD `typePrestation` ENUM('statique','dynamique') NULL DEFAULT 'statique' ; ALTER TABLE `type_prestation` ADD `active` ENUM('0','1') NOT NULL DEFAULT '1' ; ALTER TABLE `type_prestation` ADD `deleted` TINYINT(1) NULL DEFAULT '0' ; ALTER TABLE `type_prestation` auto_increment = 15; -- -- Structure de la table `tarifs_prestations` -- CREATE TABLE IF NOT EXISTS `tarifs_prestations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idTarif` int(11) NOT NULL, `idPrestation` int(11) NOT NULL, `montant` float NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `type_modeles_docs` CHANGE `id` `id` MEDIUMINT NOT NULL AUTO_INCREMENT; -- -- 21-06-2021 FTH -- ALTER TABLE `pile_paiement` CHANGE `statutPaiement` `statutPaiement` ENUM('ok','ko','erreur') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `pile_loyer` CHANGE `statutPaiement` `statutPaiement` ENUM('ok','ko','erreur') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 23-06-2021 RM -- ALTER TABLE `campagnes` ADD `edlCourtSejour` BOOLEAN NULL DEFAULT FALSE AFTER `logo`; -- -- 23-06-2021 FTH -- ALTER TABLE `modes_campagne` ADD `NePasEnvoyerMailsGeneraux` TINYINT(1) NULL DEFAULT '0' ; -- -- 30-06-2021 FTH -- ALTER TABLE `type_user` ADD `deleted` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 02-07-2021 FTH -- UPDATE `champs` SET `idTypeHtml` = '8' WHERE `champs`.`code` = 'pasDeFacture'; -- -- 06-07-2021 RM -- ALTER TABLE `edl_parametres` ADD `edl_modele_en_tete_proprio` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `user_proprio`; ALTER TABLE `edl_parametres` ADD `edl_modele_pied_de_page_proprio` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `edl_modele_en_tete_proprio`; -- -- 07-07-2021 RM -- ALTER TABLE `edl` ADD `idCatalogue` MEDIUMINT NULL AFTER `proprietaire`; -- -- 08-07-2021 RM -- ALTER TABLE `historique_mail` CHANGE `idLocataire` `idLocataire` INT(11) NULL; ALTER TABLE `edl` ADD `email_proprio` VARCHAR(150) NULL AFTER `idCatalogue`; -- -- 16-07-2021 AK -- INSERT INTO `statut_docs` (`id`, `nom`) VALUES (1, 'Refusée'), (2, 'Validée'); -- -- 19-07-2021 FTH -- ALTER TABLE `intercontrat` CHANGE `duree` `duree` MEDIUMINT NOT NULL; ALTER TABLE `intercontrat` CHANGE `decalage` `decalage` MEDIUMINT NOT NULL; -- -- 23-07-2021 FTH -- ALTER TABLE `configuration` ADD `exclureLogeMultiLits` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Exclure les logements à plusieurs lits si occupés dans le planning' ; -- -- 27-07-2021 FTH -- INSERT INTO `type_liste` (`id`, `type`) VALUES (23, 'Familles'); -- -- 02-08-2021 RM -- ALTER TABLE `champs_demandes` ADD `champCommun` BOOLEAN NULL AFTER `itemsRequiredToActivateSelect2`; -- -- 02-08-2021 FTH -- INSERT INTO `statut_familial` (`id`, `nom`, `code`) VALUES ('2', 'Conjoint', 'conjoint'); INSERT INTO `statut_familial` (`id`, `nom`, `code`) VALUES ('3', 'Enfant', 'enfant'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES('', 'compositionMenage', 'Composition ménage', 1, 9, 255, 'compositionMenage', '', 5, 0, ''); -- -- 04-08-2021 FTH -- -- -- Structure de la table `onglets_formulaires` -- CREATE TABLE IF NOT EXISTS `onglets_formulaires` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`nom`, `unique_name`, `type`, `parent_id`) VALUES ('Onglets formulaires', 'systeme-tab-onglets-forms', 'menu', 7); ALTER TABLE `formulaires` ADD `idOnglet` MEDIUMINT NULL ; -- -- 17-08-2021 RM -- ALTER TABLE `champs_demandes` ADD `apresChampsFixe` BOOLEAN NULL DEFAULT FALSE AFTER `champCommun`; -- -- 16-08-2021 FTH -- -- -- Structure de la table `document_residence` -- CREATE TABLE IF NOT EXISTS `document_residence` ( `idDocument` int(11) NOT NULL, `idResidence` int(11) NOT NULL, PRIMARY KEY (`idDocument`,`idResidence`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 19-08-2021 RM -- ALTER TABLE `edl_parametres` ADD `autorisation_checkout` BOOLEAN NULL DEFAULT TRUE AFTER `edl_modele_pied_de_page_proprio`; -- -- 19-08-2021 FTH -- -- -- Structure de la table `categorie_document_formulaire` -- CREATE TABLE IF NOT EXISTS `categorie_document_formulaire` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idFormulaire` int(11) NOT NULL, `idCategorie` int(11) NOT NULL, `row` smallint(6) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 26-08-2021 RM -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nomLocataireNextResa', 'Nom du locataire de la prochaine réservation', '2', '30', '100', 'nomLocataireNextResa', '', '1', '1', ''); -- -- 24-08-2021 FTH -- ALTER TABLE `documents` ADD `dateCreation` DATE NULL , ADD `idUser` INT NULL ; -- -- 01-09-2021 RM -- ALTER TABLE `champs_demandes` ADD `afficherInfos` BOOLEAN NULL DEFAULT FALSE AFTER `apresChampsFixe`; -- -- 26-08-2021 FTH -- -- -- Structure de la table `type_suivis_formulaire` -- CREATE TABLE IF NOT EXISTS `type_suivis_formulaire` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idFormulaire` int(11) NOT NULL, `idTypeSuivis` int(11) NOT NULL, `row` smallint(6) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 31-08-2021 FTH -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Attestation d''assurance', 'varchar(255)', 'certificatAssur', 'reservations', NULL, '2', '4', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'date fin assurance', 'date', 'dateFinAssur', 'reservations', NULL, '4', '2', NULL); ALTER TABLE `champs_demandes` ADD `champObligatoireTermine` BOOLEAN NULL DEFAULT FALSE AFTER `afficherInfos`; -- -- 02-09-2021 RM -- ALTER TABLE `demandes` CHANGE `cause` `cause` ENUM('Usure','Dégradation','Mauvaise utilisation','Panne','Mobilier à remplacer') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; CREATE TABLE `configuration_intervention` ( `id` SMALLINT NOT NULL AUTO_INCREMENT , `envoi_mail` BOOLEAN NULL DEFAULT FALSE , PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `configuration_intervention` (`id`, `envoi_mail`) VALUES (NULL, '0'); -- -- 02-09-2021 FTH -- UPDATE `champs` SET `nom` = 'Lien de parenté' WHERE `champs`.`code` = 'idStatutFamilial'; UPDATE `champs_de_base` SET `libelle` = 'Lien de parenté' WHERE `champs_de_base`.`equivalentSql` = 'idStatutFamilial'; INSERT INTO `statut_familial` (`id`, `nom`, `code`) VALUES ('4', 'Autre', 'autre'); UPDATE `champs` SET `idTypeHtml` = 1 WHERE `champs`.`code` = 'compositionMenage'; -- -- 07-09-2021 AK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Mode domiciliation : Recherche stricte', 'mode-input-dp-btn-recherche-stricte', 'bouton', '1', '0', NULL); -- -- 07-09-2021 FTH -- ALTER TABLE `champs_formulaires` ADD `idParent` INT NULL ; ALTER TABLE `champs_demandes` ADD `numOrdre` SMALLINT NULL AFTER `champObligatoireTermine`; -- -- 09-09-2021 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Membres famille', 'ficheclient/ficheMembresFamille', 'menu', '99', '0', NULL); -- -- 10-09-2021 FTH -- ALTER TABLE `champs_formulaires` ADD `dupliquerValeur` TINYINT(1) NULL DEFAULT '0' COMMENT 'Copier la valeur de ce ce champs lors de duplication de dossier' ; -- -- 15-09-2021 RM -- INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (NULL, 'Formule Date', 'Text', '3'); ALTER TABLE `champs_demandes` ADD `formatFormule` CHAR(1) NULL AFTER `numOrdre`; -- -- 16-09-2021 RM -- ALTER TABLE `champs_suivis` ADD `formatFormule` CHAR(1) NULL AFTER `itemsRequiredToActivateSelect2`; ALTER TABLE `champs_suivis` ADD `formule` TEXT NULL AFTER `formatFormule`; -- -- 17-09-2021 RM -- ALTER TABLE `champs_formulaires` ADD `formatFormule` CHAR(1) NULL AFTER `dupliquerValeur`; -- -- 23-09-2021 RM -- ALTER TABLE `champs_demandes` CHANGE `formatFormule` `formatFormule` CHAR(6) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 05-10-2021 FTH -- ALTER TABLE `champs_formulaires` ADD `reprendreValeur` TINYINT(1) NULL DEFAULT '1' COMMENT 'Copier la valeur de ce ce champs lors de la création de nouveau dossier pour un usager' ; ALTER TABLE `modes_campagne` ADD `idChampDateArriveeRS` INT NULL COMMENT 'Champ date arrivée pour la recherche stricte' , ADD `idChampDateDepartRS` INT NULL COMMENT 'Champ date départ pour la recherche stricte' ; -- -- 05-10-2021 FTH -- ALTER TABLE `config_modeles_docs` ADD `emailStructure` VARCHAR(255) NULL AFTER `faxStructure`; UPDATE `champs` SET `idTheme` = '2' WHERE `champs`.`code` = 'campagne'; ALTER TABLE `configuration` ADD `compteTransfertDG` VARCHAR(50) NULL ; -- -- pour ESSEC : -- -- UPDATE `configuration` SET `compteTransfertDG` = '46700000' WHERE `configuration`.`id` = 1; -- -- 08-10-2021 FTH -- -- -- Structure de la table `campagnes_modeles_doc` -- CREATE TABLE IF NOT EXISTS `campagnes_modeles_doc` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idCampagne` int(11) NOT NULL, `idModele` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Campagnes-Modèles Documents', 'campagneModeleDocument', 'Reservation\\Controller\\Tarif', 'index', '3'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Modèles documents', 'zfcadmin/campagneModeleDocument', 'menu', '3'); -- -- 13-10-2021 FTH -- ALTER TABLE `modes_campagne` ADD `masquerSejoursOngletDocument` TINYINT(1) NULL DEFAULT '0' ; -- -- 19-10-2021 RM (problème lors de l'ajout de champ dans FormulairesController ligne 2406) -- ALTER TABLE `champs_formulaires` ADD `showAsSelectItem` TINYINT(1) NULL ; -- -- 22-10-2021 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Bouton changement logement fiche usager', 'liste-input-btn-change-loge', 'bouton', '1'); -- -- 26-10-2021 FTH -- ALTER TABLE `modeles_email` CHANGE `emailCopie` `emailCopie` TEXT NULL DEFAULT NULL; ALTER TABLE `modeles_email` CHANGE `emailCopieCachee` `emailCopieCachee` TEXT NULL DEFAULT NULL; ALTER TABLE `modeles_email_campagne` CHANGE `emailCopie` `emailCopie` TEXT NULL DEFAULT NULL; ALTER TABLE `modeles_email_campagne` CHANGE `emailCopieCachee` `emailCopieCachee` TEXT NULL DEFAULT NULL; -- 01-11-2021 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Bouton type liste indicateur', 'liste-input-btn-liste-indicateur', 'bouton', '1'); ALTER TABLE `listes` ADD `indicateur` TINYINT(1) NULL DEFAULT '0' ; -- -- 02-11-2021 AK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Mode logement : Génération RPLS', 'liste-btn-gene-rpls-logements', 'bouton', '1', '0', NULL); CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `pile_loyer_historique_avec_locataires_paiements` AS select `locataires`.`nom` AS `nom`,`locataires`.`prenom` AS `prenom`,`pile_loyer_historique`.`datePaiement` AS `datePaiement`,`pile_loyer_historique`.`dateHisto` AS `dateHisto`,`pile_loyer_historique`.`statutPaiement` AS `statutPaiement`,`pile_loyer_historique`.`montantPrelevement` AS `montantPrelevement`,`pile_loyer_historique`.`dateRefus` AS `dateRefus`,`pile_loyer_historique`.`codeErreur` AS `codeErreur`,`pile_loyer_historique`.`msgErreur` AS `msgErreur`,`pile_loyer_historique`.`msg` AS `msg`,`pile_loyer_historique`.`typeCB` AS `typeCB`,`pile_loyer_historique`.`numCB` AS `numCB`,`pile_loyer_historique`.`dateExpCB` AS `dateExpCB`,`paiements`.`numeroTransaction` AS `numeroTransaction`,`api_paiement`.`nom` AS `nomApi`,`residences`.`nom` AS `nomResidence`,`logements`.`nom` AS `nomLogement`,`pile_loyer_historique`.`idReservation` AS `idReservation`,`pile_loyer_historique`.`idLocataire` AS `idLocataire`,`pile_loyer_historique`.`idPaiement` AS `idPaiement`,`paiements`.`idApiPaiement` AS `idApiPaiement`,`residences`.`id` AS `idResidence`,`pile_loyer_historique`.`id` AS `id` from (((((((`pile_loyer_historique` left join `locataires` on((`locataires`.`id` = `pile_loyer_historique`.`idLocataire`))) left join `reservations` on((`reservations`.`id` = `pile_loyer_historique`.`idReservation`))) left join `paiements` on((`paiements`.`id` = `pile_loyer_historique`.`idPaiement`))) left join `api_paiement` on((`api_paiement`.`id` = `paiements`.`idApiPaiement`))) left join `logements` on((`logements`.`id` = `reservations`.`idLogement`))) left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) where 1 order by `pile_loyer_historique`.`datePaiement`,`locataires`.`nom`,`locataires`.`prenom` ; -- 03-11-2021 FTH : remonte des champs campagnes dans les actions multisuivis -- ALTER TABLE `actions_js_suivis` ADD `sourceChamp` VARCHAR(50) NULL ; ALTER TABLE `actions_conditions_suivis` ADD `sourceChamp` VARCHAR(50) NULL ; ALTER TABLE `actions_conditions_suivis` ADD `sourceChampDebut` VARCHAR(50) NULL ; ALTER TABLE `actions_conditions_suivis` ADD `sourceChampFin` VARCHAR(50) NULL ; UPDATE `actions_js_suivis` SET `sourceChamp` = 'champs_suivis' WHERE `idChamp` > 0; UPDATE `actions_conditions_suivis` SET `sourceChamp` = 'champs_suivis' WHERE `idChamp` > 0; UPDATE `actions_conditions_suivis` SET `sourceChampDebut` = 'champs_suivis' WHERE `champDebut` > 0; UPDATE `actions_conditions_suivis` SET `sourceChampFin` = 'champs_suivis' WHERE `champFin` > 0; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche usager : créer un nouveau catalogue', 'liste-btn-creer-catalogue-fiche-usager', 'bouton', '1'); DELETE FROM `droit_elements` WHERE `unique_name` = 'liste-btn-creer-catalogue-mode-suivis' AND `parent_id` = 1 ; -- -- 04-11-2021 RM -- ALTER TABLE `champs_catalogue` ADD `itemsRequiredToActivateSelect2` SMALLINT NULL DEFAULT '10' AFTER `formule`; -- -- 04-11-2021 FTH -- ALTER TABLE `champs_suivis` ADD `afficherInfos` TINYINT NULL DEFAULT '0' ; ALTER TABLE `champs_suivis` ADD `texteInfos` TEXT NULL ; ALTER TABLE `champs_catalogue` ADD `afficherInfos` TINYINT NULL DEFAULT '0' ; ALTER TABLE `champs_catalogue` ADD `texteInfos` TEXT NULL ; -- -- 05-11-2021 FTH -- ALTER TABLE `domiciliations_state` ADD `configFilters` TEXT NULL ; -- -- 05-11-2021 JL -- ALTER TABLE `domiciliations` ADD `enCoursInactivite` ENUM('0','1') NOT NULL DEFAULT '0' AFTER `ajouterDP`; -- 10-11-2021 FTH -- ALTER TABLE `modes_campagne` ADD `alertDossierExistant` TINYINT(1) NULL DEFAULT '0' ; -- -- 10-11-2021 AK -- INSERT INTO `type_champs_sql` (`id`, `type`, `taille`) VALUES (7, 'SET', '0'); INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (20, 'Set', 'Set', '7'); ALTER TABLE `campagnes` CHANGE `modeEnvoiDemandePMS` `modeEnvoiDemandePMS` ENUM('Immediat','ApresCommission','NePasEnvoyer','ApresCommissionEtAutorisation') NOT NULL DEFAULT 'Immediat'; ALTER TABLE `reservations` CHANGE `sousEtat` `sousEtat` SET('avecFraisInitiaux','fraisInitiauxRegles','dossierIncomplet','envoiPmsAutorise') NULL DEFAULT NULL; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'sousEtatEnvoiPmsAutorise', 'Sous-état - Envoi PMS autorisé', '2', '17', '1', 'sousEtat', 'envoiPmsAutorise', '20', '0', 'reservations'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Sous-Etat - Envoi PMS autorisé', 'SET', 'sousEtat', 'reservations', 'envoiPmsAutorise', 7, 20, NULL); -- -- 18-11-2021 AK -- DROP VIEW `reservations_locataires_logements`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `reservations_locataires_logements` AS select `civilites`.`nom` AS `civilite`,`locataires`.`nom` AS `nom`,`locataires`.`prenom` AS `prenom`,`locataires`.`email` AS `email`,`locataires`.`telephone` AS `telephone`,`locataires`.`telephoneMobile` AS `telephoneMobile`,`reservations`.`dateDemandeReservation` AS `dateDemandeReservation`,`etat_reservation`.`nom` AS `etatReservation`,`reservations`.`dateArrivee` AS `dateArrivee`,`reservations`.`dateDepart` AS `dateDepart`,`typeLogementAttribue`.`nom` AS `nomTypeLogementAttribue`,`typeLogementReel`.`nom` AS `nomTypeLogementReel`,`logements`.`nom` AS `nomLogement`,`logements`.`numero` AS `numeroLogement`,`batiments`.`nom` AS `nomBatiment`,`residences`.`nom` AS `nomResidence`,`reservations`.`idLocataire` AS `idLocataire`,`reservations`.`id` AS `idResa`,`reservations_apipms`.`idApiPms` AS `idApiPms`,`reservations_apipms`.`idPMS` AS `apiPmsIdPMS`,`reservations_apipms`.`state` AS `apiPmsState`,`reservations`.`idPMS` AS `resaIdPMS`,`reservations`.`idCampagne` AS `idCampagne`,`reservations`.`idProgramme` AS `idProgramme`,`reservations`.`idSousProgramme` AS `idSousProgramme`,`typeLogementAttribue`.`id` AS `idTypeLogementAttribue`,`typeLogementReel`.`id` AS `idTypeLogementReel`,`logements`.`id` AS `idLogement`,`batiments`.`id` AS `idBatiment`,`residences`.`id` AS `idResidence`,`reservations`.`archive` AS `archive` from (((((((((`reservations` left join `locataires` on((`locataires`.`id` = `reservations`.`idLocataire`))) left join `civilites` on((`civilites`.`id` = `locataires`.`civilite`))) left join `etat_reservation` on((`etat_reservation`.`id` = `reservations`.`etat`))) left join `type_logement` `typeLogementAttribue` on((`typeLogementAttribue`.`id` = `reservations`.`idTypeLogementAttribue`))) left join `logements` on((`logements`.`id` = `reservations`.`idLogement`))) left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) left join `type_logement` `typeLogementReel` on((`typeLogementReel`.`id` = `logements`.`idTypeLogement`))) left join `reservations_apipms` on((`reservations`.`id` = `reservations_apipms`.`idReservation`))) where 1 order by `locataires`.`nom`,`locataires`.`prenom`,`locataires`.`email`,`locataires`.`id`,`reservations`.`id`,`reservations`.`dateDemandeReservation`; -- -- 19-11-2021 FTH -- DELETE FROM `droit_elements` WHERE `unique_name` = 'liste-btn-edit-catalogue-suivis' AND `parent_id` = 1 ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'createurSuivis', 'Créateur suivis', '2', '40', '20', 'idUser', NULL, '3', '0', 'suivis_historique'); -- -- 23-11-2021 FTH -- ALTER TABLE `residences` ADD `ribSite` VARCHAR(50) NULL , ADD `bicSite` VARCHAR(20) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'ribSite', 'IBAN résidence', '2', '18', '100', 'ribSite', '', '1', '0', 'residences'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'bicSite', 'BIC résidence', '2', '18', '100', 'bicSite', '', '1', '0', 'residences'); -- -- 25-11-2021 FTH -- ALTER TABLE `champs_suivis` ADD `champDeTri` TINYINT(1) NULL ; -- -- 26-11-2021 FTH -- ALTER TABLE `champs_formulaires` ADD `valeurParDefaut` VARCHAR(255) NULL; -- -- 01-12-2021 AK -- INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/RPLS'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Infos RPLS' WHERE `droit_elements`.`unique_name` = 'fichelogement/RPLS'; -- -- 02-12-2021 FTH -- ALTER TABLE `modeles_email` ADD `stockerPJ` TINYINT(1) NULL COMMENT 'Stocker les PJ dans l''espace Housing' , ADD `nePasJoindre` TINYINT(1) NULL COMMENT 'Ne pas joindre les PJ au mail' , ADD `simulerEnvois` TINYINT(1) NULL COMMENT 'Simuler l''envoi de mail' , ADD `exportMails` TINYINT(1) NULL COMMENT 'Exporter en CSV les adresses mail envoyé' , ADD `nePasEnvoyerResident` TINYINT(1) NULL COMMENT 'Ne pas envoyer le mail au résident' ; ALTER TABLE `modeles_email` ADD `mailUniqueAvecPJGroupe` TINYINT(1) NULL COMMENT 'Envois de mail unique avec PJ groupées'; -- -- 03-12-2021 FTH -- ALTER TABLE `suivis` ADD `idCreateurSuivis` INT NULL ; UPDATE `champs` SET `equivalentSql` = 'idCreateurSuivis' WHERE `champs`.`code` = 'createurSuivis'; UPDATE `champs` SET `table` = 'suivis' WHERE `champs`.`code` = 'createurSuivis'; ALTER TABLE `type_suivi` ADD `showCreateurSuivis` TINYINT(1) NULL DEFAULT '0' ; -- -- 09-12-2021 AK -- ALTER TABLE `nationalites` ADD `codeNation` VARCHAR(10) NULL DEFAULT NULL; ALTER TABLE `nationalites` ADD UNIQUE KEY `codeNation` (`codeNation`); ALTER TABLE `locataires` CHANGE `idPays` `idPays` SMALLINT UNSIGNED NULL DEFAULT NULL, CHANGE `idNationalite` `idNationalite` SMALLINT UNSIGNED NULL DEFAULT NULL; -- -- 09-12-2021 FTH : module participations -- ALTER TABLE `type_suivi` CHANGE `type_suivi` `type_suivi` ENUM('courriers','autres','logements','participation') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- Structure de la table `champs_formule_excel` -- CREATE TABLE IF NOT EXISTS `champs_formule_excel` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChamp` int(11) NOT NULL, `sourceChamp` varchar(255) NOT NULL, `position` int(11) NOT NULL, `idTypeSuivis` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 10-12-2021 FTH -- INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES (21, 'Formule prestation', 'Text', '2'); ALTER TABLE `champs_suivis` ADD `codePrestation` VARCHAR(50) NULL ; -- -- 13-12-2021 RM -- ALTER TABLE `edl_parametres` ADD `etatFonctionnement` MEDIUMINT NULL AFTER `autorisation_checkout`, ADD `valueEtatFonctionnement` TEXT NULL AFTER `etatFonctionnement`; ALTER TABLE `edl_base_article` ADD `showArticleEtatFonctionnement` TINYINT NULL DEFAULT '0' AFTER `deleted`; -- -- 14-12-2021 RM -- UPDATE edl_parametres SET valueEtatFonctionnement = "Fonctionnel, Non Fonctionnel" WHERE edl_parametres.id = '1'; UPDATE edl_parametres SET etatFonctionnement = 2 WHERE edl_parametres.id = '1'; -- -- 15-12-2021 RM -- ALTER TABLE `edl_article` ADD `etatFonctionnement` VARCHAR(100) NULL AFTER `idTypeCharges`; -- -- 16-12-2021 RM -- UPDATE edl_parametres set valueEtatFonctionnement = ",Fonctionnel,Non Fonctionnel" WHERE id = "1"; ALTER TABLE `edl_base_article` ADD `isRequiredForEdl` TINYINT NULL DEFAULT '0' AFTER `showArticleEtatFonctionnement`; -- -- 14-12-2021 FTH -- ALTER TABLE `configuration` ADD `majModeleFacture` TINYINT(1) NULL DEFAULT '1' ; -- -- 15-12-2021 FTH -- -- -- Structure de la table `constantes` -- CREATE TABLE IF NOT EXISTS `constantes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nomConstante` varchar(255) NOT NULL, `codeConstante` varchar(255) NOT NULL, `valeurConstante` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`nom`, `unique_name`, `type`, `parent_id`) VALUES ('Constantes', 'systeme-tab-constantes', 'menu', 7); -- -- 20-12-2021 FTH -- ALTER TABLE `pametres_mail` ADD `idModele` INT NULL ; ALTER TABLE `champs_suivis` ADD `afficherUnite` BOOLEAN NULL AFTER `codePrestation`; ALTER TABLE `champs_demandes` ADD `afficherUnite` BOOLEAN NULL AFTER `formatFormule`; ALTER TABLE `champs_formulaires` ADD `afficherUnite` BOOLEAN NULL AFTER `valeurParDefaut`; ALTER TABLE `champs_catalogue` ADD `afficherUnite` BOOLEAN NULL AFTER `texteInfos`; -- -- 21-12-2021 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode multisuivis : facturer les prestations', 'liste-btn-facturer-prestation-suivis', 'bouton', '1'); -- -- Structure de la table `prestations_to_suivis` -- CREATE TABLE IF NOT EXISTS `prestations_to_suivis` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChamp` int(11) NOT NULL, `idSuivis` int(11) NOT NULL, `dateFacturation` DATE NOT NULL, `etatPrestation` VARCHAR(255) NULL, `montantPrestation` FLOAT NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 03-01-2022 RM -- CREATE TABLE `boutique_en_ligne_panier` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `idLocataire` MEDIUMINT NOT NULL , `panier` TEXT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; -- -- 07-01-2022 AK -- CREATE TABLE IF NOT EXISTS `logementsRplsInfos` ( `idLogement` int(11) NOT NULL, `attribut` varchar(20) NOT NULL, `annee` int(11) NOT NULL, `valeur` varchar(100) DEFAULT NULL, `comment` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `logementsRplsInfos` ADD UNIQUE KEY `idLogementAttributAnnee` (`idLogement`,`attribut`,`annee`) USING BTREE, ADD KEY `attribut` (`attribut`), ADD KEY `annee` (`annee`), ADD KEY `idLogement` (`idLogement`); -- -- 10-01-2022 FTH -- ALTER TABLE `configuration` ADD `deplacerChampsFormulaires` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 11-01-2022 FTH -- ALTER TABLE `domiciliations_listes` ADD `indicateur` TINYINT(1) NULL DEFAULT '0' ; -- -- 13-01-2022 FTH -- ALTER TABLE `champs_formulaires` ADD `uniteDuree` ENUM('day','month') NULL ; -- -- Structure de la table `type_travaux_logement` -- CREATE TABLE IF NOT EXISTS `type_travaux_logement` ( `id` mediumint(9) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `code` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `type_travaux_logement` (`id`, `nom`, `code`) VALUES (NULL, 'Total', 'total'), (NULL, 'Plomberie', 'plomberie'), (NULL, 'Electricité', 'electricite'); -- -- 18-01-2022 FTH -- ALTER TABLE `logements_periode_travaux` CHANGE `typeTravaux` `typeTravaux` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- 20-01-2022 FTH -- ALTER TABLE `modes_campagne` ADD `soumissionDemandesNFois` TINYINT(1) NULL ; -- -- 21-01-2022 AK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'RPLS', 'zfcadmin/RPLS', 'menu', '4', '0', NULL); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'RPLS', 'RPLSstockCS', 'Reservation\\Controller\\RPLS', 'index', '33'); -- -- 24-01-2022 AK -- CREATE TABLE IF NOT EXISTS `bailleursRPLS` ( `IDENTPRO` varchar(9) NOT NULL, `RSPRO` varchar(100) NOT NULL, `ENSEIGNE` varchar(50) DEFAULT NULL, `L1PRO` varchar(38) DEFAULT NULL, `L2PRO` varchar(38) DEFAULT NULL, `L4PRO` varchar(38) DEFAULT NULL, `L5PRO` varchar(38) DEFAULT NULL, `L6PRO` varchar(38) DEFAULT NULL, `SIRETPRO` varchar(14) NOT NULL, `COMM` varchar(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `bailleursRPLS` ADD PRIMARY KEY (`IDENTPRO`); -- -- 27-01-2022 FTH -- ALTER TABLE `logements_periode_travaux` CHANGE `typeTravaux` `typeTravaux` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 20-01-2022 RM -- ALTER TABLE `prestations_boutique_commandes` ADD `no_facture` VARCHAR(50) NULL AFTER `date_commande`; -- -- 21-01-2022 RM -- ALTER TABLE `prestations_boutique_commandes` ADD `id_order` VARCHAR(50) NULL AFTER `no_facture`; -- -- 24-01-2022 RM -- ALTER TABLE `prestations_boutique_commandes` ADD `tt_montant` VARCHAR(10) NULL AFTER `id_order`; -- -- 26-01-2022 RM -- ALTER TABLE `prestations_boutique_commandes` ADD `qtegratuite` VARCHAR(10) NULL AFTER `tt_montant`; ALTER TABLE `prestations_boutique_commandes` ADD `qtepayante` VARCHAR(10) NULL AFTER `qtegratuite`; -- -- 27-01-2022 FTH -- ALTER TABLE `categorie_champs` ADD `sourceChamps` VARCHAR(255) NULL , ADD `idFormulaire` INT NULL , ADD `idModele` INT NULL , ADD `idTypeSuivis` INT NULL , ADD `idTypeCatalogue` INT NULL , ADD `idTheme` INT NULL ; ALTER TABLE `champs_par_cats` ADD `idChamp` INT NULL ; -- -- 01-02-2022 RM -- ALTER TABLE `prestations_boutique` ADD `facturerNuiteeGratuite` MEDIUMINT NULL AFTER `nuiteeMaxParusagerParJour`; -- -- 02-02-2022 RM -- ALTER TABLE `prestations_boutique_commandes` ADD `nuiteeOrigin` TEXT NULL AFTER `qtepayante`; -- -- 02-02-2022 -- ALTER TABLE `locataires` ADD `typeAccesLoge` VARCHAR(20) NULL DEFAULT NULL AFTER `pays`; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Type d''accès au logement', 'varchar(20)', 'typeAccesLoge', 'locataires', NULL, '2', '9', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Cartes d''accès', 'cartes', 'cartes', 'cartes', 'cartes', '1', '3', NULL); ALTER TABLE `residences` ADD `typeAccesLoge` ENUM('carte','mobile') NULL DEFAULT NULL AFTER `bicSite`; ALTER TABLE `cartes` ADD `csn` VARCHAR(20) NULL DEFAULT NULL; ALTER TABLE `cartes` ADD `dateDesact` DATETIME NULL DEFAULT NULL AFTER `csn`; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Cartes Salto', 'tablette_cartes_salto', 'menu', '112', '0', NULL); -- -- 09-02-2022 FTH -- ALTER TABLE `categorie_document` ADD `idParent` INT NOT NULL DEFAULT '0'; -- -- 10-02-2022 JL -- ALTER TABLE `pile_sig` ADD `oldNumMobile` VARCHAR(30) NULL AFTER `flag`, ADD `newNumMobile` VARCHAR(30) NULL AFTER `oldNumMobile`; ALTER TABLE `pile_sig_historique` ADD `flag` ENUM('confirm','majDate','annulChgtLoge','majLoc','chgtTel','chgtLoge','checkOut','desist','chgtSupport','activeCarte') NOT NULL AFTER `dateTraitement`; ALTER TABLE `pile_sig_historique` ADD `oldNumMobile` VARCHAR(30) NULL AFTER `flag`, ADD `newNumMobile` VARCHAR(30) NULL AFTER `oldNumMobile`; ALTER TABLE `pile_sig` CHANGE `flag` `flag` ENUM('confirm','majDate','annulChgtLoge','majLoc','chgtTel','chgtLoge','checkOut','desist','chgtSupport','activeCarte') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -- -- 10-02-2022 FTH -- ALTER TABLE `documents` ADD `ordre` INT NOT NULL DEFAULT '0' ; -- -- 11-02-2022 JL -- ALTER TABLE `listes` ADD `stats` TINYINT(1) NOT NULL DEFAULT '0' AFTER `indicateur`; ALTER TABLE `domiciliations_listes` ADD `stats` TINYINT(1) NOT NULL DEFAULT '0' AFTER `idType`; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Bouton type liste statistiques', 'liste-input-btn-liste-stats', 'bouton', '1', '0', NULL); CREATE TABLE IF NOT EXISTS `stats_modeles` ( `id` INT NOT NULL AUTO_INCREMENT, `nom` VARCHAR(255) NOT NULL, `nomFile` VARCHAR(255) NOT NULL, `deleted` TINYINT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS `stats_modeles_type_suivis` ( `id` INT NOT NULL AUTO_INCREMENT, `idModele` MEDIUMINT(8) NOT NULL, `idTypeSuivis` MEDIUMINT(8) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS `stats_modeles_liste` ( `id` INT NOT NULL AUTO_INCREMENT, `idModele` MEDIUMINT(8) NOT NULL, `idListe` MEDIUMINT(8) NOT NULL, `tableListes` ENUM('listes','dp_listes') NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; UPDATE `champs` SET `nom` = 'ID Usager' WHERE `champs`.`id` = 26; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'ID Réservation', 'int(11)', 'idReservation', 'reservations', NULL, '1', '5', NULL); -- -- 11-02-2022 RM -- ALTER TABLE `boutique_liste` ADD `idTypeListe` MEDIUMINT NULL AFTER `idModele`; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode boutique : Suppression liste', 'mode-input-boutique-btn-delete', 'bouton', '1'); -- -- 15-02-2022 RM -- CREATE TABLE `champs_boutique` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `idChamp` MEDIUMINT NULL , `idListe` MEDIUMINT NULL , `idChampDynamique` MEDIUMINT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; -- -- 28-02-2022 RM -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Archivage edl', 'liste-btn-archive-edl', 'bouton', '1'); CREATE TABLE `edl_liste_profile` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `idListe` MEDIUMINT NULL , `idProfile` VARCHAR(255) NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `edl_listes` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `nom` VARCHAR(255) NULL , `idUser` SMALLINT NULL , `idEtat` SMALLINT NULL , `deleted` TINYINT NULL , `idTypeListe` MEDIUMINT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `edl_type_liste` ( `id` INT NOT NULL AUTO_INCREMENT , `type` VARCHAR(255) NULL , `codeType` VARCHAR(100) NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode edl : Suppression', 'mode-input-typeedl-btn-delete', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode edl : Modification', 'mode-input-typeedl-btn-save', 'bouton', '1'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode edl : Choix de champs', 'mode-input-typeedl-btn-champs', 'bouton', '1'); ALTER TABLE `edl_listes` ADD `idTypeEdl` INT NULL AFTER `idTypeListe`; CREATE TABLE `edl_savedstate` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `savedState` TEXT NULL , `idListe` MEDIUMINT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `edl` ADD `archive` TINYINT NULL DEFAULT '0' AFTER `email_proprio`; ALTER TABLE `edl` ADD `deleted` TINYINT NULL DEFAULT '0' AFTER `archive`; ALTER TABLE `edl_listes` CHANGE `deleted` `deleted` TINYINT(4) NULL DEFAULT '0'; ALTER TABLE `edl` ADD `idTypeEdl` MEDIUMINT NULL AFTER `deleted`; ALTER TABLE `edl` CHANGE `idTypeEdl` `idTypeEdl` MEDIUMINT(9) NULL DEFAULT '0'; -- -- 28-02-2022 AK -- ALTER TABLE `programme_campagne` CHANGE `idResidence` `idResidence` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `programme_campagne` CHANGE `quota_affect` `quota_affect` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `programme_campagne` CHANGE `quota_preaffect` `quota_preaffect` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `programme_campagne` CHANGE `used_affect` `used_affect` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `programme_campagne` CHANGE `used_preaffect` `used_preaffect` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `residences` CHANGE `nbrChambres` `nbrChambres` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `residences` CHANGE `deleted` `deleted` INT(1) NOT NULL DEFAULT '0'; ALTER TABLE `batiments` CHANGE `nbrChambres` `nbrChambres` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `batiments` CHANGE `deleted` `deleted` INT(1) NOT NULL DEFAULT '0'; ALTER TABLE `type_logement` CHANGE `deleted` `deleted` INT(1) NOT NULL DEFAULT '0'; ALTER TABLE `logements` CHANGE `superficie` `superficie` DOUBLE NOT NULL DEFAULT '0'; -- -- 01-03-2022 FTH -- ALTER TABLE `champs_formulaires` ADD `styleCss` TEXT NULL ; -- -- 03-03-2022 FTH -- ALTER TABLE `champs_creationcompte` ADD `styleCss` TEXT NULL ; -- 08-03-2022 RM -- INSERT INTO `categorie_champs` (`id`, `categorie`, `sourceChamps`, `idFormulaire`, `idModele`, `idTypeSuivis`, `idTypeCatalogue`, `idTheme`) VALUES (NULL, 'État des lieux', NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'edl_control', 'Contrôle état des lieux', '6', '3', '20', 'edl_control', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'edl_etat_prestations', 'Prestations état des lieux', '6', '3', '20', 'edl_etat_prestations', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'date_revalidation', 'Date de revalidation état des lieux', '2', '3', '20', 'date_revalidation', NULL, '2', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'createurEdl', 'Créateur de l''état des lieux', '6', '3', '20', 'createurEdl', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'observations_globales', 'Observations globales de l''état des lieux', '6', '3', '20', 'observations_globales', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'edl_renonce', 'Renonce état des lieux', '6', '3', '20', 'renonce', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'edl_etat', 'Etat de l''état des lieux', '6', '3', '20', 'etat', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'edl_type', 'Type d''état des lieux', '6', '3', '20', 'type', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'edl_type_validation', 'Type de validation de l''état des lieux', '6', '3', '20', 'type_validation', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'edl_proprietaire', 'Etat des lieux propriétaires', '6', '3', '20', 'proprietaire', NULL, '6', '1', 'edl'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'fromTabletteEdl', 'Travaux état des lieux', '6', '3', '20', 'fromTabletteEdl', NULL, '6', '1', 'demandes'); UPDATE `champs` SET `table` = 'edl' WHERE `champs`.`code` = 'fromTabletteEdl'; UPDATE `champs` SET `idTypeHtml` = '2' WHERE `champs`.`code` = 'dateEdl'; -- -- 10-03-2022 FTH -- CREATE TABLE IF NOT EXISTS `export_comptable` ( `id` int(11) NOT NULL AUTO_INCREMENT, `prefix` varchar(255) DEFAULT NULL, `suffix` varchar(255) DEFAULT NULL, `champs` varchar(255) DEFAULT NULL, `typeCompte` enum('courant','caution') NOT NULL, `idResidence` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 13-03-2022 AK -- ALTER TABLE `programmes` CHANGE `niveau` `niveau` INT(11) NOT NULL DEFAULT '0', CHANGE `progADP` `progADP` TINYINT(3) NOT NULL DEFAULT '0', CHANGE `sprogADP` `sprogADP` TINYINT(3) NOT NULL DEFAULT '0'; ALTER TABLE `programmes` CHANGE `deleted` `deleted` INT(1) NOT NULL DEFAULT '0', CHANGE `quota_affect` `quota_affect` INT(11) NOT NULL DEFAULT '0', CHANGE `quota_preaffect` `quota_preaffect` INT(11) NOT NULL DEFAULT '0', CHANGE `used_affect` `used_affect` INT(11) NOT NULL DEFAULT '0', CHANGE `used_preaffect` `used_preaffect` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE `tarifs` CHANGE `loyer` `loyer` FLOAT NOT NULL DEFAULT '0', CHANGE `montantCaution` `montantCaution` FLOAT NOT NULL DEFAULT '0', CHANGE `fraisGestion` `fraisGestion` FLOAT NOT NULL DEFAULT '0', CHANGE `idTypeRedevance` `idTypeRedevance` INT(11) NOT NULL DEFAULT '0', CHANGE `default` `default` TINYINT(1) NOT NULL DEFAULT '0', CHANGE `descriptif` `descriptif` TINYINT(1) NOT NULL DEFAULT '0', CHANGE `typeLogementDescription` `typeLogementDescription` VARCHAR(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''; ALTER TABLE `pmsCacheStatus` CHANGE `synchroTables` `synchroTables` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL; -- -- 17-03-2022 AK -- INSERT INTO `type_prestation` (`id`, `type`, `codePrestation`, `typePrestation`, `active`, `deleted`) VALUES (NULL, 'Situation intermédiaire', 'INTER', 'statique', '1', '0'); -- -- 17-03-2022 FTH -- -- -- Structure de la table `listes_par_defaut` -- CREATE TABLE IF NOT EXISTS `listes_par_defaut` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idListe` int(11) NOT NULL, `modeListe` varchar(255) NOT NULL, `idProfile` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 18-03-2021 JL -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Mode réservation : Dupliquer liste', 'liste-btn-dupliquer-liste', 'bouton', '1', '0', NULL); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Mode domiciliation : Dupliquer liste', 'liste-dp-btn-dupliquer-liste', 'bouton', '1', '0', NULL); -- -- 21-03-2022 AK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Génération de planning .xlsx', 'planning-btn-generer-xlsx', 'bouton', '2', '0', NULL); -- -- 21-03-2022 FTH -- ALTER TABLE `listes_par_defaut` CHANGE `modeListe` `idDroit` INT NOT NULL; -- -- 23-03-2021 JL -- ALTER TABLE `demandes_listes` ADD `stats` TINYINT(1) NOT NULL DEFAULT '0' AFTER `idModele`; ALTER TABLE `stats_modeles_liste` CHANGE `tableListes` `tableListes` ENUM('listes','dp_listes','demandes_listes') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -- -- 24-03-2022 FTH -- -- -- Structure de la table `config_planning` -- CREATE TABLE IF NOT EXISTS `config_planning` ( `id` int(11) NOT NULL AUTO_INCREMENT, `afficherTypeLogement` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Afficher ou non le type logement dans la colonne ressources en plus de nom de logement', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 24-03-2022 JL -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Mode multisuivis : Dupliquer liste', 'liste-suivis-btn-dupliquer-liste', 'bouton', '1', '0', NULL); ALTER TABLE `suivis_listes` ADD `stats` TINYINT(1) NOT NULL DEFAULT '0' AFTER `idTypeListe`; ALTER TABLE `suivis_listes` ADD `indicateur` TINYINT(1) NOT NULL DEFAULT '0' AFTER `stats`; -- -- 29-03-2022 FTH -- -- -- -- Structure de la table `financier` -- CREATE TABLE IF NOT EXISTS `financier` ( `id` int(11) NOT NULL AUTO_INCREMENT, `montantAPL` float DEFAULT NULL, `montantRAPL` float DEFAULT NULL, `montantAL` float DEFAULT NULL, `montantRAL` float DEFAULT NULL, `montantMSA` float DEFAULT NULL, `montantRMSA` float DEFAULT NULL, `montantPrest_1` float DEFAULT NULL, `montantPrest_2` float DEFAULT NULL, `montantPrest_3` float DEFAULT NULL, `montantPrest_4` float DEFAULT NULL, `montantPrest_5` float DEFAULT NULL, `idReservation` INT NULL , `idSuivis` INT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantAPL', 'Montant APL', '15', '200', '20', 'montantAPL', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantRAPL', 'Montant rappel APL', '15', '200', '20', 'montantRAPL', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantAL', 'Montant AL', '15', '200', '20', 'montantAL', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantRAL', 'Montant RAL', '15', '200', '20', 'montantRAL', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantMSA', 'Montant MSA', '15', '200', '20', 'montantMSA', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantRMSA', 'Montant RMSA', '15', '200', '20', 'montantRMSA', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPrest_1', 'Montant prestation 1', '15', '200', '20', 'montantPrest_1', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPrest_2', 'Montant prestation 2', '15', '200', '20', 'montantPrest_2', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPrest_3', 'Montant prestation 3', '15', '200', '20', 'montantPrest_3', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPrest_4', 'Montant prestation 4', '15', '200', '20', 'montantPrest_4', NULL, '12', '0', 'financier'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPrest_5', 'Montant prestation 5', '15', '200', '20', 'montantPrest_5', NULL, '12', '0', 'financier'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant APL', 'float', 'montantAPL', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant rappel APL', 'float', 'montantRAPL', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant AL', 'float', 'montantAL', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant RAL', 'float', 'montantRAL', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant MSA', 'float', 'montantMSA', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant RMSA', 'float', 'montantRMSA', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant prestation 1', 'float', 'montantPrest_1', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant prestation 2', 'float', 'montantPrest_2', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant prestation 3', 'float', 'montantPrest_3', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant prestation 4', 'float', 'montantPrest_4', 'financier', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant prestation 5', 'float', 'montantPrest_5', 'financier', NULL, '1', '12', NULL); -- -- 31-03-2022 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'datePremiereResa', 'Date de la première réservation', '2', '31', '100', 'datePremiereResa', '', '2', '1', ''); -- -- 04-04-2022 FTH -- ALTER TABLE `programme_campagne` ADD `dateArriveeMinNbrJours` SMALLINT NULL DEFAULT '0' ; -- -- 05-04-2022 FTH -- UPDATE `champs` SET `code` = 'dateArriveePremiereResa',`equivalentSql` = 'dateArriveePremiereResa',`nom`= 'Date arrivée première réservation' WHERE `champs`.`code` = 'datePremiereResa'; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateDepartPremiereResa', 'Date départ première réservation', '2', '31', '100', 'dateDepartPremiereResa', '', '2', '1', ''); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logChangedDepart', 'Changement logement départ', '2', '30', '100', 'logChangedDepart', '', '1', '0', ''); -- -- 12-04-2022 JL -- ALTER TABLE `demandes_listes` ADD `indicateur` TINYINT(1) NOT NULL DEFAULT '0' AFTER `stats`; -- -- 14-04-2022 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'codeReservation', 'Code de réservation', '2', '17', '100', 'idCode', 'codes', '3', '0', 'reservations'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode réservation : distribuer les codes', 'liste-btn-distribuer-codes', 'bouton', '1'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dureeValiditeCode', 'Durée validité code', '2', '17', '100', 'dureeValiditeCode', '', '1', '0', 'programmes'); -- -- 19-04-2022 FTH -- ALTER TABLE `suivis_savedstate` ADD `configFilters` TEXT NULL ; -- -- 21-04-2022 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateEtatIntercontrat', 'Date etat inter-contrat', '2', '30', '100', 'dateEtatIntercontrat', '', '2', '0', ''); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_dateEtatIntercontrat', 'Date etat inter-contrat', 1, 2, 100, 'dateEtatIntercontrat', '', 1, 0, ''); -- -- 28-04-2022 FTH -- ALTER TABLE `locataires` CHANGE `nom` `nom` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL; -- -- 02-05-2022 AK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode réservation : Recherche stricte - date de naissance facultative', 'liste-input-mode-liste-recherche-stricte-date-naissance-facultative', 'champs', (SELECT DE.id FROM `droit_elements` AS DE WHERE DE.unique_name='liste-input-mode-liste-btn-recherche-stricte')); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode domiciliation : Recherche stricte - date de naissance facultative', 'mode-input-dp-recherche-stricte-date-naissance-facultative', 'champs', (SELECT DE.id FROM `droit_elements` AS DE WHERE DE.unique_name='mode-input-dp-btn-recherche-stricte')); -- 02-05-2022 RM -- INSERT INTO `demandes_type_liste` (`id`, `type`, `codeType`) VALUES (NULL, 'TOUS', 'tous'); -- -- 07-05-2022 AK -- ALTER TABLE `demandes_type_liste` ADD UNIQUE KEY `codeType` (`codeType`); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'aliasType', 'Alias Type', 1, 10, 25, 'type', '', 3, 1, 'alias_locataires'); -- -- 09-05-2022 FTH -- ALTER TABLE `champs_formulaires` ADD `idChampSuivis` INT NULL ; -- -- 10-05-2022 FTH -- INSERT INTO `type_liste` (`id`, `type`) VALUES (24, 'Indicateurs'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'nomIndicateur', 'Nom indicateur', 1, 10, 25, 'nomIndicateur', '', 3, 0, ''); -- -- 17-05-2022 RM -- ALTER TABLE `configuration` ADD `deplacerChampsSuivis` TINYINT NULL AFTER `deplacerChampsFormulaires`; ALTER TABLE `type_suivi` ADD `nbrCols` TINYINT NULL AFTER `showCreateurSuivis`; ALTER TABLE `configuration` ADD `deplacerChampsDemandes` TINYINT NULL AFTER `deplacerChampsSuivis`; ALTER TABLE `demandes_type` ADD `nbrCols` TINYINT NULL AFTER `tabNom`; -- -- 24-05-2022 FTH -- ALTER TABLE `codes` ADD `emailLocataire` VARCHAR(255) NULL AFTER `prenomLocataire`; -- -- 24-05-2022 FTH : Erreur sur la nouvelle version mysql idPMS sans default value -- ALTER TABLE `reservations_apipms` CHANGE `idPMS` `idPMS` VARCHAR(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 27-05-2022 FTH -- ALTER TABLE `configuration` ADD `etatsResaAccesEspaceResidentRestreint` VARCHAR(255) NULL DEFAULT '1,10,9' ; -- -- 01-06-2022 FTH -- ALTER TABLE `comptes` CHANGE `num_mvt` `num_mvt` VARCHAR(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `comptes` CHANGE `nature` `nature` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL; -- -- 02-06-2022 FTH -- ALTER TABLE `modes_campagne` ADD `nePasCreerFactureFDD` TINYINT(1) NULL DEFAULT '0' , ADD `nePasMajPasDeFacture` TINYINT(1) NULL DEFAULT '0' ; -- -- 08-06-2022 RM -- CREATE TABLE `champs_export_comptable` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `nom` VARCHAR(255) NULL , `nom_bredea` VARCHAR(255) NULL , `ordre` SMALLINT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER TABLE `champs_export_comptable` ADD `checked` BOOLEAN NULL DEFAULT FALSE AFTER `ordre`; INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`) VALUES (NULL, 'Libelle', 'hglib', '1', '1'), (NULL, 'Montant', 'hgmteuro', '2', '1'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`) VALUES (NULL, 'Date de saisie', 'hgtsai', '3', '1'); -- -- 14-06-2022 RM -- ALTER TABLE `logs` CHANGE `dataBefore` `dataBefore` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `logs` CHANGE `dataAfter` `dataAfter` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `edl` CHANGE `observations_globales` `observations_globales` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `edl_article` CHANGE `commentaire` `commentaire` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `demandes` CHANGE `commentaire` `commentaire` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `demandes_values` CHANGE `valeur` `valeur` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; ALTER TABLE `champs_demandes` CHANGE `description` `description` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `edl_parametres` CHANGE `etatFonctionnement` `etatFonctionnement` TEXT NULL DEFAULT NULL; ALTER TABLE `edl_parametres` CHANGE `edl_modele_en_tete` `edl_modele_en_tete` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `edl_parametres` CHANGE `msg_observations_globales` `msg_observations_globales` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `edl_parametres` CHANGE `msg_signature` `msg_signature` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `edl_parametres` CHANGE `edl_modele_pied_de_page` `edl_modele_pied_de_page` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `demandes` CHANGE `cause` `cause` ENUM('Usure','Dégradation','Mauvaise utilisation','Panne','Mobilier à remplacer','') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `demandes_etat_travaux_historique` CHANGE `etat` `etat` INT(11) NULL; -- -- 15-06-2022 RM -- ALTER TABLE `edl_modele` CHANGE `bloquer` `bloquer` TINYINT(5) NULL DEFAULT '0'; -- -- 16-06-2022 RM -- ALTER TABLE `configuration_intervention` ADD `nomLog` BOOLEAN NULL DEFAULT FALSE AFTER `envoi_mail`; UPDATE champs SET nom = "Numéro de logement" WHERE champs.table = "logements" AND champs.code = "numeroLogement"; -- -- 15-06-2022 FTH -- ALTER TABLE `choix_typelogement` CHANGE `idReservation` `idReservation` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0'; ALTER TABLE `choix_typelogement` CHANGE `idTypeLogement` `idTypeLogement` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0'; -- -- 17-06-2022 RM -- DELETE FROM champs_export_comptable WHERE nom_bredea = "hglib"; DELETE FROM champs_export_comptable WHERE nom_bredea = "hgmteuro"; DELETE FROM champs_export_comptable WHERE nom_bredea = "hgtsai"; ALTER TABLE `champs_export_comptable` ADD `table_bredea` VARCHAR(50) NULL AFTER `checked`; INSERT INTO `champs_export_comptable` (`nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`) VALUES ('Date de l''écriture', 'hgdtsai', '1', '1', 'histog'); INSERT INTO `champs_export_comptable` (`nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`) VALUES ('Le journal', 'hgcodjal', '2', '1', 'histog'), ("Le libellé de l'écriture", 'hglib', '3', '1', 'histog'); INSERT INTO `champs_export_comptable` (`nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`) VALUES ('Période de facturation', 'hgdate1', '4', '1', 'histog'); INSERT INTO `champs_export_comptable` (`nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`) VALUES ('Le n° d''écriture', 'hgnoecr1', '5', '1', 'histog'), ('La référence de l''écriture', 'hgpieces', '6', '1', 'histog'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Export-Comptable', 'export-comptable', 'menu', '0'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Export-Comptable-Exportation', 'export-comptable-exportation', 'menu', '0'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Export-Comptable-Annulation', 'export-comptable-annulation', 'menu', '0'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Export-Comptable-Historique', 'export-comptable-historique', 'menu', '0'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Export-Comptable-Journaux-Interface', 'export-comptable-journaux-interface', 'menu', '0'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Export-Comptable-Compte-Cumul', 'export-comptable-compte-cumul', 'menu', '0'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Export-Comptable-Definition-Libelle', 'export-comptable-def-lib', 'menu', '0'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Export-Comptable-Format-Structure', 'export-comptable-format-structure', 'menu', '0'); ALTER TABLE `champs_export_comptable` ADD `taille` MEDIUMINT NULL AFTER `table_bredea`; ALTER TABLE `champs_export_comptable` ADD `alignement` ENUM('left','right','') NULL DEFAULT 'right' AFTER `taille`; ALTER TABLE `champs_export_comptable` ADD `champRemplissage` CHAR(1) NULL AFTER `alignement`; INSERT INTO `champs_export_comptable` (`nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`) VALUES ('Le montant en débit', 'hgmteuro', '11', '1', 'histog', NULL, 'right', NULL), ('Le montant en crédit', 'hgmteuro', '12', '1', 'histog', NULL, 'right', NULL); INSERT INTO `champs_export_comptable` (`nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`) VALUES ('Le compte comptable', 'gnocont', '7', '1', 'fplan', NULL, 'right', NULL), ('Le libellé du compte comptable', 'glib', '8', '1', 'fplan', NULL, 'right', NULL); INSERT INTO `champs_export_comptable` (`nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`) VALUES ('Le montant en débit', 'hgmteuro', '11', '1', 'histog', NULL, 'right', NULL), ('Le montant en crédit', 'hgmteuro', '12', '1', 'histog', NULL, 'right', NULL); -- -- 20-06-2022 RM -- INSERT INTO `champs_export_comptable` (`nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`) VALUES ('Le code analytique', 'hapiece', '13', '1', 'histoa', NULL, 'right', NULL), ('Le libellé du code analytique', 'halib', '14', '1', 'histoa', NULL, 'right', NULL); ALTER TABLE `champs_export_comptable` ADD `format` VARCHAR(20) NULL AFTER `champRemplissage`; -- -- 22-06-2022 RM -- ALTER TABLE actions_conditions DROP INDEX idAction; -- -- 23-06-2022 RM -- ALTER TABLE `formulaires` CHANGE `ordre` `ordre` TINYINT(4) NULL; -- -- 24-06-2022 JL -- CREATE TABLE IF NOT EXISTS `stats_modeles_champs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` MEDIUMINT(8) NOT NULL, `idTable` MEDIUMINT(8) NOT NULL, `table` ENUM('campagnes', 'formulaires', 'champs_formulaires') NOT NULL, `champName` VARCHAR(255) NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; -- -- 25-06-2022 AK -- ALTER TABLE `alias_locataires` ADD KEY `idLocataire` (`idLocataire`); ALTER TABLE `alias_locataires` ADD KEY `type` (`type`); -- -- 25-06-2022 RM -- CREATE TABLE `export_comptable_tranlsation_journal` ( `id` SMALLINT NOT NULL AUTO_INCREMENT , `code_bredea` CHAR(3) NULL , `code_wl` VARCHAR(50) NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `export_comptable_format_struct` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `separateur` CHAR(1) NULL , `format_fichier` ENUM('csv','txt','fixe','') NULL DEFAULT 'csv' , `format_caractere` ENUM('UTF-8','ISO EUR 8859-14','') NULL DEFAULT 'UTF-8' , PRIMARY KEY (`id`)) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; INSERT INTO `export_comptable_format_struct` (`id`, `separateur`, `format_fichier`, `format_caractere`) VALUES (NULL, ';', 'csv', 'UTF-8'); ALTER TABLE `export_comptable_format_struct` CHANGE `separateur` `separateur` ENUM(';',',','tab','') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT ';'; ALTER TABLE `champs_export_comptable` ADD `champBase` BOOLEAN NULL DEFAULT FALSE AFTER `format`; UPDATE champs_export_comptable SET champBase = '1'; -- -- 28-06-2022 FTH -- -- INSERT INTO `api_paiement` (`id`, `nom`, `className`, `active`) VALUES (6, 'Axepta BNP', 'Axepta', '0'); -- INSERT INTO `api_setting` (`id`, `nom`, `cle`, `valeur`, `idAPI`) VALUES -- (null, 'postURL', 'postURL', 'https://paymentpage.axepta.bnpparibas/payssl.aspx', 6), -- (null, 'MerchantID', 'MerchantID', '', 6), -- (null, 'HMAC key', 'secretKey', '', 6), -- (null, 'blowfish crypt key', 'cryptKey', '', 6), -- (null, 'Currency', 'Currency', 'EUR', 6), -- (null, 'MsgVer', 'MsgVer', '2.0', 6), -- (null, 'URLSuccess', 'URLSuccess', '', 6), -- (null, 'URLFailure', 'URLFailure', '', 6), -- (null, 'OrderDesc', 'OrderDesc', 'Paiement', 6); -- 30-06-2022 RM -- ALTER TABLE `champs_export_comptable` CHANGE `champRemplissage` `champRemplissage` VARCHAR(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 01-07-2022 RM -- CREATE TABLE `export_comptable_def_libelle` ( `id` MEDIUMINT NOT NULL AUTO_INCREMENT , `type_ecriture` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL , `libelle` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; -- -- 01-07-2022 AK -- ALTER TABLE `modes_campagne` ADD `passageAffecteVersConfirmeManuel` TINYINT(1) UNSIGNED NULL DEFAULT NULL AFTER `nePasMajPasDeFacture`, ADD `nbJoursMaxAnticipationCheckIn` TINYINT UNSIGNED NULL DEFAULT NULL AFTER `passageAffecteVersConfirmeManuel`; -- -- 05-07-2022 FTH -- ALTER TABLE `modes_campagne` ADD `activerIntercontratCS` TINYINT(1) NULL DEFAULT '0' ; -- -- 07-07-2022 FTH : suppression des deux champs en double hgmteuro -- DELETE FROM `champs_export_comptable` WHERE `champs_export_comptable`.`id` = 14; DELETE FROM `champs_export_comptable` WHERE `champs_export_comptable`.`id` = 15; -- -- 08-07-2022 FTH -- ALTER TABLE `export_comptable` ADD `idApiPms` SMALLINT NULL , ADD `taille` SMALLINT NULL ; -- -- 12-07-2022 FTH -- UPDATE `champs_export_comptable` SET `nom_bredea` = 'hanalyt' WHERE `champs_export_comptable`.`nom_bredea` = 'hapiece'; -- -- 14-07-2022 FTH -- -- -- Structure de la table `api_pms2user` -- CREATE TABLE IF NOT EXISTS `api_pms2user` ( `idApiPms` smallint(6) NOT NULL, `idUser` mediumint(9) NOT NULL, PRIMARY KEY (`idApiPms`,`idUser`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 20-07-2022 JL -- ALTER TABLE `type_modeles_docs` ADD `ordre` TINYINT(4) NULL AFTER `sousTypeModele`; -- -- 20-07-2022 FTH -- UPDATE `champs_export_comptable` SET `nom_bredea` = 'hgdate1' WHERE `champs_export_comptable`.`id` = 4; ALTER TABLE `export_comptable_format_struct` CHANGE `format_fichier` `format_fichier` ENUM('csv','txt','fixe','','xlsx') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'csv'; ALTER TABLE `export_comptable_tranlsation_journal` ADD `idApiPms` SMALLINT NOT NULL DEFAULT '1' ; -- -- 21-07-2022 FTH -- ALTER TABLE `export_comptable` CHANGE `typeCompte` `typeCompte` ENUM('courant','caution','apl','al','msa') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -- -- 22-07-2022 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Facturation checkIn', 'facturation-checkin', 'menu', '0'); ALTER TABLE `prestations` CHANGE `modePrestation` `modePrestation` ENUM('fixe','calcule','checkin') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'fixe'; -- -- 29-07-2022 FTH -- ALTER TABLE `modes_campagne` ADD `chgLogSansNouvelleResa` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Changement logement sans creer de nouvelle resa' ; -- -- 01-08-2022 RM -- ALTER TABLE `champs_formulaires` ADD `obligatoireArchivage` BOOLEAN NOT NULL DEFAULT FALSE AFTER `idChampSuivis`; -- -- 02-08-2022 FTH -- INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_dateRemiseEnDispo', 'Date remise logement en disponible', 1, 20, 100, 'dateRemiseEnDispo', '', 2, 0, ''); -- -- 03-08-2022 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dureeVacance', 'Durée vacance', '2', '30', '100', 'dureeVacance', '', '5', '0', ''); -- -- 04-08-2022 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES ('', 'dureeFiltreIndicateur', 'Durée indicateur', 1, 10, 25, 'dureeFiltreIndicateur', '', 5, 0, ''); -- -- 09-08-2022 FTH -- -- -- Structure de la table `user2profile` -- CREATE TABLE IF NOT EXISTS `user2profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idUser` int(11) NOT NULL, `idProfile` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Attribution profils', 'user-profils', 'menu', '24'); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Attribution utilisateurs', 'profil-users', 'menu', '25'); -- -- 19-08-2022 LG -- INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`) VALUES (NULL, 'Le libèllé du compte analytique', 'gliba', '8', '1', 'fplan', '0', 'right', NULL, NULL, '1'); -- -- 30-08-2022 RM -- ALTER TABLE `edl_parametres` ADD `afficher_label_etat_fonctionnement` TINYINT NOT NULL DEFAULT '0' AFTER `valueEtatFonctionnement`; -- -- 30-08-2022 FTH -- ALTER TABLE `documents` CHANGE `nom` `nom` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL; -- -- 31-08-2022 FTH -- INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`) VALUES (NULL, 'Compte comptable uniquement', 'hgeneral', '15', '1', 'histog', NULL, 'right', NULL, NULL, '1'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`) VALUES (NULL, 'Compte interface uniquement', 'ginterface', '16', '1', 'fplan', NULL, 'right', NULL, NULL, '1'); -- 02-09-2022 FTH -- UPDATE `champs_export_comptable` SET `nom` = 'Compte comptable Tiers' WHERE `champs_export_comptable`.`nom` = 'Compte comptable uniquement'; UPDATE `champs_export_comptable` SET `nom` = 'Compte Tiers uniquement' WHERE `champs_export_comptable`.`nom` = 'Compte interface uniquement'; ALTER TABLE `export_comptable_tranlsation_journal` ADD `nonExporte` TINYINT(1) NULL DEFAULT '0' ; -- -- 05-09-2022 FTH -- ALTER TABLE `logements` CHANGE `idBatiment` `idBatiment` SMALLINT UNSIGNED NULL DEFAULT NULL; ALTER TABLE `logements` CHANGE `idTypeLogement` `idTypeLogement` SMALLINT UNSIGNED NOT NULL; ALTER TABLE `configuration` ADD `portailResidentAvecMap` TINYINT(1) NOT NULL DEFAULT '1' , ADD `portailResidentAvecSlider` TINYINT(1) NOT NULL DEFAULT '1' , ADD `portailResidentAvecAdresseResidence` TINYINT(1) NOT NULL DEFAULT '1' ; -- -- 08-09-2022 AK -- ALTER TABLE `pile_loyer` ADD UNIQUE KEY `idLocataire` (`idLocataire`), ADD UNIQUE KEY `idReservation` (`idReservation`); CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `prelevementsLoyerPrevus` AS select `locataires`.`nom` AS `nom`,`locataires`.`prenom` AS `prenom`,`reservations`.`etat` AS `etat`,`reservations`.`sousEtat` AS `sousEtat`,`reservations`.`dateArrivee` AS `dateArrivee`,`reservations`.`dateDepart` AS `dateDepart`,`residences`.`nom` AS `nomResidence`,`logements`.`numero` AS `numeroLogement`,`api_pms`.`nom` AS `pms`,`alias_locataires`.`numCB` AS `numCB`,`alias_locataires`.`dateExpCB` AS `dateExpCB`,`reservations`.`prelevementJourDuMois` AS `prelevementJourDuMois`,`pile_loyer`.`datePaiement` AS `datePaiement`,`pmsCache`.`valeur` AS `solde`,`pmsCache`.`idReservation` AS `idReservation`,`reservations`.`idLocataire` AS `idLocataire`,`reservations_apipms`.`idApiPms` AS `idApiPms`,`reservations`.`prelevementLoyer` AS `prelevementLoyer` from (((((((((`pmsCache` left join `reservations` on((`reservations`.`id` = `pmsCache`.`idReservation`))) left join `locataires` on((`locataires`.`id` = `reservations`.`idLocataire`))) left join `logements` on((`logements`.`id` = `reservations`.`idLogement`))) left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) left join `reservations_apipms` on((`reservations_apipms`.`idReservation` = `reservations`.`id`))) left join `api_pms` on((`api_pms`.`id` = `reservations_apipms`.`idApiPms`))) left join `alias_locataires` on(((`alias_locataires`.`idLocataire` = `reservations`.`idLocataire`) and (`alias_locataires`.`type` = 'loyer')))) left join `pile_loyer` on((`pile_loyer`.`idReservation` = `pmsCache`.`idReservation`))) where ((`pmsCache`.`typeCache` = 'solde') and (`reservations`.`etat` = 7) and (`pmsCache`.`valeur` > 0) and (`reservations`.`prelevementLoyer` = 1) and (`alias_locataires`.`alias` is not null)) order by `locataires`.`nom`,`locataires`.`prenom`,`pmsCache`.`idReservation` ; -- -- 13-09-2022 FTH -- -- -- Structure de la table `prelevements_sepa` : remonte des infos bredea pour les afficher dans les listes -- CREATE TABLE IF NOT EXISTS `prelevements_sepa` ( `id` int(11) NOT NULL AUTO_INCREMENT, `prelevementSEPA` TINYINT(1) NOT NULL DEFAULT '0', `jourPrelevementSEPA` tinyint(4) DEFAULT NULL, `typePrelevementSEPA` enum('facture','soldeCompte','montantFixe') DEFAULT NULL, `montantPrelevementSEPA` float DEFAULT NULL, `idReservation` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'prelevementSEPA', 'Prélèvement SEPA', '2', '30', '100', 'prelevementSEPA', '', '8', '0', 'prelevements_sepa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'jourPrelevementSEPA', 'Jour de prélèvement SEPA', '2', '30', '100', 'jourPrelevementSEPA', '', '5', '0', 'prelevements_sepa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'typePrelevementSEPA', 'Type de prélèvement SEPA', '2', '30', '100', 'typePrelevementSEPA', '', '3', '0', 'prelevements_sepa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'montantPrelevementSEPA', 'Montant de prélèvement SEPA', '2', '30', '100', 'montantPrelevementSEPA', '', '5', '0', 'prelevements_sepa'); -- -- 14-09-2022 FTH : Attribution canaux au utilisateurs -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Attribution canaux', 'user-canaux', 'menu', '24'); -- -- 15-09-2022 FTH -- ALTER TABLE `champs_suivis` ADD `styleCss` TEXT NULL ; -- -- 20-09-2022 FTH -- -- -- Structure de la table `domiciliations_sepa` -- CREATE TABLE IF NOT EXISTS `domiciliations_sepa` ( `id` int(11) NOT NULL AUTO_INCREMENT, `bic` varchar(20) NOT NULL, `banque` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `domiciliations_sepa` ADD INDEX(`bic`); INSERT INTO `domiciliations_sepa` (`id`, `bic`,`banque`) VALUES (null, 'ABNAFRPP','THE ROYAL BANK OF SCOTLAND PLC PARIS BRANCH'), (null, 'AECFFR21','AMERICAN EXPRESS CARTE FRANCE'), (null, 'AFRIFRPP','BOA-FRANCE'), (null, 'AGFBFRCC','ALLIANZ BANQUE S.A. (former BANQUE AGF S.A.)'), (null, 'AGRIFRPI','AMUNDI ASSET MANAGEMENT'), (null, 'AGRIFRPP','CREDIT AGRICOLE'), (null, 'AGRIMQMX','CRCAM DE LA MARTINIQUE ET DE LA GUYANE'), (null, 'AGRIRERX','CRCAM DE LA REUNION'), (null, 'ARCEFRP1','ARCALIS ACTIF GENERAL LA POSTE'), (null, 'AUDIFRPP','BANK AUDI FRANCE'), (null, 'AXABFRPP','AXA BANQUE SA'), (null, 'BAMYFR22','BANQUE MICHEL INCHAUSPE BAMI'), (null, 'BARCFRPP','BARCLAYS BANK PLC'), (null, 'BATIFRP1','BANQUE DU BAT ET DES TRAV PUB BTP BANQUE'), (null, 'BBPIFRPP','BANCO BPI'), (null, 'BCDMFRPP','BANQUE CHAABI DU MAROC'), (null, 'BCHAFR21','BANQUE CHALUS'), (null, 'BCITFRPP','INTESA SANPAOLO SPA Succursale de Paris'), (null, 'BCMAFRPP','ATTIJARIWAFA BANK (FORMERLY BANQUE COMMERCIALE DU MAROC)'), (null, 'BCRTFRP1','CORTAL CONSORS'), (null, 'BCRTFRPP','CORTAL CONSORS'), (null, 'BDEIFRPP','BANQUE THEMIS (FORMERLY BANQUE DE L''ILE DE FRANCE - B.D.E.I.)'), (null, 'BDFEFR2L','BANQUE DE FRANCE'), (null, 'BDFEFR2T','BANQUE DE FRANCE'), (null, 'BDFEFRPP','BANQUE DE FRANCE'), (null, 'BDUPFR2S','BANQUE DUPUY DE PARSEVAL'), (null, 'BEPOFR21','BANCA POPOLARE DI BERGAMO - CREDITO VARESINO'), (null, 'BFBKFRP1','BFORBANK'), (null, 'BGFIFRPP','BGFI INTERNATIONAL'), (null, 'BIKCFRP1','BINCKBANK'), (null, 'BMCEFRPP','BMCE BANK INTERNATIONAL PLC SUCCURSALE EN FRANCE'), (null, 'BMMMFR2A','BANQUE MARTIN-MAUREL'), (null, 'BMRZFR21','BANQUE MARZE'), (null, 'BNABFRPP','BNP PARIBAS ARBITRAGE SNC'), (null, 'BNPAFRPH','BNP PARIBAS SA (FORMERLY BANQUE NATIONALE DE PARIS S.A.)'), (null, 'BNPAFRPP','BNP PARIBAS'), (null, 'BNPAGFGX','BNP PARIBAS GUYANE'), (null, 'BNPARERX','BNP PARIBAS REUNION'), (null, 'BNPCFR21','BNP PARIBAS FACTOR'), (null, 'BNUGFR21','BANQUE NUGER'), (null, 'BOFAFRPP','BANK OF AMERICA, N.A. PARIS BRANCH'), (null, 'BOTKFRPX','The Bank of Tokyo - Mitsubishi UFJ, Ltd.'), (null, 'BOUSFRPP','BOURSORAMA'), (null, 'BPCEFRPP','BPCE SA'), (null, 'BPFIFRP1','LA BANQUE POSTALE FINANCEMENT'), (null, 'BPNPFRP1','BPN - BANCO PORTUGUES DE NEGOCIOS SA'), (null, 'BPOLPFTP','BANQUE DE POLYNESIE'), (null, 'BPPBFRP1','BNP PARIBAS PRIVATE BANK'), (null, 'BPSMFRPP','BANQUE BCP'), (null, 'BRASFRPP','BANCO DO BRASIL AG SUCCURSALE FRANCE'), (null, 'BREDFRPP','BRED BANQUE POPULAIRE'), (null, 'BSAVFR2C','BANQUE DE SAVOIE'), (null, 'BSPFFRPP','BANQUE PALATINE'), (null, 'BSUIFRPP','CREDIT AGRICOLE CIB'), (null, 'CAONFR21','CAPITAL ONE'), (null, 'CCBPFRPP','BANQUE POPULAIRE'), (null, 'CCFEFRP1','CCM FDS DU REGIME CC PF'), (null, 'CCFRFRCR','HSBC FRANCE'), (null, 'CCFRFRPP','HSBC FRANCE'), (null, 'CCMOFR21','CAISSE DE CREDIT MUNICIPAL DE BORDEAUX'), (null, 'CCMVFR21','CAISSE DE CREDIT MUTUEL LAVAL BRETAGNE'), (null, 'CCOPFRCP','Credit Cooperatif Societe Cooperative'), (null, 'CCOPFRPP','CREDIT COOPERATIF'), (null, 'CCUTFR21','CSSE CIT MUNICIPAL DE TOULON'), (null, 'CDCGFRPP','CAISSE DES DEPOTS ET CONSIGNATIONS'), (null, 'CDPRFRP1','CDC PROJETS'), (null, 'CEPAFRPP','CAISSE D''EPARGNE PROVENCE ALPES CORSE'), (null, 'CEPANCNM','BANQUE DE NOUVELLE CALEDONIE'), (null, 'CFCUFR21','CAISSE FEDERALE DE CREDIT MUTUELLE NORMANDIE'), (null, 'CFFIFR2L','COFIDIS'), (null, 'CFFRFRPP','CREDIT FONCIER DE FRANCE'), (null, 'CGCPFRP1','COMPAGNIE GENERALE DE CREDIT AUX PARTICULIERS - CREDIPAR'), (null, 'CGDIFRPP','CAIXA GERAL DE DEPOSITOS S A'), (null, 'CGRCFRP1','CAISSE GENERALE RETRAITE CAISSE D EPARGNE'), (null, 'CHASFRPB','JPMORGAN CHASE BANK,N.A.'), (null, 'CHASFRPP','JPMORGAN CHASE BANK,N.A.'), (null, 'CITIFRPP','CITIBANK INTERNATIONAL LIMITED FRANCE BRANCH'), (null, 'CLBQFRP1','CLF BANQUE'), (null, 'CMBRFR2B','CREDIT MUTUEL ARKEA'), (null, 'CMCIFR21','CREDIT MUTUEL - CIC BANQUES'), (null, 'CMCIFR2A','CAISSE FEDERALE DE CREDIT MUTUEL'), (null, 'CMCIFRP1','CREDIT MUTUEL - CIC BANQUES'), (null, 'CMCIFRPA','CREDIT MUTUEL - CIC BANQUES'), (null, 'CMCIFRPB','CM CIC SECURITIES'), (null, 'CMCIFRPP','CREDIT INDUSTRIEL ET COMMERCIAL CIC'), (null, 'CMDIFR21','CREDIT MUNICIPAL DE DIJON'), (null, 'CMMMFR21','CRC MARIT MUT DE LA MEDITERRANEE'), (null, 'CMUTFR21','CAISSE FEDERALE DU CREDIT MUTUEL DE LOIRE ATLANTIQUE ET DU CENTRE OUEST'), (null, 'COBAFRPX','COMMERZBANK AG'), (null, 'CONOFRP1','COFINOGA'), (null, 'COUOFR21','COFIROUTE'), (null, 'COURFR2T','BANQUE COURTOIS'), (null, 'CPMEFRPP','BPIFRANCE'), (null, 'CRAFFRP1','CREALFI'), (null, 'CRGEFR2X','BANCA CARIGE SPA'), (null, 'CRLYFRPP','CREDIT LYONNAIS'), (null, 'CRTAFR21','CREATIS'), (null, 'DELUFR22','BANQUE DELUBAC ET CIE'), (null, 'DEUTFRPP','DEUTSCHE BANK AG'), (null, 'ECOCFRPP','EBI SA'), (null, 'EDFGFRPP','ELECTRICITE DE FRANCE'), (null, 'ELFAFRP1','HSBC FACTORING FRANCE'), (null, 'FACFFRPP','GE FACTOFRANCE'), (null, 'FAMSFRPP','BNPPARIBAS FINAMS'), (null, 'FEMBFRP1','BANQUE FRANCAISE MUTUALISTE'), (null, 'FIDCFR21','BANQUE FIDUCIAL'), (null, 'FPELFR21','FINANCIERE DES PAIEMENTS ELECTRONIQUES S.A.S.'), (null, 'FTELFRPP','ORANGE SA'), (null, 'FTNOFRP1','FORTUNEO'), (null, 'GPBAFRPP','GROUPAMA BANQUE'), (null, 'GSCFFR22','SOCIETE GENERALE SCF'), (null, 'GSFHFRPP','SOCIETE GENERALE SFH'), (null, 'GSZGFRPP','GDF SUEZ'), (null, 'HCREFR21','HERVET CREDITERME'), (null, 'IIDFFR21','ING DIRECT NV'), (null, 'INGBFRPP','ING BANK France'), (null, 'ISAEFRPP','CACEIS BANK FRANCE'), (null, 'KOEXFRPP','KOREA EXCHANGE BANK'), (null, 'KOLBFR21','BANQUE KOLB S.A.'), (null, 'KREDFRPP','KBC BANK NV PARIS'), (null, 'LAYDFR2W','BANQUE LAYDERNIER'), (null, 'LCLPFRP1','LCL BANQUE PRIVEE'), (null, 'LEGRFRP1','LEGAL AND GENERAL BANK (FRANCE)'), (null, 'MCCFFRP1','MACIF-MUTUALITE'), (null, 'MIDLFRCP','HSBC BANK PLC'), (null, 'MIDLFRPX','HSBC BANK PLC'), (null, 'MONTFRPP','MONTE PASCHI BANQUE S A'), (null, 'NATXFRPP','Natixis SA'), (null, 'NFACFR21','NATIXIS FACTOR'), (null, 'NORDFRPP','CREDIT DU NORD'), (null, 'NSMBFRPP','BANQUE NEUFLIZE OBC'), (null, 'ODDOFRPP','ODDO ET CIE'), (null, 'ODYVFRP1','ODYSSEE VENTURE'), (null, 'OPSPFR21','OLKY PAYMENT SERVICE PROVIDER'), (null, 'PARBFRPP','BNP PARIBAS SECURITIES SERVICES'), (null, 'PAREFRPP','SOCIETE DE BOURSE PAREL'), (null, 'POUYFR21','BANQUE POUYANNE'), (null, 'PREUFRP1','BPE'), (null, 'PSABFRPP','BANQUE PSA FINANCE'), (null, 'PSSTFRPP','LA BANQUE POSTALE'), (null, 'RALPFR2G','BANQUE RHONE ALPES'), (null, 'REUBRERX','BANQUE DE LA REUNION'), (null, 'RGFIFRPP','BANQUE DE REALISATIONS DE GESTION ET DE FINANCEMENT'), (null, 'RGFPFRP1','RECETTE GENERALE DES FINANCES DE PARIS'), (null, 'SBEXFRP1','STE DE BANQUE ET D EXPANSION SBE (2EME)'), (null, 'SBINFRPP','STATE BANK OF INDIA'), (null, 'SFBSFRP1','SOFIB'), (null, 'SICVFRPP','EUROCLEAR FRANCE'), (null, 'SLMPFRP1','SLIMPAY'), (null, 'SMCTFR2A','STE MARSEILLAISE DE CREDIT'), (null, 'SOAPFR22','CARREFOUR BANQUE'), (null, 'SOCBPFTX','BANQUE SOCREDO'), (null, 'SOGEFRPP','STE GENERALE'), (null, 'SOGEGPGP','STE GENERALE DE BANQUE AUX ANTILLES'), (null, 'SOGENCNN','STE GENERALE CALEDONIENNE DE BQ S G C B'), (null, 'SORMFR2N','SOCRAM BANQUE'), (null, 'TARNFR2L','BANQUE TARNEAUD'), (null, 'TRGLFRP1','TRESORERIE GENERALE POUR L''ETRANGER'), (null, 'TRPUFRP1','TRESOR PUBLIC'), (null, 'UBAFFRPP','UNION DES BANQUES ARABES ET FRANCAISES - UBAF'), (null, 'USINFRPP','ARCELORMITTAL TREASURY'), (null, 'YROCFRPP','YVES ROCHER'); -- -- 28-09-2022 FTH -- ALTER TABLE `user` ADD `allProfiles` TINYINT(1) NULL DEFAULT '0' , ADD `allResidences` TINYINT(1) NULL DEFAULT '0' ; -- -- 29-09-2022 FTH -- INSERT INTO `droit_elements` ( `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) SELECT `nom`, CONCAT(`unique_name`,'/souslogement'), `type`, `id`, `ordre`, `id_attr` FROM `droit_elements` WHERE `unique_name` = 'fichelogement'; UPDATE `droit_elements` SET `nom` = 'Logements' WHERE `droit_elements`.`unique_name` = 'fichelogement/souslogement'; -- -- 06-10-2022 FTH -- ALTER TABLE `modes_campagne` ADD `modeAffModeleFacture` ENUM('logements','grilleTarifs') NOT NULL DEFAULT 'logements' ; ALTER TABLE `tarifs` ADD `modeleFacture` SMALLINT NULL ; -- -- 12-10-2022 FTH -- ALTER TABLE `tarifs` CHANGE `modeleFacture` `modeleFacture` VARCHAR(10) NULL DEFAULT NULL; -- -- 21-10-2022 FTH -- INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_log_no', 'Logement No', 1, 1, 100, 'log_no', '', 5, 1, 'logements'), (Null, 'logements_log_sno', 'Logement Sno', 1, 2, 100, 'log_sno', '', 5, 1, 'logements'); ALTER TABLE documents CHANGE nom nom VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 31-10-2022 FTH -- ALTER TABLE `logements` ADD `dateConvention` DATE NULL ; ALTER TABLE `logements` ADD `noConvention` VARCHAR(255) NULL ; -- -- 02-11-2022 FTH -- INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'compteur_valeurCompteur', 'Valeur compteur', 1, 100, 100, 'valeurCompteur', '', 5, 1, 'charges_compteurs'), (Null, 'compteur_dateCompteur', 'Date compteur', 1, 101, 100, 'dateCompteur', '', 2, 1, 'charges_compteurs'), (Null, 'compteur_typeReleve', 'Type relevé', 1, 102, 100, 'typeReleve', '', 1, 1, 'charges_compteurs'), (Null, 'compteur_idTypeCharge', 'Type compteur', 1, 103, 100, 'idTypeCharge', 'charges_types', 3, 1, 'charges_compteurs'), (Null, 'compteur_consomation', 'Consomation', 1, 104, 100, 'compteur_consomation', '', 5, 1, ''); -- -- 03-11-2022 FTH -- INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_nomEn', 'Nom EN', 1, 3, 100, 'nomEn', '', 1, 1, 'logements'), (Null, 'logements_typelogement', 'Nom type logement', 1, 1, 100, 'idTypeLogement', 'type_logement', 3, 1, 'logements'); -- -- 07-11-2022 FTH -- -- -- Structure de la table `champs_caf` -- CREATE TABLE IF NOT EXISTS `champs_caf` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libelle` varchar(255) NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '0', `sourcePMS` varchar(255) NOT NULL, `equivalentPMS` varchar(255) NULL, `tablePMS` VARCHAR(255) NULL, `equivalentCAF` varchar(255) NOT NULL, `idType` TINYINT NOT NULL DEFAULT '1', `valeurFixe` VARCHAR(255) NULL, `noeudXML` VARCHAR(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_totalPlaces', 'Total places', 1, 2, 100, 'logements_totalPlaces', '', 5, 1, ''); -- -- 08-11-2022 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES('', 'nombreOccupant', 'Nombre occupants', 1, 9, 255, 'nombreOccupant', '', 5, 0, ''); ALTER TABLE `statut_familial` ADD `couleur` VARCHAR(8) NULL ; UPDATE `champs_logements` SET `nom` = 'Nombre de places' WHERE `champs_logements`.`code` = 'logements_nbrLits'; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES('', 'nombreTotalOccupant', 'Nombre total occupants', 1, 3, 255, 'nombreTotalOccupant', '', 5, 0, ''); -- -- 09-11-2022 FTH -- ALTER TABLE `modes_campagne` ADD `pageValiderBtn` ENUM('creer','dupliquer','creerDupliquer','') NULL ; -- -- 10-11-2022 FTH -- ALTER TABLE `logements` ADD `dateSortieParc` DATE NULL ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_dateSortieParc', 'Date sortie parc logement', 1, 4, 100, 'dateSortieParc', '', 2, 1, 'logements'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES('', 'nombrePlacesRestantes', 'Nombre places restantes', 1, 3, 255, 'nombrePlacesRestantes', '', 5, 0, ''); -- -- 16-11-2022 LG -- UPDATE `droit_elements` SET `nom` = 'Terminologie' WHERE `droit_elements`.`unique_name` = 'systeme-tab-fiche-resident'; -- -- 22-11-2022 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Mode logement : mise en sommeil logement', 'liste-btn-cacher-logements', 'bouton', '1'); -- -- 24-11-2022 FTH -- INSERT INTO `type_email` (`type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`) VALUES ('Configurable', NULL, 1, NULL, NULL, 0, 'configurable'); ALTER TABLE `modeles_email` ADD `idCampagneDest` INT NULL ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_cacher', 'Sommeil', 1, 4, 100, 'cacher', '', 8, 1, 'logements'); -- -- Structure de la table `modeles_email_conditions` -- CREATE TABLE IF NOT EXISTS `modeles_email_conditions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idChamp` int(11) NOT NULL, `idModele` int(11) NOT NULL, `typeValeur` enum('exact','interval') NOT NULL, `operateur` tinyint(4) NOT NULL, `valeurExact` varchar(255) NULL DEFAULT NULL, `valeurMin` varchar(255) NULL DEFAULT NULL, `valeurMax` varchar(255) NULL DEFAULT NULL, `champDebut` int(11) NULL DEFAULT NULL, `champFin` int(11) NULL DEFAULT NULL, `idChamp2` int(11) NULL DEFAULT NULL, `unite` varchar(20) NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; -- -- 28-11-2022 FTH -- ALTER TABLE `modeles_email` ADD `etatResa` VARCHAR(255) NULL ; -- -- 06-12-2022 -- CREATE TABLE `logements_pole` ( `id` INT(11) NOT NULL AUTO_INCREMENT , `pole` VARCHAR(255) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `logements_type_dispositif` ( `id` INT(11) NOT NULL AUTO_INCREMENT , `typeDispositif` VARCHAR(255) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `logements_secteur` ( `id` INT(11) NOT NULL AUTO_INCREMENT , `secteur` VARCHAR(255) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; ALTER TABLE `logements` ADD `idPole` TINYINT(4) NULL DEFAULT NULL AFTER `dateSortieParc`, ADD `idTypeDispositif` TINYINT(4) NULL DEFAULT NULL AFTER `idPole`, ADD `idSecteur` TINYINT(4) NULL DEFAULT NULL AFTER `idTypeDispositif`; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logements_pole', 'Pôle', '1', '4', '100', 'idPole', 'logements_pole', '3', '1', 'logements'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logements_type_dispositif', 'Type de dispositif', '1', '4', '100', 'idTypeDispositif', 'logements_type_dispositif', '3', '1', 'logements'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logements_secteur', 'Secteur', '1', '4', '100', 'idSecteur', 'logements_secteur', '3', '1', 'logements'); -- -- 14-12-2022 FTH -- ALTER TABLE `programme_campagne` ADD `dateDepartDyn` TINYINT(1) NULL DEFAULT '0' , ADD `dateDepartMinDyn` VARCHAR(50) NULL , ADD `dateDepartMaxDyn` VARCHAR(50) NULL ; -- -- 15-12-2022 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'etatPrestationSuivis', 'Etat prestation suivis', '6', '30', '100', 'etatPrestationSuivis', '', '1', '0', null); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Désarchivage suivis', 'liste-btn-desarchive-suivis', 'bouton', '1'); -- -- 19-12-2022 FTH -- -- ALTER TABLE `configuration` ADD `extensionPJMails` VARCHAR(255) NULL DEFAULT 'pdf' ; -- -- 02-01-2023 LG -- ALTER TABLE `configuration` ADD `extensionPJMails` VARCHAR(255) NULL DEFAULT 'pdf' ; -- -- 04-01-2023 FTH -- ALTER TABLE `type_prestation` ADD `paiementDirect` TINYINT(1) NULL DEFAULT '0' ; -- -- 05-01-2023 FTH -- ALTER TABLE `configuration` ADD `codeOrganisme` VARCHAR(20) NULL , ADD `siteOrganisme` VARCHAR(20) NULL ; -- -- 12-01-2023 FTH -- ALTER TABLE `config_acces` ADD `tailleMinMdp` TINYINT NULL ; -- -- 16-01-2023 FTH -- ALTER TABLE reservations ADD INDEX idMenage (idMenage); ALTER TABLE reservations ADD INDEX idStatutFamilial (idStatutFamilial); -- -- 16-01-2023 JL -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Secteurs', 'systeme-tab-secteurs', 'menu', '7', '0', NULL); ALTER TABLE `configuration` ADD `activerSecteursLogement` ENUM('0','1') NOT NULL DEFAULT '0' AFTER `portailResidentAvecAdresseResidence`; -- -- 19-01-2023 AK -- ALTER TABLE `suivis_listes` CHANGE `deleted` `deleted` TINYINT(1) NOT NULL DEFAULT '0'; -- -- 31-01-2023 FTH : on prend le meme param pour les long sejour, et le remet par defaut = 1 -- ALTER TABLE `modes_campagne` CHANGE `activerIntercontratCS` `activerIntercontratCS` TINYINT(1) NULL DEFAULT '1'; UPDATE `modes_campagne` SET `activerIntercontratCS` = 1 WHERE `idCampagne` IN( SELECT `campagnes`.`id` FROM `campagnes` LEFT JOIN `campagnes_type` ON `campagnes`.`type` = `campagnes_type`.`id` WHERE `campagnes_type`.`code` NOT IN('dp','cs') OR `campagnes_type`.`code` IS NULL OR `campagnes_type`.`code` ='' ); -- -- 07-02-2023 FTH -- ALTER TABLE actions_conditions ADD INDEX idAction (idAction); -- -- 08-02-2023 FTH -- ALTER TABLE `formulaires` ADD `cacherFormCreationCompte` TINYINT(1) NULL DEFAULT '0' ; -- -- 10-02-2023 JL -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'secteurLogement', 'Secteur', '2', '0', '100', 'idSecteur', 'logements_secteur', '3', '1', 'logements'); ALTER TABLE `reservations` ADD `adresseSortie` VARCHAR(255) NULL DEFAULT NULL AFTER `dateRelanceDemande`; ALTER TABLE `edl_parametres` ADD `chgtDateDepartEdlSortant` ENUM('0','1') NOT NULL DEFAULT '0' AFTER `autorisation_checkout`; ALTER TABLE `edl_parametres` ADD `chgtAdresseSortieEdlSortant` ENUM('0','1') NOT NULL DEFAULT '0' AFTER `chgtDateDepartEdlSortant`; -- -- 10-02-2023 FTH -- ALTER TABLE `configuration` ADD `afficherLogoExport` TINYINT(1) NOT NULL DEFAULT '1' COMMENT 'Afficher le logo dans les export excel de listes' , ADD `afficherTitreListeExport` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Afficher le titre de la liste dans les export excel de listes' ; -- -- 17-02-2023 FTH -- ALTER TABLE `logements` ADD `nomGroupement` VARCHAR(255) NULL ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_nomGroupement', 'Nom de regroupement', 1, 2, 100, 'nomGroupement', '', 1, 1, 'logements'); ALTER TABLE `modes_campagne` ADD `pageValiderBtnFicheUsager` TINYINT(1) NULL DEFAULT '0' COMMENT 'Afficher le bouton pour accéder à la fiche usager à la fin de la demande' ; -- -- 21-02-2023 JL -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'DP Gestion', 'systeme-tab-dp-gestion', 'menu', '7', '0', NULL); -- -- 28-02-2023 FTH -- ALTER TABLE `modes_campagne` ADD `chgLogArchiverAncienDossier` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Changement logement avec archivage de l ancien dossier' ; -- -- 03-03-2023 FTH -- ALTER TABLE `champs_formulaires` CHANGE `idCss` `idCss` VARCHAR(300) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -- -- 06-03-2023 FTH -- ALTER TABLE `modes_campagne` ADD `nomMenageDateSortie` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Nom ménage : prise en compte date de sortie' ; ALTER TABLE `modes_campagne` ADD `nomMenageResidence` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Nom ménage : prise en compte résidences' ; -- -- 07-03-2023 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idReservationSig', 'Numéro de séjour API SIG', '2', '10', '100', 'idReservationSig', '', '1', '0', 'reservations_apisig'); -- -- 08-03-2023 FTH -- ALTER TABLE `configuration` ADD `afficherDetailResa` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Afficher le détail de la réservation dans l espace résident menu réservation' ; -- -- 17-03-2023 FTH -- INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'residences_idPMS', 'Id PMS résidence', 3, 1, 100, 'idPMS', '', 1, 1, 'residences'); -- -- 20-03-2023 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Fiche logement : modifier le log_no et log_sno', 'fiche-logement-modifier-logno', 'bouton', '1'); -- -- 21-03-2023 FTH -- ALTER TABLE catalogue_listes CHANGE deleted deleted TINYINT(1) NOT NULL DEFAULT '0'; -- -- 24-03-2023 FTH -- ALTER TABLE `configuration` ADD `captchaSecretKey` VARCHAR(255) NULL , ADD `captchaPublicKey` VARCHAR(255) NULL ; ALTER TABLE `formulaires` ADD `captcha` TINYINT(1) NULL DEFAULT '0' ; ALTER TABLE `batiments` ADD `ordrePlanning` MEDIUMINT NOT NULL DEFAULT '0' ; -- -- 07-04-2023 FTH -- -- -- Structure de la table `champs_formulaires_loge` -- CREATE TABLE IF NOT EXISTS `champs_formulaires_loge` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libelle` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `classCss` varchar(255) DEFAULT NULL, `idCss` varchar(300) NOT NULL, `options` text, `description` text, `obligatoire` tinyint(1) NOT NULL, `equivalentSql` varchar(255) DEFAULT NULL, `active` int(1) NOT NULL, `sourceListe` varchar(100) DEFAULT NULL, `ordre` tinyint(4) NOT NULL, `column` tinyint(1) NOT NULL DEFAULT '1', `row` int(2) NOT NULL, `idType` tinyint(4) NOT NULL, `idSousType` set('avecPluginPhoto','affichageMiniature') DEFAULT NULL, `idFormulaire` int(11) NOT NULL, `nature` enum('standard','libre','texte') NOT NULL DEFAULT 'standard', `tailleColumn` tinyint(1) NOT NULL DEFAULT '1', `tailleRow` tinyint(1) NOT NULL DEFAULT '1', `nomXML` varchar(200) DEFAULT NULL, `size` smallint(6) DEFAULT NULL, `acces` tinyint(1) NOT NULL DEFAULT '1', `modifiable` tinyint(1) NOT NULL DEFAULT '1', `equivalentWS` varchar(255) DEFAULT NULL, `renouvelable` tinyint(1) NOT NULL DEFAULT '0', `valeurMin` int(11) DEFAULT '0', `valeurMax` int(11) DEFAULT '0', `formule` varchar(255) DEFAULT NULL, `masquerLib` tinyint(4) DEFAULT '0', `aligner` varchar(20) DEFAULT NULL, `afficherInfos` tinyint(4) DEFAULT '0', `valeurBredea` varchar(100) DEFAULT NULL, `showAsSelectItem` tinyint(1) DEFAULT NULL, `itemsRequiredToActivateSelect2` smallint(6) DEFAULT '10', `idParent` int(11) DEFAULT NULL, `dupliquerValeur` tinyint(1) DEFAULT '1' COMMENT 'Copier la valeur de ce ce champs lors de duplication', `formatFormule` char(1) DEFAULT NULL, `reprendreValeur` tinyint(1) DEFAULT '1' COMMENT 'Copier la valeur de ce ce champs lors de la création de nouveau logement', `valeurParDefaut` varchar(255) DEFAULT NULL, `afficherUnite` tinyint(1) DEFAULT NULL, `uniteDuree` enum('day','month') DEFAULT NULL, `styleCss` text, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), KEY `sourceListe` (`sourceListe`), KEY `idType` (`idType`), KEY `idFormulaire` (`idFormulaire`), KEY `equivalentSql` (`equivalentSql`), KEY `name` (`name`), KEY `idSousType` (`idSousType`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `champs_loge_dateinterval` -- CREATE TABLE IF NOT EXISTS `champs_loge_dateinterval` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dateMin` enum('unlimited','limited') NOT NULL DEFAULT 'unlimited', `dateMax` enum('unlimited','limited','dateNow') NOT NULL DEFAULT 'unlimited', `nombreJoursMin` int(11) NOT NULL, `nombreJoursMax` int(11) NOT NULL, `idChamp` int(11) NOT NULL, `uniteMin` enum('day','week','month','year') DEFAULT NULL, `uniteMax` enum('day','week','month','year') DEFAULT NULL, `dateMinFixe` date DEFAULT NULL, `dateMaxFixe` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `formulaires_loge` -- CREATE TABLE IF NOT EXISTS `formulaires_loge` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `nbrCols` tinyint(1) NOT NULL DEFAULT '3', `active` tinyint(1) NOT NULL DEFAULT '0', `etat` TINYINT(1) NOT NULL DEFAULT '0', `ordre` tinyint(4) NOT NULL DEFAULT '0', `deleted` TINYINT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Structure de la table `formulaires_loge_profile` -- CREATE TABLE IF NOT EXISTS `formulaires_loge_profile` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idFormulaire` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Formulaires logements', 'zfcadmin/formulairesloge', 'menu', '4'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Formulaires logements', 'formulairesloge', 'Reservation\\Controller\\FormulairesLoge', 'index', '30'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logements_idBatiment', 'Batiment logement', '1', '1', '100', 'idBatiment', 'batiments', '3', '1', 'logements'); ALTER TABLE `configuration` ADD `deplacerChampsFormulairesLoge` TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE `champs_association` ADD `idFormulaireLoge` MEDIUMINT NULL ; UPDATE `champs_logements` SET `sourceListe` = 'etat_logement',`table` = 'logements' WHERE `champs_logements`.`code` = 'logements_etat'; UPDATE `champs_logements` SET `idTypeHtml` = '7' WHERE `champs_logements`.`code` = 'logements_commentaire'; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logements_noConvention', 'No convention', '1', '2', '100', 'noConvention', '', '1', '1', 'logements'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logements_dateConvention', 'Date convention', '1', '2', '100', 'dateConvention', '', '2', '1', 'logements'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logements_tampon', 'Logement tampon', '1', '2', '100', 'tampon', '', '8', '1', 'logements'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'logements_collective', 'Logement collective', '1', '2', '100', 'collective', '', '8', '1', 'logements'); -- -- 17-04-2023 JL -- ALTER TABLE `residences` ADD `typeSite` VARCHAR(4) NULL DEFAULT NULL AFTER `typeAccesLoge`; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'typeSite', 'Type de site', '2', '18', '100', 'typeSite', '', '1', '0', 'residences'); -- -- 18-04-2023 FTH -- INSERT INTO `type_actions` (`id`, `type`, `ordre`) VALUES (5, 'Filtrer les éléments de listes', NULL); -- 25-04-2023 FTH -- ALTER TABLE `modes_campagne` ADD `afficherSuivisParIdLocataire` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Afficher les suivis dans la fiche usager par idLocataire' ; -- -- 02-05-2023 FTH -- ALTER TABLE `modes_campagne` ADD `majEtatResaEnParti` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Passer les dossiers en parti quand on maj la date depart' ; -- -- 03-05-2023 FTH -- ALTER TABLE `logements` CHANGE `log_no` `log_no` INT NULL DEFAULT NULL; ALTER TABLE `logements` CHANGE `log_sno` `log_sno` INT NULL DEFAULT NULL; -- -- 04-05-2023 FTH -- ALTER TABLE `prelevements_sepa` ADD `mandatSEPA` VARCHAR(255) NULL , ADD `statutDoc_mandatSEPA` TINYINT NULL ; ALTER TABLE `prelevements_sepa` ADD `finValidite_mandatSEPA` DATE NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'mandatSEPA', 'Document mandat SEPA', '2', '30', '100', 'mandatSEPA', '', '4', '0', 'prelevements_sepa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'statutDoc_mandatSEPA', 'Statut document mandat SEPA', '2', '30', '100', 'statutDoc_mandatSEPA', 'statut_docs', '3', '0', 'prelevements_sepa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'finValidite_mandatSEPA', 'Date de fin validité document mandat SEPA', '2', '30', '100', 'finValidite_mandatSEPA', NULL, '2', '0', 'prelevements_sepa'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Prélèvement SEPA', 'int(1)', 'prelevementSEPA', 'prelevements_sepa', NULL, '1', '8', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Jour de prélèvement SEPA', 'int(11)', 'jourPrelevementSEPA', 'prelevements_sepa', NULL, '1', '5', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Type de prélèvement SEPA', 'varchar(20)', 'typePrelevementSEPA', 'prelevements_sepa', 'type_prelevement_sepa', '1', '3', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Montant de prélèvement SEPA', 'float', 'montantPrelevementSEPA', 'prelevements_sepa', NULL, '1', '12', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Document mandat SEPA', 'varchar(255)', 'mandatSEPA', 'prelevements_sepa', NULL, '1', '4', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Statut document mandat SEPA', 'int(1)', 'statutDoc_mandatSEPA', 'prelevements_sepa', NULL, '1', '3', NULL); -- -- Structure de la table `type_prelevement_sepa` -- CREATE TABLE IF NOT EXISTS `type_prelevement_sepa` ( `id` tinyint(4) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; INSERT INTO `type_prelevement_sepa` (`id`, `nom`) VALUES (1, 'Facture'), (2, 'Solde compte'), (3, 'Montant fixe'); UPDATE `champs` SET `sourceListe` = 'type_prelevement_sepa' WHERE `champs`.`equivalentSql` = 'typePrelevementSEPA'; -- -- MAJ de champ typePrelevementSEPA la table prelevements_sepa de enum vers varchar puis tinyint : facture=>1, soldeCompte=>2, montantFixe=>3 -- ALTER TABLE `prelevements_sepa` CHANGE `typePrelevementSEPA` `typePrelevementSEPA` VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; UPDATE `prelevements_sepa` SET `typePrelevementSEPA` = '1' WHERE `prelevements_sepa`.`typePrelevementSEPA` = 'facture'; UPDATE `prelevements_sepa` SET `typePrelevementSEPA` = '2' WHERE `prelevements_sepa`.`typePrelevementSEPA` = 'soldeCompte'; UPDATE `prelevements_sepa` SET `typePrelevementSEPA` = '3' WHERE `prelevements_sepa`.`typePrelevementSEPA` = 'montantFixe'; ALTER TABLE `prelevements_sepa` CHANGE `typePrelevementSEPA` `typePrelevementSEPA` TINYINT(4) NULL DEFAULT NULL; INSERT INTO `type_modeles_docs` (`id`, `nom`, `code`, `obligatoire`, `active`, `idsResidences`, `imprimableEnLot`, `typeModele`, `sousTypeModele`, `ordre`) VALUES (NULL, 'Mandat SEPA', 'MSEPA', '1', '1', NULL, '1', 'reservation', 'unique', NULL); -- -- 17-05-2023 JL -- ALTER TABLE `user` ADD `telephone` VARCHAR(20) NULL DEFAULT NULL AFTER `email`; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'telephoneUser', 'Téléphone (Créateur)', '5', '30', '100', 'telephoneUser', NULL, '14', '1', 'user'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'emailUser', 'Email (Créateur)', '5', '30', '100', 'emailUser', NULL, '6', '1', 'user'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Téléphone (Créateur)', 'varchar(20)', 'telephoneUser', 'user', NULL, '2', '1', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Email (Créateur)', 'varchar(40)', 'emailUser', 'user', NULL, '2', '6', NULL); -- -- 17-05-2023 FTH -- ALTER TABLE `logements_listes` ADD `modeLogeGroupe` TINYINT(1) NULL DEFAULT '0' ; -- -- 18-05-2023 FTH -- ALTER TABLE `reservations` ADD `docMembreGroupe` VARCHAR(255) NULL ; -- -- 22-05-2023 JL -- ALTER TABLE `champs_demandes` ADD `afficherSiLogementCollectif` ENUM('0','1') NULL DEFAULT '0' AFTER `champCommun`; -- -- 22-05-2023 FTH -- ALTER TABLE `champs_export_comptable` ADD `valeurFixe` VARCHAR(255) NULL ; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'docMembreGroupe', 'Document groupe', '2', '36', '100', 'docMembreGroupe', '', '4', '1', 'reservations'); -- -- 24-05-2023 JL -- CREATE TABLE `comptes_d` ( `id` INT NOT NULL AUTO_INCREMENT, `idApiPms` TINYINT NOT NULL, `idResa` INT NOT NULL, `nature` VARCHAR(12) NOT NULL, `typeNature` VARCHAR(2) NOT NULL, `modeReg` VARCHAR(3) NULL, `origineTable` VARCHAR(55) NOT NULL, `origineChamp` VARCHAR(55) NULL, `origineCode` VARCHAR(55) NULL, `noFac` VARCHAR(55) NULL, `vuCpta` ENUM('0', '1') NOT NULL DEFAULT '0', `vuGest` ENUM('0', '1') NOT NULL DEFAULT '0', `vuDG` ENUM('0', '1') NOT NULL DEFAULT '0', `dateEcriture` DATE NOT NULL, `montantCredit` DOUBLE NOT NULL DEFAULT '0', `montantDebit` DOUBLE NOT NULL DEFAULT '0', `identite` VARCHAR(255) NOT NULL, `journalVente` VARCHAR(55) NULL, `cpteCpta` VARCHAR(55) NULL, `cpteAna` VARCHAR(55) NULL, `libelle` VARCHAR(255) NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; ALTER TABLE `comptes_d` ADD `idSite` VARCHAR(4) NOT NULL AFTER `libelle`; ALTER TABLE `comptes_d` ADD `idDossier` INT NOT NULL AFTER `idSite`; ALTER TABLE `comptes_d` ADD `typeRE` VARCHAR(2) NOT NULL AFTER `idDossier`; ALTER TABLE `comptes_d` ADD `numeroChambre` VARCHAR(10) NULL DEFAULT NULL AFTER `typeRE`; CREATE TABLE `logementsPMS` ( `id` INT NOT NULL AUTO_INCREMENT, `site` VARCHAR(10) NOT NULL, `nomSite` VARCHAR(255) NOT NULL, `noLoge` INT(5) NOT NULL, `snoLoge` INT(5) NOT NULL, `codeLoge` VARCHAR(255) NOT NULL, `dateDeb` DATE NOT NULL, `dateFin` DATE NULL, `type` ENUM('occupation', 'blocage') NOT NULL, `motif` VARCHAR(255) NULL, `noDoss` INT(5) NULL, `typeRE` VARCHAR(2) NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; -- -- 24-05-2023 FTH -- ALTER TABLE `export_comptable_format_struct` ADD `ligne2` TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE `champs_export_comptable` ADD `numLigne` TINYINT(1) NOT NULL DEFAULT '1' ; -- -- 30-05-2023 FTH -- ALTER TABLE choix_typelogement CHANGE idTypeLogement idTypeLogement SMALLINT UNSIGNED NOT NULL DEFAULT '0'; ALTER TABLE choix_typelogement CHANGE idBatiment idBatiment SMALLINT(4) NULL DEFAULT NULL; ALTER TABLE choix_typelogement CHANGE idResidence idResidence SMALLINT(4) NULL DEFAULT NULL; -- -- 02-06-2023 AK -- ALTER TABLE `champs_apisig` CHANGE `actionSig` `actionSig` ENUM('Value2Value','Id2Id','Id2Value','document','statutCAO') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Value2Value'; -- -- 07-06-2023 FTH -- ALTER TABLE `demandes_messages` CHANGE `userid` `userid` INT(11) NULL; -- -- 08-06-2023 FTH -- INSERT INTO `type_actions` (`id`, `type`, `ordre`) VALUES (6, 'Rendre obligatoire', NULL); -- -- 15-06-2023 FTH -- ALTER TABLE `configuration` ADD `affichageEditeurParDefaut` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 23-06-2023 FTH -- INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Champ fixe 1', 'champFixe1', '17', '0', '', '0', 'right', '', NULL, '1', '', '1'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Champ fixe 2', 'champFixe2', '18', '0', '', '0', 'right', '', NULL, '1', '', '1'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Champ fixe 1', 'champFixe1', '17', '0', '', '0', 'right', '', NULL, '1', '', '2'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Champ fixe 2', 'champFixe2', '18', '0', '', '0', 'right', '', NULL, '1', '', '2'); -- -- 27-06-2023 AK -- ALTER TABLE `type_modeles_docs` ADD `idApiSignature` TINYINT(1) NULL DEFAULT NULL AFTER `ordre`, ADD INDEX (`idApiSignature`), ADD INDEX (`active`); -- 28-06-2023 AK -- UPDATE `droit_elements` SET `nom` = 'Signature du contrat (concordnow)' WHERE `droit_elements`.`unique_name` = 'liste-btn-contrat'; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Signature de documents', 'liste-btn-signature-documents', 'bouton', '1', '0', NULL); -- -- 29-06-2023 JL -- ALTER TABLE `demandes_listes` CHANGE `deleted` `deleted` TINYINT(1) NOT NULL DEFAULT '0'; -- 03-07-2023 FTH -- ALTER TABLE `modes_campagne` ADD `champsObligatoiresFormOuvert` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Champs obligatoire formulaire ouvert' ; -- -- 05-07-2023 JL -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Gestion Ménages', 'systeme-tab-gestion-menages', 'menu', '7', '0', NULL); ALTER TABLE `menages` ADD `deleted` TINYINT(1) NOT NULL DEFAULT '0' AFTER `nom`; -- -- 08-07-2023 AK -- ALTER TABLE `documents` ADD `signIdApi` TINYINT(1) NULL DEFAULT NULL AFTER `signDocId`, ADD INDEX (`signIdApi`); ALTER TABLE `documents` ADD `signIdRequest` VARCHAR(255) NULL DEFAULT NULL AFTER `signIdApi`, ADD INDEX (`signIdRequest`); ALTER TABLE `documents` ADD INDEX (`signDocId`); ALTER TABLE `documents` ADD INDEX (`signState`); ALTER TABLE `documents` ADD INDEX (`idTypeDocument`); INSERT INTO `etat_contrat` (`id`, `nom`) VALUES ('101', 'Brouillon'), ('102', 'En cours'), ('103', 'Signé'), ('104', 'Supprimé'), ('105', 'Expiré'), ('106', 'Annulé'), ('107', 'Approuvé'), ('108', 'Rejeté'); -- -- 09-07-2023 AK -- INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`, `idFormEtatTravaux`) VALUES (NULL, 'Demande de signature de contrat', NULL, '1', NULL, NULL, '0', 'doc_a_signer_CTHES', NULL); -- -- 10-07-2023 JL -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateEtatTravauxPrisEnCompte', 'Date État Travaux - Pris en compte', '2', '30', '100', 'dateEtatTravauxPrisEnCompte', '', '2', '0', 'demandes_etat_travaux_historique'); INSERT INTO `champs` ( `id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table` ) VALUES ( NULL, 'dateEtatTravauxEnCoursDeRea', 'Date État Travaux - En cours de réalisation', '2', '30', '100', 'dateEtatTravauxEnCoursDeRea', '', '2', '0', 'demandes_etat_travaux_historique'); INSERT INTO `champs` ( `id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table` ) VALUES ( NULL, 'dateEtatTravauxTermine', 'Date État Travaux - Terminé', '2', '30', '100', 'dateEtatTravauxTermine', '', '2', '0', 'demandes_etat_travaux_historique'); INSERT INTO `champs` ( `id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table` ) VALUES ( NULL, 'dateEtatTravauxInterImpossible', 'Date État Travaux - Intervention impossible', '2', '30', '100', 'dateEtatTravauxInterImpossible', '', '2', '0', 'demandes_etat_travaux_historique'); -- -- 17-07-2023 FTH -- ALTER TABLE `export_comptable_format_struct` ADD `cumulLigne1` TINYINT(1) NOT NULL DEFAULT '1' ; ALTER TABLE `export_comptable_format_struct` ADD `cumulLigne2` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 19-07-2023 FTH -- INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Libellé compte tiers + compte comptable', 'glib2', '19', '0', 'fplan', '0', 'right', '', NULL, '1', '', '1'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Libellé compte tiers + compte comptable', 'glib2', '19', '0', 'fplan', '0', 'right', '', NULL, '1', '', '2'); UPDATE `champs_export_comptable` SET `nom` = 'Le libellé de l''écriture' WHERE `champs_export_comptable`.`nom_bredea` = 'hglib'; -- -- 24-07-2023 FTH -- ALTER TABLE `logements` ADD `numeroClient` VARCHAR(255) NULL ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_numeroClient', 'Numéro client', 1, 2, 100, 'numeroClient', '', 1, 1, 'logements'); -- -- 25-07-2023 FTH -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'date demande réservation', 'date', 'dateDemandeReservation', 'reservations', NULL, '4', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Etat de réservation', 'int(11)', 'etat', 'reservations', 'etat_reservation', '1', '3', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Pas de facture', 'varchar(10)', 'pasDeFacture', 'reservations', NULL, '1', '8', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Type usager', 'varchar(10)', 'typre', 'reservations', NULL, '1', '3', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Délogement interdit', 'varchar(10)', 'delogementInterdit', 'reservations', NULL, '1', '8', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Paiement en virement', 'varchar(10)', 'methodePaiement', 'reservations', NULL, '1', '8', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Commentaire virement', 'varchar(255)', 'paiementComment', 'reservations', NULL, '2', '7', NULL); -- -- 26-07-2023 FTH -- ALTER TABLE `configuration` ADD `affichageInfosCategorieDoc` TINYINT(1) NOT NULL DEFAULT '0' ; -- 01-08-2023 FTH -- ALTER TABLE `modes_campagne` ADD `afficherToutLesDocUsager` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Afficher tout les documents des dossiers usager dans la fiche usager' ; -- -- 02-08-2023 AK -- CREATE TABLE IF NOT EXISTS `api_signature_modeles_docs` ( `idModeleDoc` smallint(5) unsigned NOT NULL, `idApiSignature` smallint(5) unsigned NOT NULL, `idResidence` smallint(5) unsigned NOT NULL, `dureeValidite` int(5) unsigned DEFAULT NULL, `avecParaphes` tinyint(1) DEFAULT NULL, `avecCachet` tinyint(1) DEFAULT NULL, `cachet` varchar(1000) DEFAULT NULL, `signataires` varchar(1000) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `api_signature_modeles_docs` ADD PRIMARY KEY (`idModeleDoc`,`idApiSignature`,`idResidence`) USING BTREE, ADD KEY `idModeleDoc` (`idModeleDoc`), ADD KEY `idApiSignature` (`idApiSignature`), ADD KEY `idResidence` (`idResidence`); -- -- 04-08-2023 FTH -- ALTER TABLE suivis ADD INDEX idLogement (idLogement); ALTER TABLE champs_suivis ADD INDEX equivalentSql (equivalentSql); ALTER TABLE champs_suivis ADD INDEX sourceListe (sourceListe); ALTER TABLE champs_suivis ADD INDEX idTypeSuivis (idTypeSuivis); ALTER TABLE `logements` ADD `trimestreIRL` TINYINT NULL , ADD `repetitionVoie` TINYINT NULL , ADD `complementAdresse` VARCHAR(255) NULL , ADD `commentaireAdresse` TEXT NULL , ADD `coordoneeGPS` VARCHAR(255) NULL , ADD `motifResiliation` SMALLINT NULL , ADD `pjResiliation` VARCHAR(255) NULL , ADD `commentaireResiliation` TEXT NULL ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_trimestreIRL', 'Trimestre IRL', 1, 2, 100, 'trimestreIRL', 'trimestre_irl', 3, 1, 'logements'), (Null, 'logements_repetitionVoie', 'Répétition voie', 1, 2, 100, 'repetitionVoie', 'repetition_voie', 3, 1, 'logements'), (Null, 'logements_complementAdresse', 'Complement adresse', 1, 2, 100, 'complementAdresse', '', 1, 1, 'logements'), (Null, 'logements_commentaireAdresse', 'Commentaire adresse', 1, 2, 100, 'commentaireAdresse', '', 7, 1, 'logements'), (Null, 'logements_coordoneeGPS', 'Coordonée GPS', 1, 2, 100, 'coordoneeGPS', '', 1, 1, 'logements'), (Null, 'logements_motifResiliation', 'Motif résiliation', 1, 2, 100, 'motifResiliation', 'motif_resiliation', 3, 1, 'logements'), (Null, 'logements_pjResiliation', 'Pièce jointe résiliation', 1, 2, 100, 'pjResiliation', '', 1, 1, 'logements'), (Null, 'logements_commentaireResiliation', 'Commentaire résiliation', 1, 2, 100, 'commentaireResiliation', '', 7, 1, 'logements'); -- -- Structure de la table `trimestre_irl` -- CREATE TABLE IF NOT EXISTS `trimestre_irl` ( `id` SMALLINT NOT NULL, `nom` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Structure de la table `repetition_voie` -- CREATE TABLE IF NOT EXISTS `repetition_voie` ( `id` tinyint(4) NOT NULL, `nom` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Structure de la table `motif_resiliation` -- CREATE TABLE IF NOT EXISTS `motif_resiliation` ( `id` SMALLINT NOT NULL, `nom` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 07-08-2023 FTH -- -- -- Structure de la table `modeles_email_listes` -- CREATE TABLE IF NOT EXISTS `modeles_email_listes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idListe` int(11) NOT NULL, `modeListe` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `idModele` (`idModele`,`idListe`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 05-08-2023 AK -- ALTER TABLE `api_signature_modeles_docs` ADD `rappelsAutoIntervalle` TINYINT UNSIGNED NULL DEFAULT NULL AFTER `dureeValidite`; ALTER TABLE `api_signature_modeles_docs` ADD `rappelsAutoMax` TINYINT UNSIGNED NULL DEFAULT NULL AFTER `rappelsAutoIntervalle`; -- -- 06-08-2023 AK -- ALTER TABLE `api_signature_modeles_docs` ADD `nomRequete` VARCHAR(100) NULL DEFAULT NULL AFTER `idResidence`; -- -- 16-08-2023 AK -- CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `valeurs_dynamiques_avec_champs` AS select `vd`.`id` AS `id`,`vd`.`valeur` AS `valeur`,`vd`.`idChamp` AS `idChamp`,`vd`.`idLocataire` AS `idLocataire`,`vd`.`statutDoc` AS `statutDoc`,`vd`.`idReservation` AS `idReservation`,`vd`.`finValidite` AS `finValidite`,`vd`.`idDp` AS `idDp`,`cf`.`name` AS `nameChamp`,`cf`.`equivalentSql` AS `equivalentSql`,`cf`.`idType` AS `idTypeChamp`,`cf`.`idFormulaire` AS `idFormulaire`,`f`.`idCampagne` AS `idCampagne` from ((`valeurs_dynamiques` `vd` left join `champs_formulaires` `cf` on(((`vd`.`idChamp` = `cf`.`id`) and (`cf`.`active` = 1)))) left join `formulaires` `f` on(((`f`.`id` = `cf`.`idFormulaire`) and (`f`.`active` = 1)))); -- -- 21-08-2023 AK -- ALTER TABLE `champs_formulaires` ADD INDEX `active` (`active`); -- -- 22-08-2023 AK -- ALTER TABLE `prestations_revision` ADD `montantFixe` FLOAT NULL DEFAULT NULL AFTER `tauxRevision`; -- -- 25-08-2023 JL -- CREATE TABLE `api_stats` ( `id` INT NULL AUTO_INCREMENT, `adresse` VARCHAR(255) NULL, `modeExtraction` ENUM('tables', 'fichiers') NOT NULL DEFAULT 'tables', `cheminDest` VARCHAR(255) NULL DEFAULT NULL, `user` VARCHAR(50) NULL DEFAULT NULL, `mdp` VARCHAR(50) NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8; INSERT INTO `api_stats` (`id`, `adresse`, `modeExtraction`, `cheminDest`, `user`, `mdp`) VALUES (1, NULL, 'tables', NULL, NULL, NULL); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'API Stats', 'systeme-tab-api-stats', 'menu', '7', '0', NULL); -- -- 24-08-2023 FTH -- ALTER TABLE `configuration` ADD `affichageBtnEnvoisMailDocument` TINYINT(1) NOT NULL DEFAULT '0' ; INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`, `idFormEtatTravaux`) VALUES (NULL, 'Documents en pièces jointes', NULL, '1', NULL, NULL, '0', 'docs_en_pj', NULL); -- -- 28-08-2023 FTH -- ALTER TABLE `residences` ADD `horsConsolidation` TINYINT(1) NULL DEFAULT '0' ; -- -- 31-08-2023 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Onglet documents : envois de mail', 'fiche-usager-envois-docs', 'bouton', '1'); -- -- 01-09-2023 JL -- ALTER TABLE `campagnes` ADD `cheminStats` VARCHAR(255) NULL DEFAULT NULL AFTER `edlCourtSejour`; -- -- 01-09-2023 FTH -- ALTER TABLE `champs_formulaires_loge` ADD `champCommun` TINYINT(1) NULL DEFAULT '1' ; UPDATE `champs_formulaires_loge` SET `champCommun` = '0' WHERE `champs_formulaires_loge`.`name` IN('nom','nomEn','numero','log_no','log_sno','idPMS','idEtat'); -- -- 13-10-2023 LD -- ALTER TABLE droit_elements ADD icon varchar(50); -- -- 16-10-2023 LD -- ALTER TABLE configuration ADD typeAffichageOngletsMenuFicheLocataire varchar(5) NOT NULL DEFAULT 'both'; -- -- 20-10-2023 LD -- ALTER TABLE configuration ADD newFicheClientModal TINYINT(1) NOT NULL DEFAULT '0'; -- -- 11-09-2023 JL -- ALTER TABLE `configuration` ADD `limitNewChampDateMin` DATE NULL DEFAULT NULL AFTER `affichageBtnEnvoisMailDocument`; ALTER TABLE `configuration` ADD `limitNewChampDateMax` DATE NULL DEFAULT NULL AFTER `limitNewChampDateMin`; ALTER TABLE `configuration` ADD `choixAfficherLogePlanning` ENUM('numero','nom','numeroEtNom') NULL DEFAULT 'numero' AFTER `limitNewChampDateMax`; -- -- 12-09-2023 FTH -- ALTER TABLE `champs_formulaires` ADD `idChampCommun` INT NULL ; ALTER TABLE `config_modeles_docs` CHANGE `idResidence` `idResidence` SMALLINT NOT NULL DEFAULT '0'; -- -- 21-09-2023 AK -- ALTER TABLE `prelevements_sepa` CHANGE `idReservation` `idReservation` INT UNSIGNED NOT NULL DEFAULT '0'; ALTER TABLE `prelevements_sepa` ADD `idLocataire` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `idReservation`, ADD `ibanSEPA` VARCHAR(34) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `finValidite_mandatSEPA`, ADD `bicSEPA` VARCHAR(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `ibanSEPA`, ADD `domiciliationSEPA` VARCHAR(40) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `bicSEPA`, ADD `dateMandatSEPA` DATE NULL DEFAULT NULL AFTER `domiciliationSEPA`, ADD `rumSEPA` VARCHAR(35) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `dateMandatSEPA`; ALTER TABLE `prelevements_sepa` ADD KEY `idReservation` (`idReservation`), ADD KEY `idLocataire` (`idLocataire`); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'ibanSEPA', 'IBAN pour SEPA', '2', '30', '34', 'ibanSEPA', NULL, '15', '0', 'prelevements_sepa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'bicSEPA', 'BIC pour SEPA', '2', '30', '11', 'bicSEPA', NULL, '16', '0', 'prelevements_sepa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'domiciliationSEPA', 'Domiciliation SEPA', '2', '30', '40', 'domiciliationSEPA', NULL, '1', '0', 'prelevements_sepa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateMandatSEPA', 'Date Mandat SEPA', '2', '30', '10', 'dateMandatSEPA', NULL, '2', '0', 'prelevements_sepa'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'rumSEPA', 'Référence Unique Mandat SEPA', '2', '30', '35', 'rumSEPA', NULL, '1', '0', 'prelevements_sepa'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'IBAN pour SEPA', 'varchar(34)', 'ibanSEPA', 'prelevements_sepa', NULL, '1', '15', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'BIC pour SEPA', 'varchar(11)', 'bicSEPA', 'prelevements_sepa', NULL, '1', '16', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Domiciliation SEPA', 'varchar(40)', 'domiciliationSEPA', 'prelevements_sepa', NULL, '1', '1', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date Mandat SEPA', 'date', 'dateMandatSEPA', 'prelevements_sepa', NULL, '1', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Référence Unique Mandat SEPA', 'varchar(35)', 'rumSEPA', 'prelevements_sepa', NULL, '1', '1', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Génération de document', 'button', 'generationDocument', '', NULL, 1, 22, NULL); INSERT INTO `type_champs_sql` (`id`, `type`, `taille`) VALUES ('8', 'BUTTON', '0'); INSERT INTO `type_champs_formulaire` (`id`, `nom`, `type`, `idTypeSql`) VALUES ('22', 'Bouton génération de document', 'Button', '8'); -- -- 27-09-2023 AK -- ALTER TABLE `configuration` ADD `portailResidentAvecOngletReservations` TINYINT(1) NOT NULL DEFAULT '1' AFTER `portailResidentAvecAdresseResidence` , ADD `portailResidentInfosAvecPhoto` TINYINT(1) NOT NULL DEFAULT '1' AFTER `portailResidentAvecOngletReservations` , ADD `portailResidentInfosAvecAdresse` TINYINT(1) NOT NULL DEFAULT '1' AFTER `portailResidentInfosAvecPhoto` , ADD `portailResidentInfosAvecDateNaissance` TINYINT(1) NOT NULL DEFAULT '1' AFTER `portailResidentInfosAvecAdresse`; -- -- 03-10-2023 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Financier : contrôle RIB', 'financier-controle-rib', 'menu', '0'); CREATE TABLE IF NOT EXISTS `liste_state_controlerib` ( `id` int(11) NOT NULL AUTO_INCREMENT, `data` text NOT NULL, `dateFilter` text, `numberFilter` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; INSERT INTO `liste_state_controlerib` (`id`, `data`, `dateFilter`, `numberFilter`) VALUES (1, '{"filter":{"nomLocataire":{"search":"","type":"text"},"prenomLocataire":{"search":"","type":"text"},"dateArrivee":{"search":"","type":"date"},"dateDepart":{"search":"","type":"date"},"numeroChambre":{"search":"","type":"text"},"residence":{"search":"","type":"select"},"dateArriveeTheorique":{"search":"","type":"date"},"dateDepartTheorique":{"search":"","type":"date"}},"colOrder":[0,1,2,3,4,5,6,7,8,9],"order":[[2,"desc"]],"pageLength":"-1"}', NULL, NULL); ALTER TABLE `reservations` ADD `rembAuto` TINYINT(1) NULL; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'rembAuto', 'Remboursement par virement', '2', '30', '100', 'rembAuto', '', '8', '0', 'reservations'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Remboursement par virement', 'int(1)', 'rembAuto', 'reservations', NULL, '1', '8', NULL); -- -- 04-10-2023 FTH -- ALTER TABLE `logements` ADD `logeAdresse2` VARCHAR(255) NULL , ADD `logeAdresse3` VARCHAR(255) NULL ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_logeAdresse2', 'Adresse logement 2', 1, 2, 100, 'logeAdresse2', '', 1, 1, 'logements'), (Null, 'logements_logeAdresse3', 'Adresse logement 3', 1, 2, 100, 'logeAdresse3', '', 1, 1, 'logements'); INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'travaux_dateDebutTravaux', 'Date début indisponibilité', 1, 100, 100, 'dateDebutTravaux', '', 2, 1, 'logements_periode_travaux'), (Null, 'travaux_dateFinTravaux', 'Date fin indisponibilité', 1, 100, 100, 'dateFinTravaux', '', 2, 1, 'logements_periode_travaux'), (Null, 'travaux_typeTravaux', 'Type intervention', 1, 100, 100, 'typeTravaux', 'type_travaux_logement', 3, 1, 'logements_periode_travaux'), (Null, 'travaux_intervenantTravaux', 'Intervenant', 1, 100, 100, 'intervenantTravaux', '', 1, 1, 'logements_periode_travaux'), (Null, 'travaux_commentaireTravaux', 'Commentaire intervention', 1, 100, 100, 'commentaireTravaux', '', 1, 1, 'logements_periode_travaux'), (Null, 'travaux_creation_date', 'Date de création indisponibilité', 1, 100, 100, 'creation_date', '', 2, 1, 'logements_periode_travaux'), (Null, 'travaux_userid', 'Indisponibilité créés par', 1, 100, 100, 'userid', 'user', 3, 1, 'logements_periode_travaux'); -- -- 06-10-2023 JL -- ALTER TABLE `edl_article` CHANGE `nom` `nom` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `edl_article` CHANGE `nom_en` `nom_en` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 06-10-2023 FTH -- ALTER TABLE `logements` ADD `noVoie` VARCHAR(50) NULL , ADD `typeVoie` VARCHAR(255) ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_typeVoie', 'Type de voie', 1, 2, 100, 'typeVoie', '', 1, 1, 'logements'), (Null, 'logements_noVoie', 'Numéro de voie', 1, 2, 100, 'noVoie', '', 1, 1, 'logements'); Alter table `trimestre_irl` modify `id` SMALLINT AUTO_INCREMENT PRIMARY KEY; Alter table `repetition_voie` modify `id` tinyint(4) AUTO_INCREMENT PRIMARY KEY; Alter table `motif_resiliation` modify `id` SMALLINT AUTO_INCREMENT PRIMARY KEY; -- -- 09-10-2023 FTH -- ALTER TABLE `logements` ADD `conventionANAH` TINYINT(1) NULL , ADD `dpe` TINYINT NULL ; INSERT INTO `champs_logements` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (Null, 'logements_conventionANAH', 'Convention ANAH', 1, 2, 100, 'conventionANAH', '', 8, 1, 'logements'), (Null, 'logements_dpe', 'DPE', 1, 2, 100, 'dpe', 'type_dpe', 3, 1, 'logements'); -- -- Structure de la table `type_dpe` -- CREATE TABLE IF NOT EXISTS `type_dpe` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(10) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `type_dpe` (`id`, `nom`) VALUES (NULL, 'A'), (NULL, 'B'), (NULL, 'C'), (NULL, 'D'), (NULL, 'E'), (NULL, 'F'), (NULL, 'G'); INSERT INTO `motif_resiliation` (`id`, `nom`) VALUES (NULL, 'Vente'), (NULL, 'Fin de bail'), (NULL, 'Résiliation pôle AUIHL'); -- -- 12-10-2023 FTH -- INSERT INTO `repetition_voie` (`id`, `nom`) VALUES (NULL, 'Bis'), (NULL, 'Ter'), (NULL, 'Vide'); -- -- 16-10-2023 FTH -- ALTER TABLE `configuration` ADD `activerApiAdresse` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- Structure de la table `modeles_email_profile_envois` -- CREATE TABLE IF NOT EXISTS `modeles_email_profile_envois` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idProfile` varchar(255) NOT NULL, `typeEnvois` ENUM('dest','copie','copieCachee') NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 26-10-2023 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Traitement de factures', 'zfcadmin/factures', 'menu', '59'); INSERT INTO `modules` (`id`, `nom`, `route`, `controller`, `actionsR`, `ordre`) VALUES (NULL, 'Traitement de factures', 'factures', 'Reservation\\Controller\\Facturation', 'index', '30'); -- -- 03-11-2023 FTH -- CREATE TABLE IF NOT EXISTS `catalogue_type_liste` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `type` varchar(255) NOT NULL, `codeType` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `catalogue_type_liste` (`id`, `type`, `codeType`) VALUES (1, 'Archivés', 'archive'); ALTER TABLE `catalogue_listes` ADD `idTypeListe` SMALLINT NULL ; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Désarchivage catalogue', 'liste-btn-desarchive-catalogue', 'bouton', '1'); -- -- 13-11-2023 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Historique séjours', 'ficheclient/ficheHistoriqueSejours', 'menu', '99', '0', NULL); -- -- 14-11-2023 FTH -- -- Structure de la table categorie_listes CREATE TABLE IF NOT EXISTS `categorie_listes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- Structure de la table categorie_listes_dp CREATE TABLE IF NOT EXISTS `categorie_listes_dp` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `listes` ADD `idCategorie` SMALLINT NULL ; ALTER TABLE `domiciliations_listes` ADD `idCategorie` SMALLINT NULL ; -- -- 16-11-2023 FTH -- ALTER TABLE `categorie_champs` ADD INDEX `idFormulaire` (`idFormulaire`); ALTER TABLE `categorie_champs` ADD INDEX `idModele` (`idModele`); ALTER TABLE `categorie_champs` ADD INDEX `idTypeSuivis` (`idTypeSuivis`); ALTER TABLE `categorie_champs` ADD INDEX `idTypeCatalogue` (`idTypeCatalogue`); ALTER TABLE `categorie_champs` ADD INDEX `idTheme` (`idTheme`); ALTER TABLE `formulaires_profile` ADD INDEX `idFormulaire` (`idFormulaire`); ALTER TABLE `formulaires_profile` ADD INDEX `idProfile` (`idProfile`); -- -- 22-11-2023 FTH -- ALTER TABLE `reservations` CHANGE `idTypeLogementAttribue` `idTypeLogementAttribue` INT UNSIGNED NULL DEFAULT NULL; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Création dossier : affichage case à cocher Même usager', 'liste-btn-creer-dossier-checkbox', 'bouton', '1'); -- -- 05-12-2023 AAK -- ALTER TABLE `erreurs_pms` ADD `idApiPms` SMALLINT UNSIGNED NULL DEFAULT NULL AFTER `id`; ALTER TABLE `erreurs_pms` ADD KEY `idApiPms` (`idApiPms`), ADD KEY `idLocataire` (`idLocataire`), ADD KEY `idReservation` (`idReservation`); -- -- 06-12-2023 JL -- ALTER TABLE `mystats` ADD `nameChamp` VARCHAR(255) NULL DEFAULT NULL AFTER `idChamp`; ALTER TABLE `mystats` CHANGE `dateDebut` `dateDebut` DATE NULL DEFAULT NULL; ALTER TABLE `mystats` CHANGE `dateFin` `dateFin` DATE NULL DEFAULT NULL; ALTER TABLE `mystats` CHANGE `typeStat` `typeStat` ENUM('presents','entrees','sortis') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'presents'; ALTER TABLE `mystats` CHANGE `modeCalcul` `modeCalcul` ENUM('pdossiers','plogements','ndossiers') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'pdossiers'; ALTER TABLE `mystats` CHANGE `nameChamp` `nameChampLigne` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `mystats` ADD `nameChampColonne` VARCHAR(255) NULL DEFAULT NULL AFTER `nameChampLigne`; ALTER TABLE `mystats` ADD `graphique` ENUM('bar','pie','line') NULL DEFAULT NULL AFTER `nameChampColonne`; CREATE TABLE IF NOT EXISTS `mystats_filtres` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `idUser` INT NOT NULL, `dateDebut` DATE NULL, `dateFin` DATE NULL, `residences` VARCHAR(255) NULL, `typesLogement` VARCHAR(255) NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 11-12-2023 FTH -- ALTER TABLE `configuration` ADD `forcerModeFactureOuExtrait` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 12-12-2023 FTH -- ALTER TABLE `locataires` ADD `isReset` TINYINT(1) NULL ; -- -- 20-12-2023 FTH -- ALTER TABLE `type_suivi` CHANGE `type_suivi` `type_suivi` ENUM('courriers','autres','logements','participation','animation') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `catalogue_type` CHANGE `type` `type` ENUM('proprietaire','autre','animation') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`, `idFormEtatTravaux`) VALUES (NULL, 'Animation', NULL, '1', NULL, NULL, '0', 'animation', NULL); -- -- 28-12-2023 FTH -- -- -- Structure de la table `catalogue_residence` -- CREATE TABLE IF NOT EXISTS `catalogue_residence` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idCatalogue` int(11) NOT NULL, `idResidence` int(11) NOT NULL, `nbrPlaces` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `catalogues` ADD `nbrPlacesMax` INT NULL ; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`) VALUES (NULL, 'Nombre de places max animation', 'int(11)', 'nbrPlacesMax', 'catalogues', NULL, 2, 5); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'nbrPlacesMax', 'Nombre de palces max catalogue', '13', '30', '100', 'nbrPlacesMax', '', '5', '1', 'catalogues'); -- -- 02-01-2024 FTH -- -- -- Structure de la table `modeles_email_animation` -- CREATE TABLE IF NOT EXISTS `modeles_email_animation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idModele` int(11) NOT NULL, `idTypeSuivis` int(11) NOT NULL, `idCatalogue` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ALTER TABLE `configuration` ADD `cryptKey` VARCHAR(255) NULL ; UPDATE `configuration` SET `cryptKey` = 'Wl_*87gK-xqB]@iR' WHERE `configuration`.`id` = 1; -- -- 05-01-2024 AAK -- ALTER TABLE `reservations` ADD `alternance` TINYINT UNSIGNED NULL DEFAULT NULL AFTER `rembAuto`, ADD `dateFinAlternance` DATE NULL DEFAULT NULL AFTER `alternance`, ADD INDEX (`alternance`), ADD INDEX (`dateFinAlternance`); CREATE TABLE IF NOT EXISTS `alternances` ( `id` smallint(6) NOT NULL, `nom` varchar(255) NOT NULL, `code` varchar(50) NOT NULL) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; ALTER TABLE `alternances` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `code` (`code`); INSERT INTO `alternances` (`id`, `nom`, `code`) VALUES (1, 'Non', 'non'), (2, '1ere', '1ere'), (3, 'Suivante', 'suivant'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'dateFinAlternance', 'Date fin alternance', '2', '22', '100', 'dateFinAlternance', '', '2', '0', 'reservations'); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'alternance', 'Alternance', '2', '40', '250', 'alternance', 'alternances', '3', '0', 'reservations'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date fin alternance', 'date', 'dateFinAlternance', 'reservations', NULL, '4', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Alternance', 'tinyint', 'alternance', 'reservations', 'alternances', '1', '3', NULL); -- -- 09-01-2024 FTH -- ALTER TABLE catalogue_listes CHANGE idTypeListe idTypeListe SMALLINT(6) NULL DEFAULT '0'; -- -- 15-01-2024 FTH -- ALTER TABLE `modes_campagne` ADD `nomMenageCampagne` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Nom ménage : prise en compte campagne' ; -- -- 26-01-2024 AAK -- ALTER TABLE `api_setting_signature` CHANGE `valeur` `valeur` VARCHAR(1024) NOT NULL; -- -- 06-02-2024 FTH -- ALTER TABLE `champs_catalogue` ADD `champDeTriListe` TINYINT(1) NULL ; -- -- 16-02-2024 FTH : on change la notion Refus en annulation -- UPDATE `etat_reservation` SET `nom` = 'Annulé gestionnaire',`nomEn` = 'Canceled by the manager' WHERE `etat_reservation`.`id` = 4; UPDATE `etat_reservation` SET `nom` = 'Annulé Etudiant',`nomEn` = 'Canceled by the student' WHERE `etat_reservation`.`id` = 12; UPDATE `type_liste` SET `type` = 'Demandes annulées' WHERE `type_liste`.`id` = 11; UPDATE `type_email` SET `type` = 'Annulation logement etudiant' WHERE `type_email`.`id` = 17; UPDATE `type_email` SET `type` = 'Annulation logement gestionnaire' WHERE `type_email`.`id` = 18; -- -- 01-03-2024 FTH -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'ID Usager', 'int(11)', 'idUsager', 'reservations', NULL, '1', '5', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'ID Réservation usager', 'int(11)', 'idReservationUsager', 'reservations', NULL, '1', '5', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date arrivée initiale', 'date', 'dateArriveeDemande', 'reservations', NULL, '4', '2', NULL); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date départ initiale', 'date', 'dateDepartDemande', 'reservations', NULL, '4', '2', NULL); -- -- 04-03-2024 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idResidenceCatalogue', 'Résidence lié au catalogue', '13', '120', '100', 'idResidence', 'residences', '3', '1', 'catalogue_residence'); -- 14-03-2024 FTH -- ALTER TABLE `export_comptable` ADD `ordreChamps` VARCHAR(50) NULL ; -- -- 18-03-2024 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'codeDistribuer', 'Code distribué', '2', '17', '100', 'idCode', 'codes', '3', '0', 'locataires'); -- -- 25-03-2024 FTH -- UPDATE `champs` SET `nom` = 'Résidence de rattachement' WHERE `champs`.`code` = 'idResidenceCatalogue'; ALTER TABLE `locataireAccesResa` CHANGE `dateNaissance` `dateNaissance` DATE NULL, CHANGE `lieuNaissance` `lieuNaissance` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `telephone` `telephone` VARCHAR(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `telephoneMobile` `telephoneMobile` VARCHAR(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `email` `email` VARCHAR(40) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `adresse` `adresse` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `codePostal` `codePostal` VARCHAR(6) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `ville` `ville` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `langue` `langue` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `photo` `photo` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `commentaire` `commentaire` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL, CHANGE `idPays` `idPays` TINYINT(3) UNSIGNED NULL, CHANGE `idNationalite` `idNationalite` TINYINT(3) UNSIGNED NULL, CHANGE `idProgramme` `idProgramme` TINYINT(3) UNSIGNED NULL, CHANGE `idSousProgramme` `idSousProgramme` TINYINT(3) UNSIGNED NULL, CHANGE `attestationBourse` `attestationBourse` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; ALTER TABLE `locataireAccesResa` CHANGE `sexe` `sexe` ENUM('M','F','') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 29-03-2024 FTH -- ALTER TABLE `configuration` ADD `nbrEcrituresPrec` SMALLINT NULL COMMENT 'Nombre d''écriture précédente à afficher dans les modèles facture et quittance' ; -- -- 04-04-2024 FTH -- ALTER TABLE `configuration` ADD `modifierDateArriveeDemande` TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE `configuration` ADD `modifierDateDepartDemande` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 21-04-2024 AK -- ALTER TABLE `modes_campagne` ADD `nePasEmettreFacturePourPrestationApiPms` TINYINT NULL AFTER `nomMenageCampagne`; -- -- 24-04-2024 FTH -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Numéro allocataire', 'varchar(15)', 'cafNum', 'reservations', NULL, '1', '1', NULL); -- -- 06-05-2024 JL -- CREATE TABLE IF NOT EXISTS `listes_champs_ext` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idListe` MEDIUMINT(8) NOT NULL, `idTable` MEDIUMINT(8) NOT NULL, `table` ENUM('campagnes', 'formulaires', 'champs_formulaires') NOT NULL, `champName` VARCHAR(255) NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; -- -- 06-05-2024 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Dissocier ménage', 'liste-btn-dissocier-menage', 'bouton', '1'); -- -- 08-05-2024 FTH -- INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`, `idFormEtatTravaux`) VALUES (NULL, 'Facture', NULL, '1', NULL, NULL, '0', 'facture', NULL); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`, `idFormEtatTravaux`) VALUES (NULL, 'Quittance', NULL, '1', NULL, NULL, '0', 'quittance', NULL); INSERT INTO `type_email` (`id`, `type`, `bcc`, `auto`, `idFormType`, `idFormStat`, `isAdmin`, `code`, `idFormEtatTravaux`) VALUES (NULL, 'Reçu', NULL, '1', NULL, NULL, '0', 'recu', NULL); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Compte financier : envoie de modèles par mail', 'liste-btn-account-send-mail', 'bouton', '1'); -- -- 13-05-2024 JL -- CREATE TABLE IF NOT EXISTS `mystats_financier` ( `id` int(11) NOT NULL, `nomStat` varchar(255) NOT NULL, `nameStat` enum('parcLogement','vacancesTechniques','vacancesCommerciales','chiffreAffaires','impayes','tauxRotation','suiviReglements','chiffreAffairesAnnee') NOT NULL, `graphique` enum('bar','pie','line') NOT NULL, `divTable` varchar(55) DEFAULT NULL, `imgDivGraph` varchar(55) DEFAULT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; INSERT INTO `mystats_financier` (`id`, `nomStat`, `nameStat`, `graphique`, `divTable`, `imgDivGraph`, `deleted`) VALUES (1, 'Chiffre d''affaires', 'chiffreAffaires', 'bar', 'tableCA', 'imgGraphCA', 0), (2, 'Impayés', 'impayes', 'bar', 'tableImpayes', 'imgGraphImpayes', 0), (3, 'Chiffre d''affaires sur l''année', 'chiffreAffairesAnnee', 'bar', 'tableCAannee', 'imgGraphCAannee', 0), (4, 'Suivi des règlements', 'suiviReglements', 'bar', NULL, NULL, 0), (5, 'Taux de rotation', 'tauxRotation', 'bar', 'tableTR', 'imgGraphTR', 0); ALTER TABLE `mystats_financier` ADD PRIMARY KEY (`id`); ALTER TABLE `mystats_financier` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; CREATE TABLE IF NOT EXISTS `mystats_financier_filtres` ( `id` int(11) NOT NULL, `idUser` int(11) NOT NULL, `dateDebut` date DEFAULT NULL, `dateFin` date DEFAULT NULL, `residences` varchar(255) DEFAULT NULL, `typesLogement` varchar(255) DEFAULT NULL, `secteursResidence` varchar(255) DEFAULT NULL, `typesSite` varchar(255) DEFAULT NULL, `afficherPar` enum('typesSite','secteursSite','sites') DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; INSERT INTO `mystats_financier_filtres` (`id`, `idUser`, `dateDebut`, `dateFin`, `residences`, `typesLogement`, `secteursResidence`, `typesSite`, `afficherPar`) VALUES (1, 1, '2024-01-01', '2024-01-31', NULL, NULL, NULL, NULL, 'sites'); ALTER TABLE `mystats_financier_filtres` ADD PRIMARY KEY (`id`); ALTER TABLE `mystats_financier_filtres` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; CREATE TABLE IF NOT EXISTS `residences_secteur` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; ALTER TABLE `residences` ADD `idSecteurResidence` TINYINT(4) NULL DEFAULT NULL AFTER `typeSite`; -- -- 17-05-2024 AAK -- ALTER TABLE `champs_apisig` CHANGE `actionSig` `actionSig` ENUM('Value2Value','Id2Id','Id2Value','document','statutCAO','timeOfDay') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Value2Value'; -- -- 20-05-2024 FTH -- ALTER TABLE `export_comptable_format_struct` ADD `exportState` TEXT NULL ; -- -- 22-05-2024 LDE configuration pour les push -- JL : déplacement de ce majsql du 22-03-2024 au 22-05-2024 suite à un merge -- CREATE TABLE IF NOT EXISTS historiquePush ( id int(11) NOT NULL AUTO_INCREMENT, idModele int(11) NOT NULL, idLocataire int(11) NOT NULL, interface varchar(30) NOT NULL, dateEnvoi datetime NOT NULL, emeteur varchar(150) NOT NULL, nomEmeteur varchar(255) NOT NULL, objet varchar(255) NOT NULL, idPush varchar(255) NOT NULL, errored TINYINT NOT NULL DEFAULT '0', successful TINYINT NOT NULL DEFAULT '0', converted TINYINT NOT NULL DEFAULT '0', remaining TINYINT NOT NULL DEFAULT '0', failed TINYINT NOT NULL DEFAULT '0', PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS configApiPush ( id int(11) NOT NULL AUTO_INCREMENT, app_id varchar(255) NOT NULL, rest_key varchar(255) NOT NULL, url_api varchar(255) NOT NULL, isValid tinyint not null default '0', PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS modelesPush ( id int(11) NOT NULL AUTO_INCREMENT, nomModele varchar(255) NOT NULL, idTypeModele int(11) NOT NULL, corpsModele text NOT NULL, langue varchar(2) NOT NULL, typeModele varchar(255) NOT NULL, titreModele varchar(255) NOT NULL, idCategorie int(11) NOT NULL DEFAULT '0', idCampagne int(11) NOT NULL DEFAULT '0', idUser int(11) NOT NULL DEFAULT '0', deleted tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS locPush ( id int(11) NOT NULL AUTO_INCREMENT, idLoc int(11) NOT NULL, onesignal_id varchar(255) , external_id varchar(255) , alias_id text, tags text , lastActive datetime NOT NULL, firstSession datetime NOT NULL, PRIMARY KEY (id) ); ALTER TABLE locataires ADD pushLocataireId int(11) NOT NULL DEFAULT '0'; INSERT INTO droit_elements (id, nom, unique_name, type, parent_id) VALUES (NULL, 'push', 'zfcadmin/push', 'menu', '4'); INSERT INTO modules (id, nom, route, controller, actionsR, ordre) VALUES (NULL, 'Push', 'push', 'Reservation\\Controller\\Push', 'index', '30'); ALTER TABLE configuration ADD fichePushPortailResident TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE configuration ADD pushActif TINYINT(1) NOT NULL DEFAULT '0' ; ALTER TABLE droit_elements ADD icon varchar(50); ALTER TABLE configuration ADD typeAffichageOngletsMenuFicheLocataire varchar(5) NOT NULL DEFAULT 'both'; ALTER TABLE configuration ADD newFicheClientModal TINYINT(1) NOT NULL DEFAULT '0'; ALTER TABLE droit_elements ADD icon_color varchar(10); ALTER TABLE configuration ADD colorNavHeaderFicheLocataire varchar(10) NOT NULL DEFAULT '#428BCA'; ALTER TABLE configuration ADD colorTextNavHeaderFicheLocataire varchar(10) NOT NULL DEFAULT '#ffffff'; INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`, `icon`, `icon_color`) VALUES (NULL, 'API Push', 'systeme-tab-api-push', 'menu', '7', '0', NULL, NULL, NULL); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`, `icon`, `icon_color`) VALUES (NULL, 'Push notifications', 'mode-input-push', 'champs', '26', '0', 'modePush', NULL, NULL); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`, `icon`, `icon_color`) VALUES (NULL, 'Fiche push', 'ficheclient/fichePush', 'menu', '99', '0', NULL, NULL, NULL); -- -- 23-05-2024 FTH -- UPDATE type_email SET type = 'Confirmation de date arrivée' WHERE type_email.id = 21; -- -- 27-05-2024 FTH -- ALTER TABLE `configuration` ADD `dateMajBDD` DATE NULL ; -- -- 03-06-2024 FTH -- ALTER TABLE `configuration` ADD `forcerDateEcheance` TINYINT(1) NULL DEFAULT '0' COMMENT 'Affichage date écheance dans les modèles docs si vode dans le PMS' ; ALTER TABLE `configuration` ADD `jourEcheance` VARCHAR(2) NULL DEFAULT '0' ; -- -- 03-06-2024 AAK -- ALTER TABLE `api_signature_modeles_docs` CHANGE `signataires` `signataires` VARCHAR(4000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; -- -- 07-06-2024 JL -- ALTER TABLE `user` ADD `matricule` VARCHAR(20) NULL DEFAULT NULL AFTER `username`; -- -- 12-06-2024 FTH -- ALTER TABLE `configuration` ADD `typeLogeGroupe` TINYINT(1) NULL DEFAULT '1' ; -- 13-06-2024 AAK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Mode logement : Génération GMBI', 'liste-btn-gene-gmbi-logements', 'bouton', '1', '0', NULL); -- -- 27-06-2024 FTH -- -- -- Structure de la table `export_comptable_cumuls` -- CREATE TABLE IF NOT EXISTS `export_comptable_cumuls` ( `id` int(11) NOT NULL AUTO_INCREMENT, `numLigne` tinyint(4) NOT NULL, `comptes` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 29-06-2024 FTH -- INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'N° de site', 'hgdossi_site', '30', '0', 'histog', '0', 'right', '', NULL, '1', NULL, '1'); -- -- 01-07-2024 JL -- ALTER TABLE `residences` ADD `horrairesBureaux` VARCHAR(255) NULL DEFAULT NULL AFTER `horsConsolidation`; ALTER TABLE `residences` ADD `horrairesResidents` VARCHAR(255) NULL DEFAULT NULL AFTER `horrairesBureaux`; -- -- 31-07-2024 FTH -- ALTER TABLE `documents` CHANGE `id` `id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT; -- -- 02-08-2024 FTH -- INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Date fin de contrat', 'date', 'dateDepartTheorique', 'reservations', NULL, '4', '2', NULL); -- -- 06-08-2024 FTH -- UPDATE `champs` SET `nom` = 'Date arrivée initiale' WHERE `champs`.`code` = 'dateArriveeDemande'; UPDATE `champs` SET `nom` = 'Date départ initiale' WHERE `champs`.`code` = 'dateDepartDemande'; -- -- 08-08-2024 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Fiche usager : edition de valeurs de listes', 'liste-btn-edit-liste-select', 'bouton', '1', '0', NULL); -- -- 13-08-2024 FTH -- ALTER TABLE `champs_formulaires` ADD `modifierListe` TINYINT(1) NULL DEFAULT '0' ; -- -- 15-08-2024 FTH -- ALTER TABLE `champs_suivis` ADD `modifierListe` TINYINT(1) NULL DEFAULT '0' ; -- -- 19-08-2024 FTH -- INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Code logement PMS', 'codeLogementPMS', '30', '0', '', '0', 'right', '', NULL, '1', NULL, '1'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Code logement PMS', 'codeLogementPMS', '30', '0', '', '0', 'right', '', NULL, '1', NULL, '2'); -- -- 22-08-2024 AK -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`, `icon`, `icon_color`) VALUES (NULL, 'API-REST', 'api-rest', 'menu', '0', '0', NULL, NULL, NULL); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'API-REST : creer une facture de frais (Altair)', 'api-rest-resa-creer-facture-altair', 'champs', (SELECT DE.id FROM `droit_elements` AS DE WHERE DE.unique_name='api-rest')); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'API-REST : ajouter réservation (IDFR)', 'api-rest-resa-ajouter-resa-idfr', 'champs', (SELECT DE.id FROM `droit_elements` AS DE WHERE DE.unique_name='api-rest')); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'API-REST : lecture logement de resa', 'api-rest-resa-get-logement', 'champs', (SELECT DE.id FROM `droit_elements` AS DE WHERE DE.unique_name='api-rest')); -- -- 22-08-2024 JL -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`, `icon`, `icon_color`) VALUES (NULL, 'Export Liste : Extraire des champs supplémentaires', 'liste-btn-export-liste-champs-supp', 'bouton', '1', '0', NULL, NULL, NULL); -- -- 26-08-2024 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Liste : bouton checkIn', 'liste-btn-checkin', 'bouton', '1', '0', NULL); INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`, `ordre`, `id_attr`) VALUES (NULL, 'Liste : bouton checkOut', 'liste-btn-checkout', 'bouton', '1', '0', NULL); -- -- 28-08-2024 FTH -- ALTER TABLE `catalogue_residence` ADD `rattache` TINYINT(1) NULL ; -- -- 29-08-2024 JL -- ALTER TABLE `campagnes` ADD `utiliserDpPourResa` TINYINT(1) NULL DEFAULT NULL COMMENT 'Utiliser cette campagne pour ajouter DP dans les dossiers résa' AFTER `cheminStats`; -- -- 29-08-2024 FTH -- ALTER TABLE `export_comptable_format_struct` ADD `avecGroupe` TINYINT(1) NOT NULL DEFAULT '0' ; -- -- 02-09-2024 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'resaArchive', 'Réservation Archivé', '2', '1', '0', 'archive', NULL, '8', '1', 'reservations'); -- -- 12-09-2024 FTH -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'idMenageResa', 'ID Ménage', '2', '15', '50', 'id', '', '5', '0', 'menages'); -- -- 24-09-2024 FTH -- ALTER TABLE `reservations` ADD `apl` TINYINT(1) NULL DEFAULT '0'; INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'apl', 'APL', '2', '30', '100', 'apl', '', '8', '0', 'reservations'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'APL', 'int(1)', 'apl', 'reservations', NULL, '1', '8', NULL); -- -- 27-09-2024 FTH -- ALTER TABLE `locataires` ADD `statutEtudiant` VARCHAR(30) NULL; INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Année étudiant', 'varchar(30)', 'anneeEtude', 'locataires', NULL, '1', '1', NULL); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'anneeEtude', 'Année étudiant', '1', '30', '100', 'anneeEtude', '', '1', '1', 'locataires'); INSERT INTO `champs_de_base` (`id`, `libelle`, `type`, `equivalentSql`, `tableSql`, `sourceListe`, `idTypeSql`, `idTypeHtml`, `critere`) VALUES (NULL, 'Statut étudiant', 'varchar(30)', 'statutEtudiant', 'locataires', NULL, '1', '1', NULL); INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'statutEtudiant', 'Statut étudiant', '1', '30', '100', 'statutEtudiant', '', '1', '1', 'locataires'); -- -- 01-10-2024 AK -- DROP VIEW `chargesParLogements`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `chargesParLogements` AS select `logements_to_type_charge`.`id` AS `id`,`residences`.`nom` AS `nomResidence`,`logements`.`nom` AS `nomLogement`,`charges_types`.`nomCharge` AS `nomCharge`,`charges_methodes`.`nomMethode` AS `nomMethode`,`charges_methodes`.`codeMethode` AS `codeMethode`,`logements_to_type_charge`.`idTypeCharge` AS `idTypeCharge`,`logements_to_type_charge`.`valeurTypeCharge` AS `valeurTypeCharge`,`residences`.`id` AS `idResidence`,`logements`.`id` AS `idLogement` from (((((`logements_to_type_charge` left join `logements` on((`logements`.`id` = `logements_to_type_charge`.`idLogement`))) left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) left join `charges_types` on((`charges_types`.`id` = `logements_to_type_charge`.`idTypeCharge`))) left join `charges_methodes` on((`charges_methodes`.`id` = `charges_types`.`idMethode`))) where 1 order by `residences`.`nom`,`logements`.`nom`,`charges_types`.`nomCharge` ; -- -- 02-10-2024 FTH -- ALTER TABLE `historique_mail` ADD `emailRecepteur` VARCHAR(200) NULL ; -- -- 03-10-2024 FTH -- ALTER TABLE `configuration` ADD `dateDernierPassageScript` DATETIME NULL COMMENT 'Date dernier passage du script affectationEncaissements' ; -- -- 14-10-2024 FTH -- ALTER TABLE `export_comptable_format_struct` ADD `modeAnalytique` ENUM('analytiqueCompte','analytiqueResident','analytiqueSite') NULL DEFAULT NULL ; -- -- 14-10-2024 FTH -- INSERT INTO `droit_elements` (`id`, `nom`, `unique_name`, `type`, `parent_id`) VALUES (NULL, 'Export-Comptable-Analytique', 'export-comptable-analytique', 'menu', '0'); -- -- Structure de la table `export_comptable_analytique_compte` -- CREATE TABLE IF NOT EXISTS `export_comptable_analytique_compte` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idApiPms` smallint(6) NOT NULL, `compte` varchar(20) NOT NULL, `libelleCompte` varchar(40) NOT NULL, `codeAnalytique` varchar(20) NOT NULL, `libelleAnalytique` varchar(40) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 21-10-2024 JL -- INSERT INTO `champs` (`id`, `code`, `nom`, `idTheme`, `ordre`, `taille`, `equivalentSql`, `sourceListe`, `idTypeHtml`, `afficher`, `table`) VALUES (NULL, 'commentaireEtatTravaux', 'Commentaire État Travaux', '7', '30', '100', 'commentaireEtatTravaux', '', '7', '0', 'demandes_etat_travaux_historique'); -- -- 22-10-2024 FTH -- ALTER TABLE `export_comptable_format_struct` ADD `statutResident` ENUM('codeStatut','libelleStatut') NULL DEFAULT NULL ; -- -- Structure de la table `export_comptable_analytique_site` -- CREATE TABLE IF NOT EXISTS `export_comptable_analytique_site` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idApiPms` smallint(6) NOT NULL, `codeSite` varchar(4) NOT NULL, `codeAnalytique` varchar(20) NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- 25-10-2024 AK -- DROP VIEW `listeResidencesBatimentsTypesLogementLogements`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `listeResidencesBatimentsTypesLogementLogements` AS select `residences`.`nom` AS `nomResidence`,`batiments`.`nom` AS `nomBatiment`,`logements`.`nom` AS `nomLogement`,`logements`.`numero` AS `numeroLogement`,`type_logement`.`nom` AS `nomTypeLogement`,`logements`.`id` AS `idLogement`,`batiments`.`id` AS `idBatiment`,`type_logement`.`id` AS `idTypeLogement`,`residences`.`id` AS `idResidence`,`residences_apipms`.`idApiPms` AS `idApiPms`,`residences`.`idPMS` AS `NO_ETABL`,`batiments`.`idPMS` AS `NO_BATIMENT`,`logements`.`idPMS` AS `NO_LOGT`,`type_logement`.`idPMS` AS `T_TYPE` from ((((`logements` left join `batiments` on((`batiments`.`id` = `logements`.`idBatiment`))) left join `residences` on((`residences`.`id` = `batiments`.`idResidence`))) left join `type_logement` on((`type_logement`.`id` = `logements`.`idTypeLogement`))) left join `residences_apipms` on((`residences_apipms`.`idResidence` = `residences`.`id`))) order by `residences`.`nom`,`batiments`.`nom`,`logements`.`numero` ; -- 25-10-2024 AK -- ALTER TABLE `tarifs` ADD `idResidence` SMALLINT NOT NULL DEFAULT '0' AFTER `idTypeLogement`, ADD INDEX (`idResidence`), ADD UNIQUE KEY `idCampagneIdTypeLogementIdResidence` (`idCampagne`,`idTypeLogement`,`idResidence`); DROP VIEW `listeTarifCampagneTypeLogementResidence`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `listeTarifCampagneTypeLogementResidence` AS select `T`.`idCampagne` AS `idCampagne`,`T`.`idTypeLogement` AS `idTypeLogement`,`T`.`idResidence` AS `idResidence`,`C`.`nom` AS `nomCampagne`,`TL`.`code` AS `codeTypeLogement`,`R`.`nom` AS `nomResidence`,`TP`.`idApiPms` AS `idApiPms`,`TL`.`nom` AS `nomTypeLogement`,`T`.`nom` AS `nomTarif`,`T`.`typeLogementDescription` AS `typeLogementDescriptionTarif` from ((((`tarifs` `T` left join `campagnes` `C` on((`T`.`idCampagne` = `C`.`id`))) left join `residences` `R` on((`T`.`idResidence` = `R`.`id`))) left join `type_logement` `TL` on((`TL`.`id` = `T`.`idTypeLogement`))) left join `typelogement_apipms` `TP` on((`TP`.`idTypeLogement` = `T`.`idTypeLogement`))) where 1 order by `T`.`idCampagne`,`T`.`idTypeLogement`,`T`.`idResidence`; DROP VIEW `stocksTypeLogementByBatimentResidence`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `stocksTypeLogementByBatimentResidence` AS select `B`.`idResidence` AS `idResidence`,`TB`.`idBatiment` AS `idBatiment`,`TB`.`idTypeLogement` AS `idTypeLogement`,`R`.`nom` AS `nomResidence`,`B`.`nom` AS `nomBatiment`,`TL`.`code` AS `codeTypeLogement`,`TL`.`nom` AS `nomTypeLogement`,`TB`.`nbrTypeLogement` AS `nbrTypeLogement` from (((`typelogement_batiment` `TB` left join `type_logement` `TL` on((`TL`.`id` = `TB`.`idTypeLogement`))) left join `batiments` `B` on((`B`.`id` = `TB`.`idBatiment`))) left join `residences` `R` on((`R`.`id` = `B`.`idResidence`))) where 1 order by `B`.`idResidence`,`TB`.`idBatiment`,`TB`.`idTypeLogement`; -- -- 28-10-2024 LDS -- ALTER TABLE `configuration` ADD `CWRMobile` tinyint NOT NULL DEFAULT '0' COMMENT 'Activation ou non du CWR mobile'; -- -- 07-11-2024 AK -- ALTER TABLE `tarifs` ADD `afficheGDL` BOOLEAN NOT NULL DEFAULT TRUE AFTER `idResidence`, ADD INDEX (`afficheGDL`); -- -- 19-11-2024 JL -- INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Adresse logement PMS', 'adresseLogementPMS', '13', '0', '', '0', 'right', '', NULL, '1', NULL, '1'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Adresse logement PMS', 'adresseLogementPMS', '13', '0', '', '0', 'right', '', NULL, '1', NULL, '2'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Compte client site', 'compteClientSite', '13', '0', '', '0', 'right', '', NULL, '1', NULL, '1'); INSERT INTO `champs_export_comptable` (`id`, `nom`, `nom_bredea`, `ordre`, `checked`, `table_bredea`, `taille`, `alignement`, `champRemplissage`, `format`, `champBase`, `valeurFixe`, `numLigne`) VALUES (NULL, 'Compte client site', 'compteClientSite', '13', '0', '', '0', 'right', '', NULL, '1', NULL, '2'); -- -- 27-11-2024 JL -- ALTER TABLE `mystats_financier` CHANGE `nameStat` `nameStat` ENUM('parcLogement', 'vacancesTechniques', 'vacancesCommerciales', 'chiffreAffaires', 'impayes', 'tauxRotation', 'suiviReglements', 'chiffreAffairesAnnee', 'tauxOccupationWL') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; INSERT INTO `mystats_financier` (`id`, `nomStat`, `nameStat`, `graphique`, `divTable`, `imgDivGraph`, `deleted`) VALUES (NULL, 'Taux d''occupation WL', 'tauxOccupationWL', 'bar', 'tableTOWL', 'imgGraphTOWL', '0'); CREATE TABLE `mystats_params` ( `id` TINYINT NOT NULL AUTO_INCREMENT, `activerSecteurs` ENUM('0', '1') NOT NULL DEFAULT '0', `activerTypesSite` ENUM('0', '1') NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE = InnoDB; INSERT INTO `mystats_params` (`id`, `activerSecteurs`, `activerTypesSite`) VALUES (NULL, '0', '0'); ALTER TABLE `mystats_financier` CHANGE `nameStat` `nameStat` ENUM('parcLogement', 'vacancesTechniques', 'vacancesCommerciales', 'chiffreAffaires', 'impayes', 'tauxRotation', 'suiviReglements', 'chiffreAffairesAnnee', 'tauxOccupationWL', 'tauxOccupationParMoisWL') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; INSERT INTO `mystats_financier` (`id`, `nomStat`, `nameStat`, `graphique`, `divTable`, `imgDivGraph`, `deleted`) VALUES (NULL, 'Taux d''occupation par mois WL', 'tauxOccupationParMoisWL', 'bar', 'tableTOparMoisWL', 'imgGraphTOparMoisWL', '0');