After hours of debugging my PHP code, because the dates were being incorrectly stored, I realized that XAMPP
was automatically adding a DEFAULT
attribute and a ON UPDATE
attribute to my date_added
column.
I have this table:
CREATE TABLE test_table(
date_added timestamp
NOT NULL,
last_updated timestamp
NOT NULL
);
As you can see, I am clearly not setting a DEFAULT
value or a ON UPDATE
tag on my table creation code. However, if I go into phpmyadmin and look at the structure of this table, it looks like this:
I tried to click on "change" and set DEFAULT
to None
and ON UPDATE
to blank but it doesn't change it. Any suggestions on how I can remove these things?