Welcome, Guest
Username Password: Remember me

tables not dropped on uninstall
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: tables not dropped on uninstall

tables not dropped on uninstall 17 Feb 2010 13:26 #1890

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
 
$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
 
$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

Attachment uninstall.biblestudy.txt not found

Attachments:
Last Edit: 17 Feb 2010 13:28 by Richard Hunt.

Re:tables not dropped on uninstall 17 Feb 2010 14:16 #1893

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
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
"You shall know the truth and the truth shall set you free." JC
  • Page:
  • 1
Time to create page: 0.66 seconds