diff --git a/Unit_testing/Schema.php b/Unit_testing/Schema.php index 6770e6a..9472596 100644 --- a/Unit_testing/Schema.php +++ b/Unit_testing/Schema.php @@ -1018,6 +1018,15 @@ self::$reporter->report( Reporter::STATUS_WARNING, 'Found alternative name ā€œ%sā€ for %s.%s; we recommend renaming it to ā€œ%sā€. This warning may lead to further errors below.', array( $alias, $this->getTableName(), $columnName, $columnName ) ); + $logMessage = sprintf( '%s: user %s used alias %s.%s for %s.%s%s', + date( 'Y-m-d H:i:s' ), + ORACLE_USERNAME, + $this->getTableName(), + $alias, + $this->getTableName(), + $columnName, + "\n" ); + file_put_contents( 'logs/aliases.log', $logMessage, FILE_APPEND | LOCK_EX ); break; } }