Skip to content

Commit 25820ec

Browse files
author
amma35
committed
Update xml
Change version
1 parent fd23926 commit 25820ec

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

addressing.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</authors>
2727
<versions>
2828
<version>
29-
<num>2.4.0</num>
29+
<num>2.5.0</num>
3030
<compatibility>9.1.1</compatibility>
3131
</version>
3232
<version>

hook.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function plugin_addressing_install() {
3737
&&!TableExists("glpi_plugin_addressing")
3838
&& !TableExists("glpi_plugin_addressing_configs")) {
3939

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

4242
} else {
4343

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

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

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

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

141-
$migration = new Migration("3.0.0");
141+
$migration = new Migration("2.5.0");
142142
$tables = array("glpi_plugin_addressing_addressings",
143-
"glpi_plugin_addressing_configs");
143+
"glpi_plugin_addressing_configs",
144+
"glpi_plugin_addressing_filters");
144145

145146
foreach($tables as $table) {
146147
$migration->dropTable($table);

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function plugin_version_addressing() {
6868

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

0 commit comments

Comments
 (0)