From 06228b758baf05ab654e607761b2cd47eec9e950 Mon Sep 17 00:00:00 2001 From: Samuel Gfeller <31797204+samuelgfeller@users.noreply.github.com> Date: Thu, 11 Apr 2024 17:15:26 +0200 Subject: [PATCH] Fixed case sensitive on update check --- .../Adapter/Generator/PhinxMySqlColumnOptionGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }