diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-06 18:11:26 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-06 18:11:26 +0100 |
commit | f2efaef2b9e20ee1e89df49e31dd3d8dfaa1384d (patch) | |
tree | 8f8fcd200b150e6f83271dae3c233fa2601ac6d6 /index.pl | |
parent | 058d93a6fd9f186c46ff8f53a444a914fb226d8a (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-x | index.pl | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, |