Skip to content

Commit

Permalink
Avoid ZERO_DATE for user session validity
Browse files Browse the repository at this point in the history
  • Loading branch information
ta2edchimp committed Jun 20, 2016
1 parent bbb3ba6 commit 9d8830e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/brUsersSessions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CREATE TABLE `brUsersSessions` (
`userID` int(11) NOT NULL,
`sessionHash` varchar(192) NOT NULL,
`createdTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`validUntil` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`validUntil` timestamp NOT NULL DEFAULT '1970-01-01 00:00:01',
`userAgent` text NOT NULL,
`ip` varchar(16) NOT NULL,
UNIQUE KEY `sessionHash` (`sessionHash`)
Expand Down

0 comments on commit 9d8830e

Please sign in to comment.