Subversion Repositories eFlore/Applications.coel

Rev

Rev 76 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 76 Rev 78
Line 1... Line 1...
1
# Encodage : UTF-8
1
# Encodage : UTF-8
2
# Nom : Coel v1.0
2
# Nom : Coel v1.0
3
# Date de création : 2009-02-18 16:46:33
3
# Date de création : 2009-02-18 19:12:47
4
#---------------------------------------------------------------------------------------------------------------------#
4
#---------------------------------------------------------------------------------------------------------------------#
5
# Création des tables
5
# Création des tables
6
CREATE TABLE IF NOT EXISTS `tb_coel`.`coel_collection` (
6
CREATE TABLE IF NOT EXISTS `tb_coel`.`coel_collection` (
7
	`cc_id_collection` INTEGER NOT NULL auto_increment  COMMENT 'Identifiant de la collection.',
7
	`cc_id_collection` INTEGER NOT NULL auto_increment  COMMENT 'Identifiant de la collection.',
8
	`cc_ce_projet` INTEGER NOT NULL   COMMENT 'Identifiant du projet dans lequel les informations de la collection sont saisies.',
8
	`cc_ce_projet` INTEGER NOT NULL   COMMENT 'Identifiant du projet dans lequel les informations de la collection sont saisies.',
Line 416... Line 416...
416
#---------------------------------------------------------------------------------------------------------------------#
416
#---------------------------------------------------------------------------------------------------------------------#
417
# Insertion des méta-données
417
# Insertion des méta-données
418
CREATE TABLE IF NOT EXISTS `tb_coel`.`coel_collection_a_commentaire` (
418
CREATE TABLE IF NOT EXISTS `tb_coel`.`coel_collection_a_commentaire` (
419
	`ccac_id_collection` INTEGER NOT NULL   COMMENT 'Identifiant de la collection.',
419
	`ccac_id_collection` INTEGER NOT NULL   COMMENT 'Identifiant de la collection.',
420
	`ccac_id_commentaire` INTEGER NOT NULL   COMMENT 'Identifiant du commentaire.',
420
	`ccac_id_commentaire` INTEGER NOT NULL   COMMENT 'Identifiant du commentaire.',
421
	`ccac_ce_type` INTEGER    COMMENT 'Type de commentaire.',
421
	`ccac_truk_type` VARCHAR(255)    COMMENT 'Liste des types de commentaires séparés par des points virgules.',
422
	`ccac_ce_meta` INTEGER    COMMENT 'Identifiant des métadonnées de cet enregistrement.',
422
	`ccac_ce_meta` INTEGER    COMMENT 'Identifiant des métadonnées de cet enregistrement.',
423
PRIMARY KEY(`ccac_id_collection`, `ccac_id_commentaire`)
423
PRIMARY KEY(`ccac_id_collection`, `ccac_id_commentaire`)
424
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Permet de lister les commentaires / notes faits sur une collection.' AUTO_INCREMENT=1;
424
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Permet de lister les commentaires / notes faits sur une collection.' AUTO_INCREMENT=1;
Line 425... Line 425...
425
 
425
 
Line 3607... Line 3607...
3607
	INSERT INTO `tb_coel`.`coel_meta_colonne` (`cmc_id_champ` ,`cmc_ce_projet` ,`cmc_ce_liste` ,`cmc_ce_table` ,`cmc_nom` ,`cmc_abreviation` ,`cmc_description` ,`cmc_ce_format_sql` ,`cmc_taille` ,`cmc_ce_meta`) VALUES 
3607
	INSERT INTO `tb_coel`.`coel_meta_colonne` (`cmc_id_champ` ,`cmc_ce_projet` ,`cmc_ce_liste` ,`cmc_ce_table` ,`cmc_nom` ,`cmc_abreviation` ,`cmc_description` ,`cmc_ce_format_sql` ,`cmc_taille` ,`cmc_ce_meta`) VALUES 
3608
	('287', '1', '0', '102', 'ccac_id_commentaire', 'ccac_id_c', 'Identifiant du commentaire.', '15', '', '793');
3608
	('287', '1', '0', '102', 'ccac_id_commentaire', 'ccac_id_c', 'Identifiant du commentaire.', '15', '', '793');
3609
INSERT INTO `tb_coel`.`coel_meta_historique_ligne` (`cmhl_id_historique_ligne` ,`cmhl_ce_table` ,`cmhl_cle_ligne` ,`cmhl_enregistrement` ,`cmhl_date_modification` ,`cmhl_notes` ,`cmhl_ce_modifier_par` ,`cmhl_ce_etat` ,`cmhl_ip`) VALUES 
3609
INSERT INTO `tb_coel`.`coel_meta_historique_ligne` (`cmhl_id_historique_ligne` ,`cmhl_ce_table` ,`cmhl_cle_ligne` ,`cmhl_enregistrement` ,`cmhl_date_modification` ,`cmhl_notes` ,`cmhl_ce_modifier_par` ,`cmhl_ce_etat` ,`cmhl_ip`) VALUES 
3610
	('793', '116', '287', NULL , NOW( ) , 'Ajout des informations sur une colonne.', '1', '1', '162.38.234.1');
3610
	('793', '116', '287', NULL , NOW( ) , 'Ajout des informations sur une colonne.', '1', '1', '162.38.234.1');
3611
	INSERT INTO `tb_coel`.`coel_meta_colonne` (`cmc_id_champ` ,`cmc_ce_projet` ,`cmc_ce_liste` ,`cmc_ce_table` ,`cmc_nom` ,`cmc_abreviation` ,`cmc_description` ,`cmc_ce_format_sql` ,`cmc_taille` ,`cmc_ce_meta`) VALUES 
3611
	INSERT INTO `tb_coel`.`coel_meta_colonne` (`cmc_id_champ` ,`cmc_ce_projet` ,`cmc_ce_liste` ,`cmc_ce_table` ,`cmc_nom` ,`cmc_abreviation` ,`cmc_description` ,`cmc_ce_format_sql` ,`cmc_taille` ,`cmc_ce_meta`) VALUES 
3612
	('288', '1', '1068', '102', 'ccac_ce_type', 'ccac_ce_t', 'Type de commentaire.', '15', '', '794');
3612
	('288', '1', '1068', '102', 'ccac_truk_type', 'ccac_tt', 'Liste des types de commentaires séparés par des points virgules.', '29', '255', '794');
3613
INSERT INTO `tb_coel`.`coel_meta_historique_ligne` (`cmhl_id_historique_ligne` ,`cmhl_ce_table` ,`cmhl_cle_ligne` ,`cmhl_enregistrement` ,`cmhl_date_modification` ,`cmhl_notes` ,`cmhl_ce_modifier_par` ,`cmhl_ce_etat` ,`cmhl_ip`) VALUES 
3613
INSERT INTO `tb_coel`.`coel_meta_historique_ligne` (`cmhl_id_historique_ligne` ,`cmhl_ce_table` ,`cmhl_cle_ligne` ,`cmhl_enregistrement` ,`cmhl_date_modification` ,`cmhl_notes` ,`cmhl_ce_modifier_par` ,`cmhl_ce_etat` ,`cmhl_ip`) VALUES 
3614
	('794', '116', '288', NULL , NOW( ) , 'Ajout des informations sur une colonne.', '1', '1', '162.38.234.1');
3614
	('794', '116', '288', NULL , NOW( ) , 'Ajout des informations sur une colonne.', '1', '1', '162.38.234.1');
3615
	INSERT INTO `tb_coel`.`coel_meta_colonne` (`cmc_id_champ` ,`cmc_ce_projet` ,`cmc_ce_liste` ,`cmc_ce_table` ,`cmc_nom` ,`cmc_abreviation` ,`cmc_description` ,`cmc_ce_format_sql` ,`cmc_taille` ,`cmc_ce_meta`) VALUES 
3615
	INSERT INTO `tb_coel`.`coel_meta_colonne` (`cmc_id_champ` ,`cmc_ce_projet` ,`cmc_ce_liste` ,`cmc_ce_table` ,`cmc_nom` ,`cmc_abreviation` ,`cmc_description` ,`cmc_ce_format_sql` ,`cmc_taille` ,`cmc_ce_meta`) VALUES 
3616
	('289', '1', '0', '102', 'ccac_ce_meta', 'ccac_ce_m', 'Identifiant des métadonnées de cet enregistrement.', '15', '', '795');
3616
	('289', '1', '0', '102', 'ccac_ce_meta', 'ccac_ce_m', 'Identifiant des métadonnées de cet enregistrement.', '15', '', '795');
3617
INSERT INTO `tb_coel`.`coel_meta_historique_ligne` (`cmhl_id_historique_ligne` ,`cmhl_ce_table` ,`cmhl_cle_ligne` ,`cmhl_enregistrement` ,`cmhl_date_modification` ,`cmhl_notes` ,`cmhl_ce_modifier_par` ,`cmhl_ce_etat` ,`cmhl_ip`) VALUES 
3617
INSERT INTO `tb_coel`.`coel_meta_historique_ligne` (`cmhl_id_historique_ligne` ,`cmhl_ce_table` ,`cmhl_cle_ligne` ,`cmhl_enregistrement` ,`cmhl_date_modification` ,`cmhl_notes` ,`cmhl_ce_modifier_par` ,`cmhl_ce_etat` ,`cmhl_ip`) VALUES 
Line 3732... Line 3732...
3732
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3732
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3733
VALUES ('tb_coel', 'coel_collection_a_commentaire', 'ccac_id_collection', 'tb_coel', 'coel_collection', 'cc_id_collection');
3733
VALUES ('tb_coel', 'coel_collection_a_commentaire', 'ccac_id_collection', 'tb_coel', 'coel_collection', 'cc_id_collection');
3734
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3734
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3735
VALUES ('tb_coel', 'coel_collection_a_commentaire', 'ccac_id_commentaire', 'tb_coel', 'coel_commentaire', 'ccm_id_commentaire');
3735
VALUES ('tb_coel', 'coel_collection_a_commentaire', 'ccac_id_commentaire', 'tb_coel', 'coel_commentaire', 'ccm_id_commentaire');
3736
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3736
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3737
VALUES ('tb_coel', 'coel_collection_a_commentaire', 'ccac_ce_type', 'tb_coel', 'coel_meta_liste_valeur', 'cmlv_id_valeur');
-
 
3738
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
-
 
3739
VALUES ('tb_coel', 'coel_collection_a_commentaire', 'ccac_ce_meta', 'tb_coel', 'coel_meta_historique_ligne', 'cmhl_id_historique_ligne');
3737
VALUES ('tb_coel', 'coel_collection_a_commentaire', 'ccac_ce_meta', 'tb_coel', 'coel_meta_historique_ligne', 'cmhl_id_historique_ligne');
3740
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3738
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3741
VALUES ('tb_coel', 'coel_personne', 'cp_ce_meta', 'tb_coel', 'coel_meta_historique_ligne', 'cmhl_id_historique_ligne');
3739
VALUES ('tb_coel', 'coel_personne', 'cp_ce_meta', 'tb_coel', 'coel_meta_historique_ligne', 'cmhl_id_historique_ligne');
3742
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3740
INSERT INTO `phpmyadmin`.`pma_relation` (`master_db`, `master_table`, `master_field`, `foreign_db`, `foreign_table`, `foreign_field`) 
3743
VALUES ('tb_coel', 'coel_personne_a_relation', 'cpar_ce_meta', 'tb_coel', 'coel_meta_historique_ligne', 'cmhl_id_historique_ligne');
3741
VALUES ('tb_coel', 'coel_personne_a_relation', 'cpar_ce_meta', 'tb_coel', 'coel_meta_historique_ligne', 'cmhl_id_historique_ligne');