@@ -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 );
0 commit comments