mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 14:28:53 +02:00
N°4332 - Fix table prefix
This commit is contained in:
@@ -71,7 +71,11 @@ class AuthentLDAPInstaller extends ModuleInstallerAPI
|
||||
public static function AfterDataLoad(Config $oConfiguration, $sPreviousVersion, $sCurrentVersion)
|
||||
{
|
||||
// Create missing table entries
|
||||
$sSQL = "insert into priv_user_ldap (id) select U.id from priv_user as U left join priv_user_ldap as L on U.id = L.id where U.finalclass='UserLDAP' and isnull(L.id);";
|
||||
$sTablePrefix = $oConfiguration->Get('db_subname');
|
||||
if (strlen($sTablePrefix) != 0) {
|
||||
$sTablePrefix .= '.';
|
||||
}
|
||||
$sSQL = "insert into {$sTablePrefix}priv_user_ldap (id) select U.id from {$sTablePrefix}priv_user as U left join {$sTablePrefix}priv_user_ldap as L on U.id = L.id where U.finalclass='UserLDAP' and isnull(L.id);";
|
||||
CMDBSource::Query($sSQL);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user