mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 00:58:48 +02:00
N°8796 - Add PHP code style validation in iTop and extensions - format whole code base
This commit is contained in:
@@ -242,8 +242,7 @@ abstract class ModuleInstallerAPI
|
||||
}
|
||||
|
||||
// Simple rename
|
||||
if ($sOrigTable === $sDstTable && !$bDstTableFieldExists)
|
||||
{
|
||||
if ($sOrigTable === $sDstTable && !$bDstTableFieldExists) {
|
||||
$sFieldSpec = CMDBSource::GetFieldSpec($sOrigTable, $sOrigColumn);
|
||||
$sQueryRename = /** @lang MariaDB */ "ALTER TABLE `{$sOrigTable}` CHANGE `{$sOrigColumn}` `{$sDstColumn}` {$sFieldSpec};";
|
||||
CMDBSource::Query($sQueryRename);
|
||||
|
||||
Reference in New Issue
Block a user