Welcome Guest, Not a member yet? Register   Sign In
CURRENT_TIMESTAMP: different mysql-behavior phpmyadmin vs. CI
#6

(This post was last modified: 11-29-2018, 10:07 AM by InsiteFX.)

This is the correct way of doing it.

Code:
 `created_at` DATETIME  DEFAULT CURRENT_TIMESTAMP,
 `updated_at` DATETIME  DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,

Works with DATETIME and TIMESTAMP

Hope that helps.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: CURRENT_TIMESTAMP: different mysql-behavior phpmyadmin vs. CI - by InsiteFX - 11-29-2018, 10:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB