-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a default value of CURRENT_TIMESTAMP to the 'last_login' column…
… in the 'users' table to automatically capture the latest login time, enhancing user tracking and engagement monitoring.
- Loading branch information
GitHub Gen Changes
committed
Nov 7, 2024
1 parent
30d773c
commit 343a8e2
Showing
3 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- Modify "users" table | ||
ALTER TABLE `users` MODIFY COLUMN `last_login` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT "Timestamp of the last login of the user"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters