diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2013-08-28 16:37:56 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2013-08-28 16:37:56 +0200 |
commit | d225366f31aae250981f9f5bf8e43e633c631c73 (patch) | |
tree | 3db259c25d12ccf42bf930f1478ca64d781e294f /support/schema | |
parent | 2276171b2987c42ce9658e9cac469f2714939a33 (diff) | |
download | aur-d225366f31aae250981f9f5bf8e43e633c631c73.tar.gz aur-d225366f31aae250981f9f5bf8e43e633c631c73.tar.xz |
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: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'support/schema')
-rw-r--r-- | support/schema/aur-schema.sql | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/schema/aur-schema.sql b/support/schema/aur-schema.sql index 1245919a..25e828ea 100644 --- a/support/schema/aur-schema.sql +++ b/support/schema/aur-schema.sql @@ -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), |