mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
쿼리문 변경
This commit is contained in:
parent
33e3671250
commit
d98fcd10be
2 changed files with 11 additions and 13 deletions
|
|
@ -415,7 +415,7 @@ class autoinstallAdminController extends autoinstall
|
|||
$module_info = $oModuleModel->getModuleConfig('autoinstall');
|
||||
$location_site = $module_info->location_site;
|
||||
$download_server = $module_info->download_server;
|
||||
|
||||
|
||||
$oModuleInstaller->setServerUrl($download_server);
|
||||
|
||||
$oModuleInstaller->setPassword($ftp_password);
|
||||
|
|
@ -440,18 +440,11 @@ class autoinstallAdminController extends autoinstall
|
|||
|
||||
$oModuleController = getController('module');
|
||||
$output = $oModuleController->updateModuleConfig('autoinstall', $args);
|
||||
|
||||
// init. autoinstall DB data
|
||||
$oDB = DB::getInstance();
|
||||
// truncate table rx_ai_installed_packages
|
||||
$sql_a = 'truncate table '.$oDB->prefix.'ai_installed_packages';
|
||||
$oDB->_query($sql_a);
|
||||
// truncate table rx_ai_remote_categories
|
||||
$sql_b = 'truncate table '.$oDB->prefix.'ai_remote_categories';
|
||||
$oDB->_query($sql_b);
|
||||
// truncate table rx_autoinstall_packages
|
||||
$sql_c = 'truncate table '.$oDB->prefix.'autoinstall_packages';
|
||||
$oDB->_query($sql_c);
|
||||
|
||||
// init. DB tables
|
||||
executeQuery("autoinstall.deletePackages");
|
||||
executeQuery("autoinstall.deleteCategory");
|
||||
executeQuery("autoinstall.deleteInstalledPackage");
|
||||
|
||||
// default setting end
|
||||
$this->setMessage('success_updated');
|
||||
|
|
|
|||
5
modules/autoinstall/queries/deletePackages.xml
Normal file
5
modules/autoinstall/queries/deletePackages.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<query id="deletePackages" action="delete">
|
||||
<tables>
|
||||
<table name="autoinstall_packages" />
|
||||
</tables>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue