You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** @var string The name and signature of the console command. */
23
+
/**
24
+
* @var string The name and signature of the console command.
25
+
*/
24
26
protected$signature = 'database:find-invalid-values {connection=default} {--check=* : Check only specific types of issues. Available types: {null, datetime, long_text, long_string}}';
25
27
26
-
/** @var string The console command description. */
28
+
/**
29
+
* @var string The console command description.
30
+
*/
27
31
protected$description = 'Find invalid data created in non-strict SQL mode.';
28
32
29
33
privateint$valuesWithIssuesFound = 0;
30
34
31
-
/** @throws \Doctrine\DBAL\Exception */
35
+
/**
36
+
* @throws \Doctrine\DBAL\Exception
37
+
*/
32
38
publicfunctionhandle(ConnectionResolverInterface$connections): int
33
39
{
34
40
$connection = $this->getConnection($connections);
@@ -106,8 +112,7 @@ private function checkNullOnNotNullableColumn(Column $column, Connection $connec
/** @var string The name and signature of the console command. */
30
+
/**
31
+
* @var string The name and signature of the console command.
32
+
*/
30
33
protected$signature = 'database:find-risky-columns {connection=default} {--threshold=70 : Percentage occupied rows number on which the command should treat it as an issue}';
31
34
32
-
/** @var string The console command description. */
35
+
/**
36
+
* @var string The console command description.
37
+
*/
33
38
protected$description = 'Find risky auto-incremental columns on databases which values are close to max possible values.';
if ($percentageUsed >= $thresholdAlarmPercentage) {
154
-
$this->error("{$connection->getDatabaseName()}.{$table->getName()}.{$columnName} is full for {$percentageUsed}% (threshold for allowed usage is {$thresholdAlarmPercentage}%)", 'quiet');
161
+
$this->error("{$connection->getDatabaseName()}.{$tableName}.{$columnName} is full for {$percentageUsed}% (threshold for allowed usage is {$thresholdAlarmPercentage}%)", 'quiet');
0 commit comments