X-Git-Url: http://git.dj3c1t.com/index.cgi?a=blobdiff_plain;f=app%2Fdata%2Fmodules%2Fxml%2Fsml_data_install.php;h=0b9ea5580588072f62962b435c5a83a7bd7b6362;hb=37049b502efdf68a562ce63d8f37a820c66bc887;hp=e3c49a03c287ef0ead991fd3b1cdfd74cb0ae83c;hpb=aa56057fe2634113eb8d1a50ed54b6a8988645a8;p=mw_sourceml diff --git a/app/data/modules/xml/sml_data_install.php b/app/data/modules/xml/sml_data_install.php index e3c49a0..0b9ea55 100644 --- a/app/data/modules/xml/sml_data_install.php +++ b/app/data/modules/xml/sml_data_install.php @@ -16,11 +16,9 @@ $res = $sgbd->data_exists("sml_sources"); if(isset($res)){ if($res) $RES = 1; } else $RES = -1; $res = $sgbd->data_exists("sml_sources_access"); if(isset($res)){ if($res) $RES = 1; } else $RES = -1; $res = $sgbd->data_exists("sml_sources_authors"); if(isset($res)){ if($res) $RES = 1; } else $RES = -1; - $res = $sgbd->data_exists("sml_sources_infos"); if(isset($res)){ if($res) $RES = 1; } else $RES = -1; $res = $sgbd->data_exists("sml_source_cache"); if(isset($res)){ if($res) $RES = 1; } else $RES = -1; $res = $sgbd->data_exists("sml_source_compositions"); if(isset($res)){ if($res) $RES = 1; } else $RES = -1; $res = $sgbd->data_exists("sml_source_derivations"); if(isset($res)){ if($res) $RES = 1; } else $RES = -1; - $res = $sgbd->data_exists("sml_source_documents"); if(isset($res)){ if($res) $RES = 1; } else $RES = -1; $res = $sgbd->data_exists("sml_sources_invitations"); if(isset($res)){ if($res) $RES = 1; } else $RES = -1; if($RES === -1) return "impossible de savoir si les tables existent deja. installation annulee"; @@ -36,11 +34,9 @@ if(!$sgbd->create_data("sml_sources")) return "impossible de creer la table sml_sources"; if(!$sgbd->create_data("sml_sources_access")) return "impossible de creer la table sml_sources_access"; if(!$sgbd->create_data("sml_sources_authors")) return "impossible de creer la table sml_sources_authors"; - if(!$sgbd->create_data("sml_sources_infos")) return "impossible de creer la table sml_sources_infos"; if(!$sgbd->create_data("sml_source_cache")) return "impossible de creer la table sml_source_cache"; if(!$sgbd->create_data("sml_source_compositions")) return "impossible de creer la table sml_source_compositions"; if(!$sgbd->create_data("sml_source_derivations")) return "impossible de creer la table sml_source_derivations"; - if(!$sgbd->create_data("sml_source_documents")) return "impossible de creer la table sml_source_documents"; if(!$sgbd->create_data("sml_sources_invitations")) return "impossible de creer la table sml_sources_invitations"; $ERROR = false; @@ -239,11 +235,9 @@ if(!$ERROR) if(!$sgbd->remove_data("sml_sources")) $ERROR = true; if(!$ERROR) if(!$sgbd->remove_data("sml_sources_access")) $ERROR = true; if(!$ERROR) if(!$sgbd->remove_data("sml_sources_authors")) $ERROR = true; - if(!$ERROR) if(!$sgbd->remove_data("sml_sources_infos")) $ERROR = true; if(!$ERROR) if(!$sgbd->remove_data("sml_source_cache")) $ERROR = true; if(!$ERROR) if(!$sgbd->remove_data("sml_source_compositions")) $ERROR = true; if(!$ERROR) if(!$sgbd->remove_data("sml_source_derivations")) $ERROR = true; - if(!$ERROR) if(!$sgbd->remove_data("sml_source_documents")) $ERROR = true; if(!$ERROR) if(!$sgbd->remove_data("sml_sources_invitations")) $ERROR = true; if(!$ERROR) if(