Skip to content

Commit

Permalink
Update xml
Browse files Browse the repository at this point in the history
Change version
  • Loading branch information
amma35 committed Dec 2, 2016
1 parent fd23926 commit 25820ec
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addressing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</authors>
<versions>
<version>
<num>2.4.0</num>
<num>2.5.0</num>
<compatibility>9.1.1</compatibility>
</version>
<version>
Expand Down
13 changes: 7 additions & 6 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function plugin_addressing_install() {
&&!TableExists("glpi_plugin_addressing")
&& !TableExists("glpi_plugin_addressing_configs")) {

$DB->runFile(GLPI_ROOT ."/plugins/addressing/sql/empty-3.0.0.sql");
$DB->runFile(GLPI_ROOT ."/plugins/addressing/sql/empty-2.5.0.sql");

} else {

Expand Down Expand Up @@ -85,9 +85,9 @@ function plugin_addressing_install() {
$DB->runFile(GLPI_ROOT ."/plugins/addressing/sql/update-2.4.0.sql");
}

//Version 3.0.0
//Version 2.5.0
if (!FieldExists("glpi_plugin_addressing_addressings", "locations_id") && !FieldExists("glpi_plugin_addressing_addressings", "fqdns_id")) {
$DB->runFile(GLPI_ROOT ."/plugins/addressing/sql/update-3.0.0.sql");
$DB->runFile(GLPI_ROOT ."/plugins/addressing/sql/update-2.5.0.sql");
}

}
Expand Down Expand Up @@ -125,7 +125,7 @@ function plugin_addressing_install() {
//Add all rights for current user profile
PluginAddressingProfile::createFirstAccess($_SESSION['glpiactiveprofile']['id']);
//Drop old profile table : not used anymore
$migration = new Migration("3.0.0");
$migration = new Migration("2.5.0");
$migration->dropTable('glpi_plugin_addressing_profiles');

return true;
Expand All @@ -138,9 +138,10 @@ function plugin_addressing_uninstall() {
include_once (GLPI_ROOT."/plugins/addressing/inc/profile.class.php");
include_once (GLPI_ROOT."/plugins/addressing/inc/menu.class.php");

$migration = new Migration("3.0.0");
$migration = new Migration("2.5.0");
$tables = array("glpi_plugin_addressing_addressings",
"glpi_plugin_addressing_configs");
"glpi_plugin_addressing_configs",
"glpi_plugin_addressing_filters");

foreach($tables as $table) {
$migration->dropTable($table);
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function plugin_version_addressing() {

return array(
'name' => _n('IP Adressing', 'IP Adressing', 2, 'addressing'),
'version' => '3.0.0',
'version' => '2.5.0',
'author' => 'Gilles Portheault, Xavier Caillaud, Remi Collet, Nelly Mahu-Lasson',
'license' => 'GPLv2+',
'homepage' => 'https://github.com/pluginsGLPI/addressing',
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 25820ec

Please sign in to comment.