summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-06 18:11:26 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-06 18:11:26 +0100
commitf2efaef2b9e20ee1e89df49e31dd3d8dfaa1384d (patch)
tree8f8fcd200b150e6f83271dae3c233fa2601ac6d6 /index.pl
parent058d93a6fd9f186c46ff8f53a444a914fb226d8a (diff)
bump DB schema to v2
Add token to "users" (for mail verification etc) Add new table "pending_mails" (to avoid spamming individual addresses)
Diffstat (limited to 'index.pl')
-rwxr-xr-xindex.pl5
1 files changed, 3 insertions, 2 deletions
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,