mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 01:23:32 +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');
|
$module_info = $oModuleModel->getModuleConfig('autoinstall');
|
||||||
$location_site = $module_info->location_site;
|
$location_site = $module_info->location_site;
|
||||||
$download_server = $module_info->download_server;
|
$download_server = $module_info->download_server;
|
||||||
|
|
||||||
$oModuleInstaller->setServerUrl($download_server);
|
$oModuleInstaller->setServerUrl($download_server);
|
||||||
|
|
||||||
$oModuleInstaller->setPassword($ftp_password);
|
$oModuleInstaller->setPassword($ftp_password);
|
||||||
|
|
@ -440,18 +440,11 @@ class autoinstallAdminController extends autoinstall
|
||||||
|
|
||||||
$oModuleController = getController('module');
|
$oModuleController = getController('module');
|
||||||
$output = $oModuleController->updateModuleConfig('autoinstall', $args);
|
$output = $oModuleController->updateModuleConfig('autoinstall', $args);
|
||||||
|
|
||||||
// init. autoinstall DB data
|
// init. DB tables
|
||||||
$oDB = DB::getInstance();
|
executeQuery("autoinstall.deletePackages");
|
||||||
// truncate table rx_ai_installed_packages
|
executeQuery("autoinstall.deleteCategory");
|
||||||
$sql_a = 'truncate table '.$oDB->prefix.'ai_installed_packages';
|
executeQuery("autoinstall.deleteInstalledPackage");
|
||||||
$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);
|
|
||||||
|
|
||||||
// default setting end
|
// default setting end
|
||||||
$this->setMessage('success_updated');
|
$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