Skip to content

Commit

Permalink
Fix: Wrong default value on TIMESTAMP
Browse files Browse the repository at this point in the history
  • Loading branch information
Adadov committed Jun 18, 2024
1 parent 017ef5b commit 7515f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/schema.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ CREATE TABLE IF NOT EXISTS requests (
fo TINYINT NOT NULL DEFAULT '0',
locked TINYINT NOT NULL DEFAULT '0',
firstseen TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
lastsent TIMESTAMP NOT NULL DEFAULT '1970-01-01 00:00:00',
lastsent TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP,

PRIMARY KEY(id),
KEY(lastsent),
Expand Down

0 comments on commit 7515f28

Please sign in to comment.