/trunk/scripts/initialiserEflore.sh |
---|
4,11 → 4,26 |
CHEMIN_TBF_CLI="/home/jpm/web/eflore/eflore-projets/scripts" |
MEMORY_LIMIT="3500M" |
# Nécessite la création préalable de la base de données tb_eflore |
echo "Nettoyage et chargement en cours..."; |
echo "BDNT :"; |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdnt -a supprimerTous |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdnt -a chargerTous |
echo "BDTFX :"; |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a supprimerTous |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php bdtfx -a chargerTous |
echo "INSEE-D :"; |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a supprimerTous |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php insee_d -a chargerTous |
echo "ISO-639-1 :"; |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a supprimerTous |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_639_1 -a chargerTous |
echo "ISO-3166-1 :"; |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a supprimerTous |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php iso_3166_1 -a chargerTous |
echo "NVJFL :"; |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a supprimerTous |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php nvjfl -a chargerTous |
# Nécessite la création préalable de la base de données tb_cel |
# Nécessite la création préalable de la base de données tb_cel |
echo "CEL :"; |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a supprimerTous |
$CHEMIN_PHP/php -d memory_limit=$MEMORY_LIMIT $CHEMIN_TBF_CLI/cli.php cel -a chargerTous |
/trunk/scripts/modules/bdnt/Bdnt.php |
---|
24,6 → 24,9 |
case 'test' : |
$this->tester(); |
break; |
case 'supprimerTous' : |
$this->supprimerTous(); |
break; |
default : |
throw new Exception("Erreur : la commande '$cmd' n'existe pas!"); |
} |
49,5 → 52,10 |
'IGNORE 0 LINES'; |
$this->getBdd()->requeter($requete); |
} |
private function supprimerTous() { |
$requete = "DROP TABLE bdnt_meta, bdnt_ontologies_v4_30"; |
$this->getBdd()->requeter($requete); |
} |
} |
?> |
/trunk/scripts/modules/bdtfx/Bdtfx.php |
---|
50,6 → 50,9 |
case 'supprimerDonneesTestMultiVersion' : |
$this->supprimerDonneesTestMultiVersion(); |
break; |
case 'supprimerTous' : |
$this->supprimerTous(); |
break; |
default : |
throw new Exception("Erreur : la commande '$cmd' n'existe pas!"); |
} |
151,5 → 154,10 |
$requete = "DROP TABLE $tableTest"; |
$this->getBdd()->requeter($requete); |
} |
private function supprimerTous() { |
$requete = "DROP TABLE bdtfx_meta, bdtfx_v1_01, bdtfx_v1_02"; |
$this->getBdd()->requeter($requete); |
} |
} |
?> |
/trunk/scripts/modules/iso_3166_1/Iso31661.php |
---|
31,6 → 31,9 |
case 'test' : |
$this->tester(); |
break; |
case 'supprimerTous' : |
$this->supprimerTous(); |
break; |
default : |
$this->traiterErreur('Erreur : la commande "%s" n\'existe pas!', array($cmd)); |
} |
70,5 → 73,10 |
'IGNORE 1 LINES'; |
$this->getBdd()->requeter($requete); |
} |
private function supprimerTous() { |
$requete = "DROP TABLE iso_3166_1_meta, iso_3166_1_ontologies_v2006, iso_3166_1_v2006"; |
$this->getBdd()->requeter($requete); |
} |
} |
?> |
/trunk/scripts/modules/iso_639_1/Iso6391.php |
---|
27,6 → 27,9 |
case 'test' : |
$this->tester(); |
break; |
case 'supprimerTous' : |
$this->supprimerTous(); |
break; |
default : |
throw new Exception("Erreur : la commande '$cmd' n'existe pas!"); |
} |
52,5 → 55,10 |
'IGNORE 0 LINES'; |
$this->getBdd()->requeter($requete); |
} |
private function supprimerTous() { |
$requete = "DROP TABLE iso_639_1_meta, iso_639_1_v2002"; |
$this->getBdd()->requeter($requete); |
} |
} |
?> |
/trunk/scripts/modules/nvjfl/Nvjfl.php |
---|
42,6 → 42,9 |
case 'chargerOntologies' : |
$this->chargerOntologies(); |
break; |
case 'supprimerTous' : |
$this->supprimerTous(); |
break; |
default : |
throw new Exception("Erreur : la commande '$cmd' n'existe pas!"); |
} |
168,5 → 171,10 |
'IGNORE 1 LINES'; |
$this->getBdd()->requeter($requete); |
} |
private function supprimerTous() { |
$requete = "DROP TABLE nvjfl_biblio_v2007, nvjfl_lien_biblio_v2007, nvjfl_meta, nvjfl_ontologies_v2007, nvjfl_v2007"; |
$this->getBdd()->requeter($requete); |
} |
} |
?> |
/trunk/scripts/modules/cel/Cel.php |
---|
25,6 → 25,9 |
$this->chargerStructureSql(); |
$this->chargerCel(); |
break; |
case 'supprimerTous' : |
$this->supprimerTous(); |
break; |
default : |
throw new Exception("Erreur : la commande '$cmd' n'existe pas!"); |
} |
54,5 → 57,10 |
'IGNORE 1 LINES'; |
$this->getBdd()->requeter($requete); |
} |
private function supprimerTous() { |
$requete = "DROP TABLE cel_images, cel_inventory, cel_mots_cles_images, cel_mots_cles_obs, cel_obs_images, locations"; |
$this->getBdd()->requeter($requete); |
} |
} |
?> |
/trunk/scripts/modules/insee_d/InseeD.php |
---|
28,6 → 28,9 |
case 'chargerOntologies' : |
$this->chargerOntologies(); |
break; |
case 'supprimerTous' : |
$this->supprimerTous(); |
break; |
default : |
throw new Exception("Erreur : la commande '$cmd' n'existe pas!"); |
} |
63,5 → 66,10 |
'IGNORE 1 LINES'; |
$this->getBdd()->requeter($requete); |
} |
private function supprimerTous() { |
$requete = "DROP TABLE insee_d_meta, insee_d_ontologies_v2011, insee_d_v2011"; |
$this->getBdd()->requeter($requete); |
} |
} |
?> |