root/contributed_modules/modules/customcontexts/uninstall.php

Revision 9828, 1.2 kB (checked in by mbrevda, 2 years ago)

re #4335 some bug fixes. MIGRATION CODE IS STILL UNTESTED!!! PLEASE REPORT BUGS TO #4335!!!

Line 
1 <?php /* $Id: uninstall.php $ */
2 //
3 //This program is free software; you can redistribute it and/or
4 //modify it under the terms of the GNU General Public License
5 //as published by the Free Software Foundation; either version 2
6 //of the License, or (at your option) any later version.
7 //
8 //This program is distributed in the hope that it will be useful,
9 //but WITHOUT ANY WARRANTY; without even the implied warranty of
10 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 //GNU General Public License for more details.
12
13 $sql[] = "DROP TABLE IF EXISTS `customcontexts_contexts`";
14 $sql[] = "DROP TABLE IF EXISTS `customcontexts_contexts_list`";
15 $sql[] = "DROP TABLE IF EXISTS `customcontexts_includes`";
16 $sql[] = "DROP TABLE IF EXISTS `customcontexts_includes_list`";
17 $sql[] = "DROP TABLE IF EXISTS `customcontexts_module`";
18 $sql[] = "DROP TABLE IF EXISTS `customcontexts_timegroups`";
19 $sql[] = "DROP TABLE IF EXISTS `customcontexts_timegroups_detail`";
20 foreach ($sql as $q){
21   $db->query($q);
22 }
23 ?>
24 <font color="red"><strong>You have uninstalled the Custom Contexts Module!<BR>
25   Remember to place all of your devices into local contexts or they will not have dialplan access!</strong></font><BR>
26 ?>
Note: See TracBrowser for help on using the browser.