mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-09-10 00:18:49 -06:00
![Dessalines](/assets/img/avatar_default.png)
- Adding option to close registration. Fixes #350 - Adding option to disable showing NSFW buttons. Fixes #364 - Adding option to disable downvotes. Fixes #239
17 lines
612 B
SQL
Vendored
17 lines
612 B
SQL
Vendored
-- Add the column
|
|
alter table site add column enable_downvotes boolean default true not null;
|
|
alter table site add column open_registration boolean default true not null;
|
|
alter table site add column enable_nsfw boolean default true not null;
|
|
|
|
-- Reload the view
|
|
drop view site_view;
|
|
|
|
create view site_view as
|
|
select *,
|
|
(select name from user_ u where s.creator_id = u.id) as creator_name,
|
|
(select count(*) from user_) as number_of_users,
|
|
(select count(*) from post) as number_of_posts,
|
|
(select count(*) from comment) as number_of_comments,
|
|
(select count(*) from community) as number_of_communities
|
|
from site s;
|