PDO::ERRMODE_EXCEPTION] ); foreach (['tx_fecomment_summary', 'tx_fecomment_feedback'] as $table) { $count = 0; try { $count = (int)$pdo->query('SELECT COUNT(*) FROM `' . $table . '`')->fetchColumn(); } catch (\Throwable) { echo "$table: existiert nicht - ok\n"; continue; } if ($count > 0) { exit("$table enthaelt $count Zeilen - ABBRUCH, nicht droppen!\n"); } $pdo->exec('DROP TABLE `' . $table . '`'); echo "$table: geloescht (war leer)\n"; } echo "Fertig. Jetzt: vendor/bin/typo3 cache:flush && vendor/bin/typo3 extension:setup\n";