From f2efaef2b9e20ee1e89df49e31dd3d8dfaa1384d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 6 Mar 2019 18:11:26 +0100 Subject: bump DB schema to v2 Add token to "users" (for mail verification etc) Add new table "pending_mails" (to avoid spamming individual addresses) --- index.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'index.pl') diff --git a/index.pl b/index.pl index 2157c03..1969b8c 100755 --- a/index.pl +++ b/index.pl @@ -187,7 +187,7 @@ app->attr( return $self->app->dbh->prepare( qq{ select - id, name, status, is_public, email, + id, name, status, public_level, email, registered_at, last_login, deletion_requested from users where id = ? } @@ -536,8 +536,9 @@ helper 'get_user_id' => sub { id integer primary key, name char(64) not null unique, status int not null, - is_public bool not null, + public_level bool not null, email char(256), + token char(80), password text, registered_at datetime not null, last_login datetime not null, -- cgit v1.2.3