Subversion Repositories eFlore/Applications.cel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 2756 → Rev 2757

/branches/v2.23-rouleau/doc/bdd/2014-11_ajout_pays/maj_pays.sql
New file
0,0 → 1,0
ALTER TABLE cel_obs ADD COLUMN `pays` VARCHAR(2) NOT NULL COMMENT 'Code de pays suivant le standard ISO 3166-2' AFTER `nom_referentiel`
/branches/v2.23-rouleau/doc/bdd/2014-09_migration_optimisation/maj_optimisation.sql
New file
0,0 → 1,152
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
 
SET GLOBAL SQL_MODE = 'NO_ENGINE_SUBSTITUTION,ALLOW_INVALID_DATES';
 
-- Supprime le champ «publiable_eflore»
ALTER TABLE `cel_images` DROP `publiable_eflore` ;
 
-- Ajoute le champ «transmission» dans «cel_images»
ALTER TABLE `cel_images` ADD `transmission` TINYINT(1) NOT NULL DEFAULT '0' AFTER `meta_autres`;
 
-- Ajoute le champ «date_liaison» dans «cel_images»
ALTER TABLE `cel_images` ADD `date_liaison` DATETIME NOT NULL AFTER `date_creation`;
 
-- Ajoute le champ «date_transmission» dans «cel_images»
ALTER TABLE `cel_images` ADD `date_transmission` DATETIME NULL AFTER `date_liaison`;
 
-- Ajoute le champ «ce_observation» dans «cel_images»
ALTER TABLE `cel_images` ADD `ce_observation` BIGINT NULL AFTER `id_image`;
 
-- Met à jour la table cel_image avec les données de cel_obs_images
START TRANSACTION;
UPDATE cel_images AS ci, cel_obs_images AS coi
SET ci.ce_observation = coi.id_observation,
ci.date_liaison = coi.date_liaison
WHERE ci.id_image = coi.id_image
AND coi.id_image != '0';
COMMIT;
 
-- Ajout index sur ce_observation
CREATE INDEX ce_observation ON cel_images (ce_observation);
-- Ajout index sur transmission
CREATE INDEX transmission ON cel_images(transmission);
 
-- Mise à jour du champ «transmission» de la table «cel_images» à partir des données de «cel_obs»
START TRANSACTION;
UPDATE cel_images AS ci, cel_obs AS co
SET ci.transmission = co.transmission,
ci.date_transmission = co.date_transmission
WHERE ci.ce_observation = co.id_observation
AND (ci.ce_observation IS NOT NULL OR ci.ce_observation != 0);
COMMIT;
 
-- Suppression de la table cel_obs_image inutile
RENAME TABLE cel_obs_images TO cel_obs_images_obsolete;
 
-- -----------------------------------------------------
 
-- Champs ce_utilisateur de cel_obs peut être NULL
ALTER TABLE cel_obs CHANGE ce_utilisateur ce_utilisateur VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL;
 
-- Suppression index id_obs
ALTER TABLE cel_obs DROP INDEX id_obs;
 
-- Correction du champ ce_utilisateur pour la table cel_images
START TRANSACTION;
UPDATE cel_obs SET ce_utilisateur = NULL
WHERE ce_utilisateur LIKE '%@%' OR ce_utilisateur = '';
COMMIT;
 
-- Correction index id_obs
CREATE UNIQUE INDEX id_obs ON cel_obs (ordre, ce_utilisateur, courriel_utilisateur);
 
-- Correction index date_creation
ALTER TABLE cel_obs DROP INDEX date_creation;
CREATE INDEX utilisateur_date_creation ON cel_obs (ce_utilisateur, date_creation, id_observation);
 
-- -----------------------------------------------------
 
-- Correction données en erreurs (bloque la génération des index)
START TRANSACTION;
SET @ordre = 1;
UPDATE cel_images SET ordre = @ordre := @ordre+1
WHERE ce_utilisateur = 20207 AND courriel_utilisateur = 'jardin-de-claire@orange.fr';
COMMIT;
 
START TRANSACTION;
SET @ordre = 1;
UPDATE cel_images SET ordre = @ordre := @ordre+1
WHERE ce_utilisateur = 16501 AND courriel_utilisateur = 'alexis.joly@inria.fr';
COMMIT;
 
START TRANSACTION;
SET @ordre = 1;
UPDATE cel_images SET ordre = @ordre := @ordre+1
WHERE ce_utilisateur = 10261 AND courriel_utilisateur = 'kti-moreau@orange.fr';
COMMIT;
 
START TRANSACTION;
SET @ordre = 1;
UPDATE cel_images SET ordre = @ordre := @ordre+1
WHERE ce_utilisateur = 18989 AND courriel_utilisateur = 'laetitia.goeau@free.fr';
COMMIT;
 
START TRANSACTION;
SET @ordre = 1;
UPDATE cel_images SET ordre = @ordre := @ordre+1
WHERE ce_utilisateur = 20667 AND courriel_utilisateur = 'catalina20@hotmail.fr';
COMMIT;
 
START TRANSACTION;
SET @ordre = 1;
UPDATE cel_images SET ordre = @ordre := @ordre+1
WHERE ce_utilisateur = 11785 AND courriel_utilisateur = 'pierre.bonnet@cirad.fr';
COMMIT;
 
-- Champ ce_utilisateur de cel_images peut être NULL
ALTER TABLE cel_images CHANGE ce_utilisateur ce_utilisateur VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL;
 
-- Correction index id_image
ALTER TABLE cel_images DROP INDEX id_image;
 
-- Correction du champ ce_utilisateur pour la table cel_images
START TRANSACTION;
UPDATE cel_images SET ce_utilisateur = NULL
WHERE ce_utilisateur LIKE '%@%' OR ce_utilisateur = '';
COMMIT;
 
-- Correction index id_image
CREATE UNIQUE INDEX id_img ON cel_images (ordre, ce_utilisateur, courriel_utilisateur);
 
-- Correction index ce_utilisateur_2
ALTER TABLE cel_images DROP INDEX ce_utilisateur_2;
CREATE INDEX utilisateur_date_creation ON cel_images (ce_utilisateur, date_creation, id_image);
 
-- Correction du champ date_modification dans la table cel_images
START TRANSACTION;
UPDATE cel_images
SET date_modification = GREATEST(
IFNULL(date_creation, '0000-00-00 00:00:00'),
IFNULL(date_transmission, '0000-00-00 00:00:00'),
IFNULL(date_modification, '0000-00-00 00:00:00'),
IFNULL(date_liaison, '0000-00-00 00:00:00')
);
COMMIT;
 
-- Correction du champ date_modification dans la table cel_obs
START TRANSACTION;
UPDATE cel_obs AS co, cel_images AS ci
SET co.date_modification = GREATEST(
IFNULL(co.date_creation, '0000-00-00 00:00:00'),
IFNULL(co.date_transmission, '0000-00-00 00:00:00'),
IFNULL(co.date_modification, '0000-00-00 00:00:00'),
IFNULL(ci.date_liaison, '0000-00-00 00:00:00')
)
WHERE co.id_observation = ci.ce_observation ;
COMMIT;
-- -----------------------------------------------------
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
/branches/v2.23-rouleau/doc/bdd/2014-09_migration_optimisation/migration.txt
New file
0,0 → 1,5
Pour migrer la base de données CEL vis à vis des remarques d'optimisation
( http://www.tela-botanica.org/wikini/DevInformatiques/wakka.php?wiki=AppliDelOptmisationVues )
Deux solutions :
- utiliser directement le fichier maj_optimisation.sql
- lancer un script CEL qui exécutera lui-même le script SQL de modification : /opt/lampt/bin/php cli.php migration_optimisation -a maj
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/branches/v2.23-rouleau/doc/bdd/archives/cel_v1.sql
New file
0,0 → 1,220
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
 
 
-- -----------------------------------------------------
-- Table `cel_images`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_images` ;
 
CREATE TABLE IF NOT EXISTS `cel_images` (
`ci_id_image` BIGINT(20) NOT NULL AUTO_INCREMENT ,
`ci_ordre` BIGINT(20) NOT NULL ,
`ci_ce_utilisateur` VARCHAR(60) NOT NULL ,
`ci_publiable_eflore` TINYINT(1) NOT NULL ,
`ci_note_image` TINYINT(5) NOT NULL DEFAULT '-1' ,
`ci_meta_height` INT(11) NOT NULL ,
`ci_meta_width` INT(11) NOT NULL ,
`ci_meta_make` VARCHAR(20) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_model` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_x_resolution` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_y_resolution` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_date_time` VARCHAR(30) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_date` DATE NULL DEFAULT NULL ,
`ci_meta_date_ajout` DATETIME NOT NULL ,
`ci_meta_gps` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_user_comment` LONGTEXT CHARACTER SET 'ascii' NULL DEFAULT NULL ,
`ci_meta_comment` LONGTEXT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_mots_cles` VARCHAR(800) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_exposure_time` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_f_number` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_exif_version` INT(11) NULL DEFAULT NULL ,
`ci_meta_exif_compressed_bits_per_pixel` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_shutter_speed_value` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_aperture_value` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_exposure_bias_value` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_max_aperture_value` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_metering_mode` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_light_source` VARCHAR(2) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_flash` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_focal_length` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_flash_pix_version` INT(10) NULL DEFAULT NULL ,
`ci_meta_exif_color_space` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_interoperability_offset` INT(10) NULL DEFAULT NULL ,
`ci_meta_exif_focal_plane_x_resolution` VARCHAR(20) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_focal_plane_y_resolution` VARCHAR(20) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_focal_plane_resolution_unit` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_sensing_method` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_file_source` TEXT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_custom_rendered` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_exposure_mode` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_white_balance` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_digital_zoom_ratio` VARCHAR(10) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_exif_scene_capture_type` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_gain_control` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_contrast` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_saturation` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_sharpness` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_subject_distance_range` INT(5) NULL DEFAULT NULL ,
`ci_meta_exif_autres` LONGTEXT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_category` VARCHAR(200) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_mots_cles` LONGTEXT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_by_line` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_by_line_title` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_city` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_sub_location` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_province_state` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_country_primary_location_code` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_country_name` VARCHAR(200) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_headline` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_credit` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_copyright_notice` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_contact` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_meta_iptc_autres` LONGTEXT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_nom_original` VARCHAR(255) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
`ci_md5` VARCHAR(32) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL ,
PRIMARY KEY (`ci_id_image`) ,
INDEX `ci_id_image` (`ci_id_image` ASC, `ci_ordre` ASC, `ci_ce_utilisateur` ASC) ,
INDEX `ci_ce_utilisateur` (`ci_ce_utilisateur` ASC) )
ENGINE = MyISAM
AUTO_INCREMENT = 51091
DEFAULT CHARACTER SET = utf8;
 
 
-- -----------------------------------------------------
-- Table `locations`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `locations` ;
 
CREATE TABLE IF NOT EXISTS `locations` (
`name` VARCHAR(50) NOT NULL ,
`maj_name` VARCHAR(50) NOT NULL ,
`code` VARCHAR(3) NOT NULL DEFAULT '0' ,
`insee_code` VARCHAR(5) NOT NULL DEFAULT '0' ,
`sector` VARCHAR(3) NOT NULL ,
`x_utm` VARCHAR(10) NOT NULL DEFAULT '0' ,
`y_utm` VARCHAR(10) NOT NULL DEFAULT '0' ,
`wgs84_latitude` DOUBLE NOT NULL ,
`wgs84_longitude` DOUBLE NOT NULL ,
`update_date` DATETIME NOT NULL ,
PRIMARY KEY (`name`, `code`) ,
INDEX `MAJ` (`maj_name` ASC, `code` ASC) ,
INDEX `sector` (`sector` ASC, `x_utm` ASC, `y_utm` ASC) )
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8;
 
 
-- -----------------------------------------------------
-- Table `cel_inventory`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_inventory` ;
 
CREATE TABLE IF NOT EXISTS `cel_inventory` (
`id` BIGINT(20) NOT NULL AUTO_INCREMENT ,
`identifiant` VARCHAR(128) NOT NULL ,
`prenom_utilisateur` VARCHAR(255) NULL DEFAULT NULL COMMENT 'Prénom de l\'utilisateur ayant saisi l\'observation.' ,
`nom_utilisateur` VARCHAR(255) NULL DEFAULT NULL COMMENT 'Nom de l\'utilisateur ayant saisi l\'observation.' ,
`ordre` BIGINT(20) NOT NULL ,
`nom_sel` VARCHAR(255) NOT NULL ,
`num_nom_sel` INT(11) NOT NULL ,
`nom_ret` VARCHAR(255) NOT NULL ,
`num_nom_ret` INT(11) NOT NULL ,
`num_taxon` INT(11) NOT NULL ,
`famille` VARCHAR(255) NOT NULL ,
`nom_referentiel` varchar(25) NOT NULL DEFAULT 'bdnff:4.02',
`location` VARCHAR(50) NOT NULL ,
`id_location` VARCHAR(10) NOT NULL ,
`date_observation` DATETIME NOT NULL ,
`lieudit` VARCHAR(255) NOT NULL ,
`station` VARCHAR(255) NOT NULL ,
`milieu` VARCHAR(255) NOT NULL ,
`commentaire` VARCHAR(1024) NOT NULL ,
`transmission` TINYINT(4) NOT NULL ,
`date_creation` DATETIME NOT NULL ,
`date_modification` DATETIME NOT NULL ,
`date_transmission` DATETIME NOT NULL ,
`mots_cles` LONGTEXT NOT NULL ,
`mots_cles_texte` TEXT NULL DEFAULT NULL ,
`coord_x` VARCHAR(50) NOT NULL ,
`coord_y` VARCHAR(50) NOT NULL ,
`ref_geo` VARCHAR(25) NOT NULL ,
PRIMARY KEY (`id`) ,
UNIQUE INDEX `identifiant_ordre` (`identifiant` ASC, `ordre` ASC) ,
INDEX `identifiant_date_creation` (`identifiant` ASC, `date_creation` ASC) ,
INDEX `id_location` (`id_location` ASC) ,
INDEX `location` (`location` ASC) ,
INDEX `date_observation` (`date_observation` ASC) ,
INDEX `nom_ret` (`nom_ret` ASC) ,
INDEX `identifiant` (`identifiant` ASC) ,
INDEX `coordonnees` (`coord_x` ASC, `coord_y` ASC) )
ENGINE = MyISAM
AUTO_INCREMENT = 426426
DEFAULT CHARACTER SET = utf8;
 
 
-- -----------------------------------------------------
-- Table `cel_mots_cles_images`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_mots_cles_images` ;
 
CREATE TABLE IF NOT EXISTS `cel_mots_cles_images` (
`cmc_mot_cle` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_bg` INT(10) NOT NULL ,
`cmc_bd` INT(10) NOT NULL ,
`cmc_id_mot_cle_general` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_id_mot_cle_utilisateur` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_id_proprietaire` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_id_parent` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_niveau` INT(10) NOT NULL ,
PRIMARY KEY (`cmc_id_mot_cle_utilisateur`, `cmc_id_proprietaire`) )
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
 
 
-- -----------------------------------------------------
-- Table `cel_mots_cles_obs`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_mots_cles_obs` ;
 
CREATE TABLE IF NOT EXISTS `cel_mots_cles_obs` (
`cmc_mot_cle` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_bg` INT(20) NOT NULL ,
`cmc_bd` INT(20) NOT NULL ,
`cmc_id_mot_cle_general` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_id_mot_cle_utilisateur` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_id_proprietaire` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_id_parent` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL ,
`cmc_niveau` INT(11) NOT NULL ,
PRIMARY KEY (`cmc_id_mot_cle_utilisateur`, `cmc_id_proprietaire`) )
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci
COMMENT = 'Table des mots clés, à utiliser avec des transactions !'
ROW_FORMAT = COMPACT;
 
 
-- -----------------------------------------------------
-- Table `cel_obs_images`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_obs_images` ;
 
CREATE TABLE IF NOT EXISTS `cel_obs_images` (
`coi_ce_image` INT(11) NOT NULL ,
`coi_ce_utilisateur` VARCHAR(100) CHARACTER SET 'utf8' NOT NULL ,
`coi_ce_observation` INT(11) NOT NULL ,
`coi_date_liaison` DATETIME NOT NULL ,
PRIMARY KEY (`coi_ce_image`, `coi_ce_observation`) ,
INDEX `coi_ce_utilisateur` (`coi_ce_utilisateur` ASC) ,
INDEX `coi_ce_observation` (`coi_ce_observation` ASC) ,
INDEX `coi_ce_image` (`coi_ce_image` ASC) )
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
 
 
 
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
/branches/v2.23-rouleau/doc/bdd/archives/migration.txt
New file
0,0 → 1,17
Pour migrer la base de données du CEL de la version 1 vers la version 2, il faut :
- avoir une base de données 'tb_v4' contenant les tables de l'application Annuaire de Tela Botanica
- avoir une base de données 'cel' contenant les tables de la verion 1
- avoir une base de données 'tb_cel' vide (dans laquelle seront migrées les données)
1. Dans la base tb_cel, créer les nouvelles tables de la version 2 à l'aide du fichier sql : cel_v2.sql
2. Configurer le fichier jrest.ini.php :
- dans la section [database_cel] :
- le paramétre 'database' doit correspondre à 'cel'
- le paramétre 'database_migration' à 'tb_cel'
- dans la section [database_ident] :
- le paramétre 'database' à 'tb_prod_v4'
3. Ouvrez une console et placez vous dans le dossier 'jrest', vous pourrez ensuite lancer successivement les
commandes :
/opt/lampp/bin/php cli.php MigrationObs getElement
/opt/lampp/bin/php cli.php MigrationImages getElement
/opt/lampp/bin/php cli.php MigrationMotsCles getElement
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/branches/v2.23-rouleau/doc/bdd/archives/schema_bdd_cel_v1.pdf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/branches/v2.23-rouleau/doc/bdd/archives/schema_bdd_cel_v1.pdf
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/branches/v2.23-rouleau/doc/bdd/archives/cel_v2011-09-23.sql
New file
0,0 → 1,222
-- phpMyAdmin SQL Dump
-- version 3.4.4
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le : Ven 23 Septembre 2011 à 15:52
-- Version du serveur: 5.1.32
-- Version de PHP: 5.2.17
 
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
 
 
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
 
--
-- Base de données: `cel`
--
 
-- --------------------------------------------------------
 
--
-- Structure de la table `cel_images`
--
 
CREATE TABLE IF NOT EXISTS `cel_images` (
`ci_id_image` bigint(20) NOT NULL AUTO_INCREMENT,
`ci_ordre` bigint(20) NOT NULL,
`ci_ce_utilisateur` varchar(60) NOT NULL,
`ci_publiable_eflore` tinyint(1) NOT NULL,
`ci_note_image` tinyint(5) NOT NULL DEFAULT '-1',
`ci_meta_height` int(11) NOT NULL,
`ci_meta_width` int(11) NOT NULL,
`ci_meta_make` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_model` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_x_resolution` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_y_resolution` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_date_time` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_date` date DEFAULT NULL,
`ci_meta_date_ajout` datetime NOT NULL,
`ci_meta_gps` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_user_comment` longtext CHARACTER SET ascii,
`ci_meta_comment` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`ci_meta_mots_cles` varchar(800) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_exposure_time` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_f_number` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_exif_version` int(11) DEFAULT NULL,
`ci_meta_exif_compressed_bits_per_pixel` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_shutter_speed_value` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_aperture_value` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_exposure_bias_value` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_max_aperture_value` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_metering_mode` int(5) DEFAULT NULL,
`ci_meta_exif_light_source` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_flash` int(5) DEFAULT NULL,
`ci_meta_exif_focal_length` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_flash_pix_version` int(10) DEFAULT NULL,
`ci_meta_exif_color_space` int(5) DEFAULT NULL,
`ci_meta_exif_interoperability_offset` int(10) DEFAULT NULL,
`ci_meta_exif_focal_plane_x_resolution` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_focal_plane_y_resolution` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_focal_plane_resolution_unit` int(5) DEFAULT NULL,
`ci_meta_exif_sensing_method` int(5) DEFAULT NULL,
`ci_meta_exif_file_source` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`ci_meta_exif_custom_rendered` int(5) DEFAULT NULL,
`ci_meta_exif_exposure_mode` int(5) DEFAULT NULL,
`ci_meta_exif_white_balance` int(5) DEFAULT NULL,
`ci_meta_exif_digital_zoom_ratio` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_exif_scene_capture_type` int(5) DEFAULT NULL,
`ci_meta_exif_gain_control` int(5) DEFAULT NULL,
`ci_meta_exif_contrast` int(5) DEFAULT NULL,
`ci_meta_exif_saturation` int(5) DEFAULT NULL,
`ci_meta_exif_sharpness` int(5) DEFAULT NULL,
`ci_meta_exif_subject_distance_range` int(5) DEFAULT NULL,
`ci_meta_exif_autres` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`ci_meta_iptc_category` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_mots_cles` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`ci_meta_iptc_by_line` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_by_line_title` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_city` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_sub_location` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_province_state` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_country_primary_location_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_country_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_headline` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_credit` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_copyright_notice` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_contact` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_meta_iptc_autres` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`ci_nom_original` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`ci_md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`ci_id_image`),
KEY `ci_id_image` (`ci_id_image`,`ci_ordre`,`ci_ce_utilisateur`),
KEY `ci_ce_utilisateur` (`ci_ce_utilisateur`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=44843 ;
 
-- --------------------------------------------------------
 
--
-- Structure de la table `cel_inventory`
--
 
CREATE TABLE IF NOT EXISTS `cel_inventory` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`identifiant` varchar(128) NOT NULL,
`prenom_utilisateur` varchar(255) DEFAULT NULL COMMENT 'Prénom de l''utilisateur ayant saisi l''observation.',
`nom_utilisateur` varchar(255) DEFAULT NULL COMMENT 'Nom de l''utilisateur ayant saisi l''observation.',
`ordre` bigint(20) NOT NULL,
`nom_sel` varchar(255) NOT NULL,
`num_nom_sel` int(11) NOT NULL,
`nom_ret` varchar(255) NOT NULL,
`num_nom_ret` int(11) NOT NULL,
`num_taxon` int(11) NOT NULL,
`famille` varchar(255) NOT NULL,
`location` varchar(50) NOT NULL,
`id_location` varchar(10) NOT NULL,
`date_observation` datetime NOT NULL,
`lieudit` varchar(255) NOT NULL,
`station` varchar(255) NOT NULL,
`milieu` varchar(255) NOT NULL,
`commentaire` varchar(1024) NOT NULL,
`transmission` tinyint(4) NOT NULL,
`date_creation` datetime NOT NULL,
`date_modification` datetime NOT NULL,
`date_transmission` datetime NOT NULL,
`mots_cles` longtext NOT NULL,
`mots_cles_texte` text,
`coord_x` varchar(50) NOT NULL,
`coord_y` varchar(50) NOT NULL,
`ref_geo` varchar(25) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `identifiant_ordre` (`identifiant`,`ordre`),
KEY `identifiant_date_creation` (`identifiant`,`date_creation`),
KEY `id_location` (`id_location`),
KEY `location` (`location`),
KEY `date_observation` (`date_observation`),
KEY `nom_ret` (`nom_ret`),
KEY `identifiant` (`identifiant`),
KEY `coordonnees` (`coord_x`,`coord_y`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=370469 ;
 
-- --------------------------------------------------------
 
--
-- Structure de la table `cel_mots_cles_images`
--
 
CREATE TABLE IF NOT EXISTS `cel_mots_cles_images` (
`cmc_mot_cle` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_bg` int(10) NOT NULL,
`cmc_bd` int(10) NOT NULL,
`cmc_id_mot_cle_general` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_mot_cle_utilisateur` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_proprietaire` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_parent` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_niveau` int(10) NOT NULL,
PRIMARY KEY (`cmc_mot_cle`,`cmc_id_mot_cle_general`,`cmc_id_proprietaire`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
 
-- --------------------------------------------------------
 
--
-- Structure de la table `cel_mots_cles_obs`
--
 
CREATE TABLE IF NOT EXISTS `cel_mots_cles_obs` (
`cmc_mot_cle` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_bg` int(20) NOT NULL,
`cmc_bd` int(20) NOT NULL,
`cmc_id_mot_cle_general` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_mot_cle_utilisateur` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_proprietaire` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_id_parent` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`cmc_niveau` int(11) NOT NULL,
PRIMARY KEY (`cmc_id_mot_cle_utilisateur`,`cmc_id_proprietaire`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPACT COMMENT='Table des mots clés, à utiliser avec des transactions !';
 
-- --------------------------------------------------------
 
--
-- Structure de la table `cel_obs_images`
--
 
CREATE TABLE IF NOT EXISTS `cel_obs_images` (
`coi_ce_image` int(11) NOT NULL,
`coi_ce_utilisateur` varchar(100) CHARACTER SET utf8 NOT NULL,
`coi_ce_observation` int(11) NOT NULL,
`coi_date_liaison` datetime NOT NULL,
PRIMARY KEY (`coi_ce_image`,`coi_ce_observation`),
KEY `coi_ce_utilisateur` (`coi_ce_utilisateur`),
KEY `coi_ce_observation` (`coi_ce_observation`),
KEY `coi_ce_image` (`coi_ce_image`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
 
-- --------------------------------------------------------
 
--
-- Structure de la table `locations`
--
 
CREATE TABLE IF NOT EXISTS `locations` (
`name` varchar(50) NOT NULL,
`maj_name` varchar(50) NOT NULL,
`code` varchar(3) NOT NULL DEFAULT '0',
`insee_code` varchar(5) NOT NULL DEFAULT '0',
`sector` varchar(3) NOT NULL,
`x_utm` varchar(10) NOT NULL DEFAULT '0',
`y_utm` varchar(10) NOT NULL DEFAULT '0',
`wgs84_latitude` double NOT NULL,
`wgs84_longitude` double NOT NULL,
`update_date` datetime NOT NULL,
PRIMARY KEY (`name`,`code`),
KEY `MAJ` (`maj_name`,`code`),
KEY `sector` (`sector`,`x_utm`,`y_utm`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
 
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/branches/v2.23-rouleau/doc/bdd/archives/schema_bdd_cel_v1.mwb.bak
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/branches/v2.23-rouleau/doc/bdd/archives/schema_bdd_cel_v1.mwb.bak
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/branches/v2.23-rouleau/doc/bdd/archives/schema_bdd_cel_v1.mwb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/branches/v2.23-rouleau/doc/bdd/archives/schema_bdd_cel_v1.mwb
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/branches/v2.23-rouleau/doc/bdd/2014-02_migration_mots_cles/migration.txt
New file
0,0 → 1,5
Pour migrer les mots clés il faut :
- Lancer le fichier sql migration_mots_cles.sql sur la base du cel
- Lancer les scripts de migration des mots clés
- cli.php migration_mots_cles -a obs
- cli.php migration_mots_cles -a images
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property
/branches/v2.23-rouleau/doc/bdd/2014-02_migration_mots_cles/migration_mots_cles.sql
New file
0,0 → 1,47
-- -----------------------------------------------------
-- Table `cel_arbre_mots_cles_images`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_arbre_mots_cles_images` ;
 
CREATE TABLE IF NOT EXISTS `cel_arbre_mots_cles_images` (
`id_mot_cle` INT NOT NULL AUTO_INCREMENT ,
`chemin` VARCHAR(2048) NULL ,
`mot_cle` VARCHAR(255) NULL ,
`id_utilisateur` VARCHAR(255) NULL ,
PRIMARY KEY (`id_mot_cle`) )
ENGINE = MyISAM;
 
-- -----------------------------------------------------
-- Table `cel_mots_cles_images_liaison`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_mots_cles_images_liaison` ;
 
CREATE TABLE IF NOT EXISTS `cel_mots_cles_images_liaison` (
`id_element_lie` INT NOT NULL ,
`id_mot_cle` INT NOT NULL ,
PRIMARY KEY (`id_element_lie`, `id_mot_cle`) )
ENGINE = MyISAM;
 
-- -----------------------------------------------------
-- Table `cel_arbre_mots_cles_obs`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_arbre_mots_cles_obs` ;
 
CREATE TABLE IF NOT EXISTS `cel_arbre_mots_cles_obs` (
`id_mot_cle` INT NOT NULL AUTO_INCREMENT ,
`chemin` VARCHAR(2048) NULL ,
`mot_cle` VARCHAR(255) NULL ,
`id_utilisateur` VARCHAR(255) NULL ,
PRIMARY KEY (`id_mot_cle`) )
ENGINE = MyISAM;
 
-- -----------------------------------------------------
-- Table `cel_mots_cles_obs_liaison`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_mots_cles_obs_liaison` ;
 
CREATE TABLE IF NOT EXISTS `cel_mots_cles_obs_liaison` (
`id_element_lie` INT NOT NULL ,
`id_mot_cle` INT NOT NULL ,
PRIMARY KEY (`id_element_lie`, `id_mot_cle`) )
ENGINE = MyISAM;
/branches/v2.23-rouleau/doc/bdd/2014-08_migration_champs_etendus/template_page_description_wikini
New file
0,0 → 1,13
===== Titre =====
 
Bienvenue dans la page d'aide de ce nouveau champ.
Pour plus de clarté vous pouvez remplacer "Titre" par le nom du champ et remplir au moins la section
description courte.
 
La section description courte, correspond à l'aide qui sera affichée dans le carnet en ligne.
La section description longue est quant à elle libre et permet de décrire un peu plus précisément le rôle du champ.
 
 
====description courte====
 
====description longue====
/branches/v2.23-rouleau/doc/bdd/2014-08_migration_champs_etendus/migration_champs_etendus.sql
New file
0,0 → 1,174
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Ven 05 Septembre 2014 à 16:52
-- Version du serveur : 5.6.16
-- Version de PHP : 5.5.9
 
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
 
 
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
 
--
-- Base de données : `tb_cel`
--
 
-- -----------------------------------------------------
-- Suppression des colonnes label des tables de champs étendus
-- -----------------------------------------------------
ALTER TABLE cel_obs_etendues
DROP COLUMN label;
 
ALTER TABLE cel_images_etendues
DROP COLUMN label;
 
 
-- -----------------------------------------------------
-- Table `cel_catalogue_champs_etendus_liaison`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_catalogue_champs_etendus_liaison` ;
 
CREATE TABLE IF NOT EXISTS `cel_catalogue_champs_etendus_liaison` (
`groupe` VARCHAR(255) NOT NULL ,
`champ` VARCHAR(255) NOT NULL ,
PRIMARY KEY (`groupe`, `champ`) )
ENGINE = InnoDB;
 
 
-- -----------------------------------------------------
-- Table `cel_catalogue_champs_etendus`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_catalogue_champs_etendus` ;
 
CREATE TABLE IF NOT EXISTS `cel_catalogue_champs_etendus` (
`cle` VARCHAR(255) NOT NULL ,
`label` VARCHAR(255) NULL ,
`invisible` TINYINT(1) NULL ,
`groupe` TINYINT(1) NULL ,
`prive` TINYINT(1) NULL ,
PRIMARY KEY (`cle`) )
ENGINE = InnoDB;
 
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Ven 05 Septembre 2014 à 16:52
-- Version du serveur : 5.6.16
-- Version de PHP : 5.5.9
 
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
 
--
-- Contenu de la table `cel_catalogue_champs_etendus`
--
 
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES
('adresse', 'Adresse', 0, 0, 0),
('arbreTetardAligneNbre', 'Nombre d''arbres d''alignement', 0, 0, 0),
('arbreTetardCirconferenceA1m', 'Circonférence à 1 m du sol (en m)', 0, 0, 0),
('arbreTetardClasseCirconferenceA1m', 'Classe de circonférence à 1 m du sol (en m)', 0, 0, 0),
('arbreTetardEntretientCoupe', 'Type d''entretien', 0, 0, 0),
('arbreTetardEtatSanitaire', 'État sanitaire', 0, 0, 0),
('arbreTetardFormation', 'Type de formation', 0, 0, 0),
('arbreTetardHauteurTete', 'Hauteur de la tête (en m)', 0, 0, 0),
('arbreTetardPresenceCavite', 'Présence de cavités', 0, 0, 0),
('arbreTetardPresenceSp', 'Présence d''espèces sur l''arbre', 0, 0, 0),
('arbreTetardTailleType', 'Type de taille', 0, 0, 0),
('ChampsArbresTetards', 'Champs du projet arbres tétards', 0, 1, 0),
('ChampsFlorileges', 'Champs du projet florilèges', 0, 1, 0),
('ChampsSauvages', 'Champs du projet Sauvages de ma rue', 0, 1, 0),
('coauteurCourriel', 'Courriel du co-auteur', 0, 0, 1),
('coauteurIntitule', 'Intitulé du co-auteur', 0, 0, 0),
('Collecteur', 'Collecteur', 0, 0, 0),
('Collecteurobservation', 'Collecteur de l''observation', 0, 0, 0),
('coordonneelambert93x', 'coordonneeLambert93X', 0, 0, 0),
('coordonneelambert93y', 'coordonneeLambert93Y', 0, 0, 0),
('dateArretTraitementPhyto', 'Date d''arrêt des traitements', 0, 0, 0),
('dateDerniereIntervention', 'Dernière intervention', 0, 0, 0),
('Determinateur', 'Déterminateur', 0, 0, 0),
('hauteurBatimentAvoisinant', 'Hauteur des bâtiments', 0, 0, 0),
('hauteurPlante', 'Hauteur max. (en cm) de la plante', 0, 0, 0),
('intensiteGestion', 'Intensité de gestion', 0, 0, 0),
('itineraireGestion', 'Description de l''itinéraire de gestion', 0, 0, 0),
('latitudeDebutRue', 'Latitude du début de la rue', 0, 0, 0),
('latitudeFinRue', 'Latitude de fin de la rue', 0, 0, 0),
('longitudeDebutRue', 'Longitude du début de la rue', 0, 0, 0),
('longitudeFinRue', 'Longitude de fin de la rue', 0, 0, 0),
('perceptionRiverainMauvaise', 'Mauvaise perception par les riverains ?', 0, 0, 0),
('perceptionTechnicien', 'Perceptions par l''équipe', 0, 0, 0),
('periodiciteTraitementPhyto', 'Utilisation de produits phytosanitaires', 0, 0, 0),
('personneFonction', 'Fonction de l''observateur', 0, 0, 0),
('personneService', 'Service de l''observateur', 0, 0, 0),
('personneStructure', 'Structure de l''observateur', 0, 0, 0),
('resistanceTraitementPhyto', 'Résistance/Résilience', 0, 0, 0),
('revetementSol', 'Revêtement de sol', 0, 0, 0),
('typoUrbaine', 'Typologie', 0, 0, 0),
('vitesseCroissance', 'Croissance', 0, 0, 0);
 
--
-- Structure de la table `cel_catalogue_champs_etendus_liaison`
--
 
CREATE TABLE IF NOT EXISTS `cel_catalogue_champs_etendus_liaison` (
`groupe` varchar(255) NOT NULL,
`champ` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
--
-- Contenu de la table `cel_catalogue_champs_etendus_liaison`
--
 
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES
('ChampsFlorileges', 'adresse'),
('ChampsFlorileges', 'Collecteur'),
('ChampsFlorileges', 'Collecteurobservation'),
('ChampsFlorileges', 'dateArretTraitementPhyto'),
('ChampsFlorileges', 'dateDerniereIntervention'),
('ChampsFlorileges', 'Determinateur'),
('ChampsFlorileges', 'hauteurBatimentAvoisinant'),
('ChampsFlorileges', 'hauteurPlante'),
('ChampsFlorileges', 'intensiteGestion'),
('ChampsFlorileges', 'itineraireGestion'),
('ChampsFlorileges', 'latitudeDebutRue'),
('ChampsFlorileges', 'latitudeFinRue'),
('ChampsFlorileges', 'longitudeDebutRue'),
('ChampsFlorileges', 'longitudeFinRue'),
('ChampsFlorileges', 'perceptionRiverainMauvaise'),
('ChampsFlorileges', 'perceptionTechnicien'),
('ChampsFlorileges', 'periodiciteTraitementPhyto'),
('ChampsFlorileges', 'personneFonction'),
('ChampsFlorileges', 'personneService'),
('ChampsFlorileges', 'personneStructure'),
('ChampsFlorileges', 'resistanceTraitementPhyto'),
('ChampsFlorileges', 'revetementSol'),
('ChampsFlorileges', 'typoUrbaine'),
('ChampsFlorileges', 'vitesseCroissance'),
('ChampsSauvages', 'adresse'),
('ChampsSauvages', 'latitudeDebutRue'),
('ChampsSauvages', 'latitudeFinRue'),
('ChampsSauvages', 'longitudeDebutRue'),
('ChampsSauvages', 'longitudeFinRue'),
('ChampsArbresTetards', 'arbreTetardAligneNbre'),
('ChampsArbresTetards', 'arbreTetardCirconferenceA1m'),
('ChampsArbresTetards', 'arbreTetardClasseCirconferenceA1m'),
('ChampsArbresTetards', 'arbreTetardEntretientCoupe'),
('ChampsArbresTetards', 'arbreTetardEtatSanitaire'),
('ChampsArbresTetards', 'arbreTetardFormation'),
('ChampsArbresTetards', 'arbreTetardHauteurTete'),
('ChampsArbresTetards', 'arbreTetardPresenceCavite'),
('ChampsArbresTetards', 'arbreTetardPresenceSp'),
('ChampsArbresTetards', 'arbreTetardTailleType');
 
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/branches/v2.23-rouleau/doc/bdd/2015-04_migration_lat_lon_sauvages/maj_lat_lon_sauvages.sql
New file
0,0 → 1,11
UPDATE cel_obs co
INNER JOIN cel_obs_etendues coe
ON coe.id_observation = co.id_observation
AND cle = 'latitudeDebutRue'
SET co.latitude = coe.valeur;
 
UPDATE cel_obs co
INNER JOIN cel_obs_etendues coe
ON coe.id_observation = co.id_observation
AND cle = 'longitudeDebutRue'
SET co.longitude = coe.valeur;
/branches/v2.23-rouleau/doc/bdd/schema_bdd.mwb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/branches/v2.23-rouleau/doc/bdd/schema_bdd.mwb
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/branches/v2.23-rouleau/doc/bdd/cel.sql
New file
0,0 → 1,533
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
 
 
-- -----------------------------------------------------
-- Table `cel_utilisateurs`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_utilisateurs` (
`id_utilisateur` INT NOT NULL,
`prenom` VARCHAR(255) NULL DEFAULT NULL,
`nom` VARCHAR(255) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL,
`courriel` VARCHAR(255) NOT NULL,
`mot_de_passe` VARCHAR(45) NOT NULL,
`admin` TINYINT(1) NULL DEFAULT '0',
`licence_acceptee` TINYINT(1) NULL DEFAULT '0' COMMENT 'Acceptation de la licence utilisateur pour le cel\n',
`preferences` LONGTEXT NULL DEFAULT NULL COMMENT 'Préférences utilisateur sérialisées sous une forme à définir\n',
`date__premiere_utilisation` DATETIME NOT NULL,
PRIMARY KEY (`id_utilisateur`))
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Table `cel_arbre_mots_cles_images`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_arbre_mots_cles_images` (
`id_mot_cle` INT NOT NULL AUTO_INCREMENT,
`chemin` VARCHAR(2048) NULL,
`mot_cle` VARCHAR(80) NULL,
`id_utilisateur` VARCHAR(255) NULL,
PRIMARY KEY (`id_mot_cle`))
ENGINE = MyISAM;
 
 
-- -----------------------------------------------------
-- Table `cel_mots_cles_images_liaison`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_mots_cles_images_liaison` (
`id_element_lie` INT NOT NULL,
`id_mot_cle` INT NOT NULL,
PRIMARY KEY (`id_element_lie`, `id_mot_cle`),
INDEX `fk_cel_mots_cles_images_liaison_cel_arbre_mots_cles_images1_idx` (`id_mot_cle` ASC))
ENGINE = MyISAM;
 
 
-- -----------------------------------------------------
-- Table `cel_zones_geo`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_zones_geo` (
`id_zone_geo` VARCHAR(50) NOT NULL,
`code` VARCHAR(10) NOT NULL,
`nom` VARCHAR(255) NOT NULL,
`utm_secteur` CHAR(3) NOT NULL,
`utm_x` INT NOT NULL DEFAULT '0',
`utm_y` INT NOT NULL DEFAULT '0',
`wgs84_latitude` FLOAT NOT NULL,
`wgs84_longitude` FLOAT NOT NULL,
`date_modification` DATETIME NOT NULL,
`ce_zone_geo_parente` VARCHAR(50) NULL DEFAULT NULL,
`bg` BIGINT NULL,
`bd` BIGINT NULL,
`niveau` INT NULL,
PRIMARY KEY (`id_zone_geo`),
INDEX `nom` (`nom` ASC),
INDEX `zone_geo_parente` (`ce_zone_geo_parente` ASC))
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Table `cel_obs_etendues`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_obs_etendues` (
`id_observation` BIGINT NOT NULL,
`cle` VARCHAR(255) NOT NULL COMMENT 'Clé du champ au format chat mot (sans accents).\nEx. : maCle, uneAutreCle',
`valeur` TEXT NOT NULL COMMENT 'Valeur du champ.',
PRIMARY KEY (`id_observation`, `cle`))
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci
COMMENT = 'Stockage d\'infos supplémentaires sur une observation';
 
 
-- -----------------------------------------------------
-- Table `cel_arbre_mots_cles_obs`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_arbre_mots_cles_obs` (
`id_mot_cle` INT NOT NULL AUTO_INCREMENT,
`chemin` VARCHAR(2048) NULL,
`mot_cle` VARCHAR(80) NULL,
`id_utilisateur` VARCHAR(255) NULL,
PRIMARY KEY (`id_mot_cle`))
ENGINE = MyISAM;
 
 
-- -----------------------------------------------------
-- Table `cel_mots_cles_obs_liaison`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_mots_cles_obs_liaison` (
`id_element_lie` INT NOT NULL,
`id_mot_cle` INT NOT NULL,
PRIMARY KEY (`id_element_lie`, `id_mot_cle`),
INDEX `fk_cel_mots_cles_obs_liaison_cel_arbre_mots_cles_obs1_idx` (`id_mot_cle` ASC))
ENGINE = MyISAM;
 
 
-- -----------------------------------------------------
-- Table `cel_obs`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_obs` (
`id_observation` BIGINT NOT NULL AUTO_INCREMENT,
`ordre` BIGINT NOT NULL,
`ce_utilisateur` VARCHAR(255) NULL,
`prenom_utilisateur` VARCHAR(255) NULL DEFAULT NULL,
`nom_utilisateur` VARCHAR(255) NULL DEFAULT NULL,
`courriel_utilisateur` VARCHAR(255) NULL DEFAULT NULL,
`nom_sel` VARCHAR(601) NULL DEFAULT NULL COMMENT 'doit pouvoir contenir CONCAT(bdtfx.nom_sci, \" \", bdtfx.auteur) soit 601 caractères',
`nom_sel_nn` DECIMAL(9,0) NULL DEFAULT NULL COMMENT 'Numéro du nom sélectionné.',
`nom_ret` VARCHAR(601) NULL DEFAULT NULL COMMENT 'doit pouvoir contenir CONCAT(bdtfx.nom_sci, \" \", bdtfx.auteur) soit 601 caractères',
`nom_ret_nn` DECIMAL(9,0) NULL DEFAULT NULL COMMENT 'Numéro du nom retenu = num_nom_retenu dans bdtfx',
`nt` DECIMAL(9,0) NULL DEFAULT NULL COMMENT 'Numéro taxonomique.',
`famille` VARCHAR(255) NULL DEFAULT NULL,
`nom_referentiel` VARCHAR(255) NULL DEFAULT NULL,
`pays` VARCHAR(2) NULL DEFAULT NULL COMMENT 'Code de pays suivant le standard ISO 3166-2',
`ce_zone_geo` VARCHAR(50) NULL DEFAULT NULL,
`zone_geo` VARCHAR(255) NULL DEFAULT NULL,
`lieudit` VARCHAR(255) NULL DEFAULT NULL,
`station` VARCHAR(255) NULL DEFAULT NULL,
`milieu` VARCHAR(255) NULL DEFAULT NULL,
`latitude` DECIMAL(8,5) NULL DEFAULT NULL,
`longitude` DECIMAL(8,5) NULL DEFAULT NULL,
`altitude` INT(5) NULL DEFAULT NULL,
`geodatum` VARCHAR(25) NULL DEFAULT NULL COMMENT 'Référentiel géographique utilisé.\nPar exmple : WGS84',
`date_observation` DATETIME NULL DEFAULT NULL,
`mots_cles_texte` LONGTEXT NULL DEFAULT NULL COMMENT 'Champ calculé contenant la liste des mots clés utilisateurs séparé par des virgules.',
`commentaire` TEXT NULL DEFAULT NULL,
`transmission` TINYINT(1) NULL DEFAULT NULL,
`date_creation` DATETIME NOT NULL,
`date_modification` DATETIME NOT NULL,
`date_transmission` DATETIME NULL DEFAULT NULL,
`abondance` VARCHAR(50) NULL DEFAULT NULL,
`certitude` VARCHAR(255) NULL DEFAULT NULL,
`phenologie` VARCHAR(255) NULL DEFAULT NULL,
`code_insee_calcule` VARCHAR(5) NULL DEFAULT NULL COMMENT 'Code INSEE calculé par un scrip CRON.',
PRIMARY KEY (`id_observation`),
INDEX `ce_utilisateur` (`ce_utilisateur`(10) ASC),
INDEX `ce_zone_geo` (`ce_zone_geo` ASC),
UNIQUE INDEX `id_obs` (`ce_utilisateur` ASC, `courriel_utilisateur` ASC, `ordre` ASC),
INDEX `utilisateur_date_creation` (`ce_utilisateur`(10) ASC, `courriel_utilisateur` ASC, `date_creation` ASC),
INDEX `coordonnees` (`latitude` ASC, `longitude` ASC),
INDEX `nom_retenu` (`nom_ret` ASC),
INDEX `date_observation` (`date_observation` ASC),
INDEX `nom_referentiel` (`nom_referentiel`(5) ASC) COMMENT ' /* comment truncated */ /*Index sur (bdtfx,bdtfx,isfan)*/',
INDEX `date_transmission` (`date_transmission` DESC) COMMENT ' /* comment truncated */ /*Date_transmission : nécessaire à l'ORDER BY utilisé dans la liste d'observation de DEL*/',
INDEX `transmission` (`transmission` ASC) COMMENT ' /* comment truncated */ /*Nécessaire à CEL/DEL qui officie avec transmission = 1*/')
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Table `cel_images`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_images` (
`id_image` BIGINT NOT NULL AUTO_INCREMENT,
`ce_observation` BIGINT NOT NULL,
`ordre` BIGINT NOT NULL,
`ce_utilisateur` VARCHAR(255) NULL COMMENT 'L\'id utilisateur est un int mais on utilise un varchar pour stocker des observations avec des identifiants temporaires\n',
`prenom_utilisateur` VARCHAR(255) NULL DEFAULT NULL,
`nom_utilisateur` VARCHAR(255) NULL DEFAULT NULL,
`courriel_utilisateur` VARCHAR(255) NULL DEFAULT NULL,
`hauteur` INT NOT NULL,
`largeur` INT NOT NULL,
`appareil_fabriquant` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL,
`appareil_modele` VARCHAR(50) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL,
`date_prise_de_vue` DATETIME NULL DEFAULT NULL,
`note_qualite` DECIMAL(1,0) NULL DEFAULT NULL,
`mots_cles_texte` LONGTEXT NULL DEFAULT NULL COMMENT 'Champ calculé contenant la liste des mots clés utilisateurs séparé par des virgules.\n',
`commentaire` LONGTEXT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL,
`nom_original` VARCHAR(255) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL,
`md5` VARCHAR(32) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL,
`meta_exif` LONGTEXT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL,
`meta_iptc` LONGTEXT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL,
`meta_xmp` LONGTEXT NULL DEFAULT NULL,
`meta_makernote` LONGTEXT NULL DEFAULT NULL,
`meta_autres` LONGTEXT NULL DEFAULT NULL,
`transmission` TINYINT(1) NOT NULL DEFAULT 0,
`date_creation` DATETIME NOT NULL COMMENT 'Date d\'ajout de l\'image au CEL.',
`date_modification` DATETIME NOT NULL,
`date_liaison` DATETIME NULL DEFAULT NULL,
`date_transmission` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`id_image`),
INDEX `id_image` (`ce_utilisateur` ASC, `courriel_utilisateur` ASC, `ordre` ASC),
INDEX `ce_utilisateur` (`ce_utilisateur` ASC),
INDEX `ce_observation` (`ce_observation` ASC),
INDEX `date_creation` (`date_creation` ASC),
INDEX `date_prise_de_vue` (`date_prise_de_vue` ASC),
INDEX `utilisateur_date_creation` (`date_creation` ASC, `ce_utilisateur` ASC, `id_image` ASC))
ENGINE = MyISAM
AUTO_INCREMENT = 265
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Table `cel_utilisateurs_infos`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_utilisateurs_infos` (
`id_utilisateur` INT NOT NULL,
`admin` TINYINT(1) NOT NULL DEFAULT 0,
`licence_acceptee` TINYINT(1) NOT NULL DEFAULT 0,
`preferences` LONGTEXT NULL DEFAULT NULL,
`date_premiere_utilisation` DATETIME NOT NULL,
PRIMARY KEY (`id_utilisateur`),
INDEX `id_utilisateur` (`id_utilisateur` ASC))
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci
COMMENT = 'Contient les infos utilisateurs spécifiques au CEL. À utilis /* comment truncated */ /*er avec une vue pour récupérer les infos de la table annuaire_tela.*/';
 
 
-- -----------------------------------------------------
-- Table `cel_images_etendues`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_images_etendues` (
`id_observation` BIGINT NOT NULL,
`cle` VARCHAR(255) NOT NULL COMMENT 'Clé du champ au format chat mot (sans accents).\nEx. : maCle, uneAutreCle',
`valeur` TEXT NOT NULL COMMENT 'Valeur du champ.',
PRIMARY KEY (`id_observation`, `cle`),
INDEX `id_observation` (`id_observation` ASC))
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci
COMMENT = 'Stockage d\'info supplémentaires sur une image';
 
 
-- -----------------------------------------------------
-- Table `cel_references`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_references` (
`referentiel` INT NOT NULL,
`num_nom` INT NOT NULL,
`num_nom_retenu` INT NULL,
`num_taxon` INT NOT NULL,
`nom_sci` VARCHAR(500) NOT NULL,
`auteur` VARCHAR(100) NULL,
`nom_commun` VARCHAR(60) NULL,
`catminat_code` VARCHAR(18) NULL,
`ve_lumiere` INT(1) NULL,
`ve_temperature` INT(1) NULL,
`ve_continentalite` INT(1) NULL,
`ve_humidite_atmos` INT(1) NULL,
`ve_humidite_edaph` INT(2) NULL,
`ve_reaction_sol` INT(1) NULL,
`ve_nutriments_sol` INT(1) NULL,
`ve_salinite` INT(1) NULL,
`ve_texture_sol` INT(1) NULL,
`ve_mat_org_sol` INT(1) NULL,
`syntaxon` VARCHAR(255) NULL,
PRIMARY KEY (`referentiel`, `num_nom`),
INDEX `referentiel` (`referentiel` ASC),
INDEX `num_nom` (`num_nom` ASC),
INDEX `num_taxon` (`num_taxon` ASC),
INDEX `num_nom_retenu` (`num_nom_retenu` ASC))
ENGINE = MyISAM
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Table `cel_catalogue_champs_etendus`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_catalogue_champs_etendus` (
`cle` VARCHAR(255) NOT NULL,
`label` VARCHAR(255) NULL,
`invisible` TINYINT(1) NOT NULL DEFAULT 0,
`groupe` TINYINT(1) NOT NULL DEFAULT 0,
`prive` TINYINT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`cle`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Table `cel_catalogue_champs_etendus_liaison`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_catalogue_champs_etendus_liaison` (
`groupe` VARCHAR(255) NOT NULL,
`champ` VARCHAR(255) NOT NULL,
PRIMARY KEY (`groupe`, `champ`),
INDEX `fk_cel_catalogue_champs_etendus_liaison_cel_catalogue_champ_idx` (`champ` ASC))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_general_ci;
 
 
-- -----------------------------------------------------
-- Placeholder table for view `cel_utilisateurs`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_utilisateurs` (`id_utilisateur` INT, `prenom` INT, `nom` INT, `courriel` INT, `mot_de_passe` INT, `licence_acceptee` INT, `admin` INT, `preferences` INT, `date_premiere_utilisation` INT);
 
-- -----------------------------------------------------
-- Placeholder table for view `cel_tapir`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `cel_tapir` (`guid` INT, `observation_id` INT, `observation_date` INT, `nom_scientifique_complet` INT, `nom_num_nomenclatural` INT, `nom_num_taxonomique` INT, `nom_famille` INT, `lieu_commune_nom_complet` INT, `lieu_commune_nom` INT, `lieu_commune_code_insee` INT, `lieu_commune_source` INT, `lieu_latitude` INT, `lieu_longitude` INT, `lieu_geodatum` INT, `lieu_georeference_source` INT, `lieu_localite` INT, `observateur_prenom` INT, `observateur_nom` INT, `observateur_courriel` INT, `observateur_nom_complet` INT, `observateur_intitule` INT, `observation_commentaire` INT, `observation_information_complement` INT, `saisie_date_modification` INT, `saisie_date_creation` INT);
 
-- -----------------------------------------------------
-- View `cel_utilisateurs`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_utilisateurs`;
CREATE OR REPLACE VIEW `cel_utilisateurs` AS
SELECT at.U_ID AS id_utilisateur, at.U_SURNAME AS prenom, at.U_NAME AS nom, at.U_MAIL AS courriel, at.U_PASSWD AS mot_de_passe,
ui.licence_acceptee, ui.admin, ui.preferences, ui.date_premiere_utilisation
FROM tela_prod_v4.annuaire_tela AS at
LEFT JOIN cel_utilisateurs_infos AS ui ON (ui.id_utilisateur = at.U_ID);
 
-- -----------------------------------------------------
-- View `cel_tapir`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `cel_tapir`;
CREATE OR REPLACE VIEW `cel_tapir` AS
select concat(_utf8'urn:lsid:tela-botanica.org:cel:',`o`.`id_observation`) AS `guid`,
`o`.`id_observation` AS `observation_id`,
date_format(`o`.`date_observation`,'%Y-%m-%d') AS `observation_date`,
`o`.`nom_sel` AS `nom_scientifique_complet`,
`o`.`nom_sel_nn` AS `nom_num_nomenclatural`,
`o`.`nt` AS `nom_num_taxonomique`,
`o`.`famille` AS `nom_famille`,
concat(_utf8'',`zg`.`nom`,' [INSEE:',`zg`.`code`,']') AS `lieu_commune_nom_complet`,
`zg`.`nom` AS `lieu_commune_nom`,
`zg`.`code` AS `lieu_commune_code_insee`,
if((`zg`.`code` <> ''), 'Lion1906 version 26-05-2008 - http://www.lion1906.com/', NULL) AS `lieu_commune_source`,
format(if((`o`.`latitude` <> ''), `o`.`latitude`, `zg`.`wgs84_latitude`), 5) AS `lieu_latitude`,
format(if((`o`.`longitude` <> ''), `o`.`longitude`, `zg`.`wgs84_longitude`), 5) AS `lieu_longitude`,
`o`.`geodatum` AS `lieu_geodatum`,
if((`o`.`geodatum` <> ''), 'Coordonnées issues de l''utilisation de Google Map', NULL) AS `lieu_georeference_source`,
`o`.`lieudit` AS `lieu_localite`,
`o`.`prenom_utilisateur` AS `observateur_prenom`,
`o`.`nom_utilisateur` AS `observateur_nom`,
`o`.`courriel_utilisateur` AS `observateur_courriel`,
concat(`o`.`prenom_utilisateur`,_utf8' ',`o`.`nom_utilisateur`) AS `observateur_nom_complet`,
concat_ws(' ',`o`.`prenom_utilisateur`,`o`.`nom_utilisateur`,concat('<',`o`.`courriel_utilisateur`,'>')) AS `observateur_intitule`,
`o`.`commentaire` AS `observation_commentaire`,
concat(_utf8'nom_num_nomenclatural=',`o`.`nom_sel_nn`,'; ',
'nom_ret=',encodeToDcsv(`o`.`nom_ret`),'; ',
'nom_num_ret=',`o`.`nom_ret_nn`,'; ',
'nom_num_taxonomique=',`o`.`nt`,'; ',
'nom_referentiel=',encodeToDcsv(`o`.`nom_referentiel`),'; ',
'saisie_date_transmission=',`o`.`date_transmission`,'; ',
'saisie_date_creation=',`o`.`date_creation`,'; ',
'ordre=',`o`.`ordre`,'; ',
'station=',encodeToDcsv(`o`.`station`),'; ',
'milieu=',encodeToDcsv(`o`.`milieu`),'; ',
'mots_cles=',encodeToDcsv(`o`.`mots_cles_texte`),'; ',
'zg_utm_secteur=',encodeToDcsv(`zg`.`utm_secteur`),'; ',
'zg_date_modification=',`zg`.`date_modification`) AS `observation_information_complement`,
`o`.`date_modification` AS `saisie_date_modification`,
`o`.`date_creation` AS `saisie_date_creation`
from (`cel_obs` `o`
left join `cel_zones_geo` `zg` on((`o`.`ce_zone_geo` = `zg`.`id_zone_geo`)))
where `o`.`transmission` = 1
AND (`o`.`mots_cles_texte` NOT LIKE '%sensible%' OR `o`.`mots_cles_texte` IS NULL);
 
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
 
 
--
-- Structure de la table `cel_groupes_zones`
--
 
CREATE TABLE IF NOT EXISTS `cel_groupes_zones` (
`id_groupe` varchar(50) NOT NULL,
`valeur` varchar(50) NOT NULL,
KEY `id_groupe` (`id_groupe`),
KEY `valeur` (`valeur`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
--
-- Contenu de la table `cel_groupes_zones`
--
 
INSERT INTO `cel_groupes_zones` (`id_groupe`, `valeur`) VALUES
('metropole_grenoble', 'INSEE-C:38057'),
('metropole_grenoble', 'INSEE-C:38059'),
('metropole_grenoble', 'INSEE-C:38068'),
('metropole_grenoble', 'INSEE-C:38071'),
('metropole_grenoble', 'INSEE-C:38111'),
('metropole_grenoble', 'INSEE-C:38126'),
('metropole_grenoble', 'INSEE-C:38150'),
('metropole_grenoble', 'INSEE-C:38151'),
('metropole_grenoble', 'INSEE-C:38158'),
('metropole_grenoble', 'INSEE-C:38169'),
('metropole_grenoble', 'INSEE-C:38170'),
('metropole_grenoble', 'INSEE-C:38179'),
('metropole_grenoble', 'INSEE-C:38185'),
('metropole_grenoble', 'INSEE-C:38187'),
('metropole_grenoble', 'INSEE-C:38188'),
('metropole_grenoble', 'INSEE-C:38200'),
('metropole_grenoble', 'INSEE-C:38229'),
('metropole_grenoble', 'INSEE-C:38235'),
('metropole_grenoble', 'INSEE-C:38252'),
('metropole_grenoble', 'INSEE-C:38258'),
('metropole_grenoble', 'INSEE-C:38271'),
('metropole_grenoble', 'INSEE-C:38277'),
('metropole_grenoble', 'INSEE-C:38279'),
('metropole_grenoble', 'INSEE-C:38281'),
('metropole_grenoble', 'INSEE-C:38309'),
('metropole_grenoble', 'INSEE-C:38317'),
('metropole_grenoble', 'INSEE-C:38325'),
('metropole_grenoble', 'INSEE-C:38328'),
('metropole_grenoble', 'INSEE-C:38364'),
('metropole_grenoble', 'INSEE-C:38382'),
('metropole_grenoble', 'INSEE-C:38388'),
('metropole_grenoble', 'INSEE-C:38421'),
('metropole_grenoble', 'INSEE-C:38423'),
('metropole_grenoble', 'INSEE-C:38436'),
('metropole_grenoble', 'INSEE-C:38445'),
('metropole_grenoble', 'INSEE-C:38471'),
('metropole_grenoble', 'INSEE-C:38472'),
('metropole_grenoble', 'INSEE-C:38474'),
('metropole_grenoble', 'INSEE-C:38478'),
('metropole_grenoble', 'INSEE-C:38485'),
('metropole_grenoble', 'INSEE-C:38486'),
('metropole_grenoble', 'INSEE-C:38516'),
('metropole_grenoble', 'INSEE-C:38524'),
('metropole_grenoble', 'INSEE-C:38528'),
('metropole_grenoble', 'INSEE-C:38529'),
('metropole_grenoble', 'INSEE-C:38533'),
('metropole_grenoble', 'INSEE-C:38540'),
('metropole_grenoble', 'INSEE-C:38545'),
('metropole_grenoble', 'INSEE-C:38562');
 
-- -----------------------------------------------------
-- Data for table `cel_catalogue_champs_etendus`
-- -----------------------------------------------------
START TRANSACTION;
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('adresse', ' Adresse', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardAligneNbre', ' Nombre d\'arbres d\'alignement', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardCirconferenceA1m', ' Circonférence à 1 m du sol (en m)', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardClasseCirconferenceA1m', ' Classe de circonférence à 1 m du sol (en m)', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardEntretientCoupe', ' Type d\'entretien', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardEtatSanitaire', ' État sanitaire', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardFormation', ' Type de formation', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardHauteurTete', ' Hauteur de la tête (en m)', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardPresenceCavite', ' Présence de cavités', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardPresenceSp', ' Présence d\'espèces sur l\'arbre', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('arbreTetardTailleType', ' Type de taille', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('ChampsArbresTetards', ' Champs du projet arbres tétards', 0, 1, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('ChampsFlorileges', ' Champs du projet florilèges', 0, 1, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('ChampsSauvages', ' Champs du projet Sauvages de ma rue', 0, 1, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('coauteurCourriel', ' Courriel du co-auteur', 0, 0, 1);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('coauteurIntitule', ' Intitulé du co-auteur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('Collecteur', ' Collecteur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('Collecteurobservation', ' Collecteur de l\'observation', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('coordonneelambert93x', ' coordonneeLambert93X', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('coordonneelambert93y', ' coordonneeLambert93Y', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('dateArretTraitementPhyto', ' Date d\'arrêt des traitements', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('dateDerniereIntervention', ' Dernière intervention', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('Determinateur', ' Déterminateur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('hauteurBatimentAvoisinant', ' Hauteur des bâtiments', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('hauteurPlante', ' Hauteur max. (en cm) de la plante', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('intensiteGestion', ' Intensité de gestion', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('itineraireGestion', ' Description de l\'itinéraire de gestion', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('latitudeDebutRue', ' Latitude du début de la rue', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('latitudeFinRue', ' Latitude de fin de la rue', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('longitudeDebutRue', ' Longitude du début de la rue', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('longitudeFinRue', ' Longitude de fin de la rue', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('perceptionRiverainMauvaise', ' Mauvaise perception par les riverains ?', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('perceptionTechnicien', ' Perceptions par l\'équipe', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('periodiciteTraitementPhyto', ' Utilisation de produits phytosanitaires', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('personneFonction', ' Fonction de l\'observateur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('personneService', ' Service de l\'observateur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('personneStructure', ' Structure de l\'observateur', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('resistanceTraitementPhyto', ' Résistance/Résilience', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('revetementSol', ' Revêtement de sol', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('typoUrbaine', ' Typologie', 0, 0, 0);
INSERT INTO `cel_catalogue_champs_etendus` (`cle`, `label`, `invisible`, `groupe`, `prive`) VALUES ('vitesseCroissance', ' Croissance', 0, 0, 0);
 
COMMIT;
 
 
-- -----------------------------------------------------
-- Data for table `cel_catalogue_champs_etendus_liaison`
-- -----------------------------------------------------
START TRANSACTION;
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' adresse');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' Collecteur');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' Collecteurobservation');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' dateArretTraitementPhyto');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' dateDerniereIntervention');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' Determinateur');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' hauteurBatimentAvoisinant');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' hauteurPlante');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' intensiteGestion');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' itineraireGestion');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' latitudeDebutRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' latitudeFinRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' longitudeDebutRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' longitudeFinRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' perceptionRiverainMauvaise');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' perceptionTechnicien');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' periodiciteTraitementPhyto');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' personneFonction');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' personneService');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' personneStructure');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' resistanceTraitementPhyto');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' revetementSol');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' typoUrbaine');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsFlorileges', ' vitesseCroissance');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' adresse');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' latitudeDebutRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' latitudeFinRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' longitudeDebutRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsSauvages', ' longitudeFinRue');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardAligneNbre');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardCirconferenceA1m');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardClasseCirconferenceA1m');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardEntretientCoupe');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardEtatSanitaire');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardFormation');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardHauteurTete');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardPresenceCavite');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardPresenceSp');
INSERT INTO `cel_catalogue_champs_etendus_liaison` (`groupe`, `champ`) VALUES ('ChampsArbresTetards', ' arbreTetardTailleType');
 
COMMIT;
 
/branches/v2.23-rouleau/doc/bdd/schema_bdd.pdf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/branches/v2.23-rouleau/doc/bdd/schema_bdd.pdf
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/branches/v2.23-rouleau/doc/bdd/.
New file
Property changes:
Added: svn:ignore
+schema_bdd.mwb.bak