Commit d225366f authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Add a registration time stamp to the "Users" table



This allows for easily detecting old accounts that registered and never
used the confirmation e-mail to set an initial password.
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 2276171b
......@@ -4,10 +4,12 @@ Upgrading
From 2.2.0 to 2.3.0
-------------------
1. Add an inactivity time stamp to the "Users" table:
1. Add registration and inactivity time stamps to the "Users" table:
----
ALTER TABLE Users ADD COLUMN InactivityTS BIGINT NOT NULL DEFAULT 0;
ALTER TABLE Users
ADD COLUMN RegistrationTS TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN InactivityTS BIGINT NOT NULL DEFAULT 0;
----
2. Add fields to store the total number of TUs and the quorum to the
......
......@@ -36,6 +36,7 @@ CREATE TABLE Users (
LastLogin BIGINT UNSIGNED NOT NULL DEFAULT 0,
LastLoginIPAddress INTEGER UNSIGNED NOT NULL DEFAULT 0,
InactivityTS BIGINT UNSIGNED NOT NULL DEFAULT 0,
RegistrationTS TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (ID),
UNIQUE (Username),
UNIQUE (Email),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment