diff --git a/Console/ReencryptTfaData.php b/Console/ReencryptTfaData.php index 74b7c4b..6f4d193 100644 --- a/Console/ReencryptTfaData.php +++ b/Console/ReencryptTfaData.php @@ -84,6 +84,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int */ $tableName = $this->resourceConnection->getTableName($table); $connection = $this->resourceConnection->getConnection(); + if (!$connection->isTableExists($tableName)) { + $output->writeln("The table {$tableName} doesn't exist"); + return Cli::RETURN_SUCCESS; + } $field = $connection->quoteIdentifier(sprintf('%s.%s', $tableName, $column)); $select = $connection->select()