diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-02 23:49:32 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-02 23:49:32 -0700 |
commit | c7864643812645ecfb560154bcb1e758555126de (patch) | |
tree | 26a8754f8ca377efeff8446c2f660ed3d4fdfd50 /server/migrations/2019-02-26-002946_create_user | |
parent | 923110c7d4c94f9c5aab329bc8c80d59a7e32007 (diff) |
Adding forum / community pages
- Adding main forum page. Fixes #11
- Adding view version for posts. #21
- Got rid of fedi user ids. Fixes #22
- Post sorting working. Fixes #24
Diffstat (limited to 'server/migrations/2019-02-26-002946_create_user')
-rw-r--r-- | server/migrations/2019-02-26-002946_create_user/up.sql | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/server/migrations/2019-02-26-002946_create_user/up.sql b/server/migrations/2019-02-26-002946_create_user/up.sql index d4edb370..80e6e92a 100644 --- a/server/migrations/2019-02-26-002946_create_user/up.sql +++ b/server/migrations/2019-02-26-002946_create_user/up.sql @@ -1,10 +1,14 @@ create table user_ ( id serial primary key, - name varchar(20) not null unique, + name varchar(20) not null, + fedi_name varchar(40) not null, preferred_username varchar(20), password_encrypted text not null, email text unique, icon bytea, published timestamp not null default now(), - updated timestamp -) + updated timestamp, + unique(name, fedi_name) +); + +insert into user_ (name, fedi_name, password_encrypted) values ('admin', 'TBD', 'TBD'); |