diff --git a/src/Migration/Adapter/Generator/PhinxMySqlColumnOptionGenerator.php b/src/Migration/Adapter/Generator/PhinxMySqlColumnOptionGenerator.php index 57c232f06..664bbb336 100644 --- a/src/Migration/Adapter/Generator/PhinxMySqlColumnOptionGenerator.php +++ b/src/Migration/Adapter/Generator/PhinxMySqlColumnOptionGenerator.php @@ -190,7 +190,7 @@ private function getPhinxColumnOptionsTimestamp(array $attributes, array $column { // default set default value (use with CURRENT_TIMESTAMP) // on update CURRENT_TIMESTAMP - if (strpos($columnData['EXTRA'], 'on update CURRENT_TIMESTAMP') !== false) { + if (stripos($columnData['EXTRA'], 'on update CURRENT_TIMESTAMP') !== false) { $attributes['update'] = 'CURRENT_TIMESTAMP'; }