Joomla Bible Study

...components for the glory of God
Welcome, Guest
Please Login or Register.    Lost Password?

tables not dropped on uninstall
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: tables not dropped on uninstall
#1890
tables not dropped on uninstall 5 Months, 1 Week ago  
In the latest version (6.1.5 update 2), two tables aren't dropped when uninstalling with the 'drop tables' admin option set.
The two tables are:
#__bsms_locations
and
#__bsms_share

I believe that two blocks of code need to be added to com_biblestudy/uninstall.biblestudy.php after line 153:

bsms_locations
Code:


$database->setQuery ("DROP TABLE IF EXISTS #__bsms_locations");
$database->query();
if ($database->getErrorNum()) {
echo 'Database Error: '.$database->stderr().' Error ';
return false;
}



and straight after for bsms_share
Code:


$database->setQuery ("DROP TABLE IF EXISTS #__bsms_share");
$database->query();
if ($database->getErrorNum()) {
echo 'Database Error: '.$database->stderr().' Error ';
return false;
}



i've tested this and it works fine.. good to go in 6.1.x updates.. though am i right in thinking the installation is changing for 6.2?
Attached updated file... rename .txt to .php
File Attachment:
File Name: uninstall.biblestudy.txt
File Size: 6437
Richard Hunt
Moderator
Posts: 48
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/17 14:28 By richardjahunt.
The administrator has disabled public write access.
 
#1893
Re:tables not dropped on uninstall 5 Months, 1 Week ago  
Thanks for the catch. I actually caught that error earlier and made the changes to the Trunk (for version 6.2) but hadn't put it in 6.1. On our next release 6.1.6 we'll make that available!

Tom
Tom
Administrator
Posts: 855
graph
User Offline Click here to see the profile of this user
"You shall know the truth and the truth shall set you free." JC
The administrator has disabled public write access.
 
Go to topPage: 1