Skip to content
Snippets Groups Projects

[TASK] Add updateNecessary for lanugage column

Merged Matthias Adrowski requested to merge Bugfix_AddNecessaryCheckToWizard into master
1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
@@ -92,6 +92,16 @@ class LanguageMigrationUpdate implements UpgradeWizardInterface {
* @return bool
*/
public function updateNecessary(): bool {
try {
$connectionPool = GeneralUtility::makeInstance(ConnectionPool::class);
$queryBuilder = $connectionPool->getQueryBuilderForTable('tx_sgmail_domain_model_mail');
$queryBuilder->select('language')
->from('tx_sgmail_domain_model_mail')
->execute();
}
catch (\Exception $e){
return false;
}
return TRUE;
}
Loading