Skip to content

Commit

Permalink
Merge pull request #116 from samuelgfeller/master
Browse files Browse the repository at this point in the history
Fixed on update current timestamp bug
  • Loading branch information
odan authored Apr 11, 2024
2 parents 33dfa04 + 06228b7 commit 168a244
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 168a244

Please sign in to comment.