Skip to content

Commit

Permalink
Fixed case sensitive on update check
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller authored Apr 11, 2024
1 parent 33dfa04 commit 06228b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 06228b7

Please sign in to comment.