mirror of
https://github.com/LemmyNet/lemmy
synced 2024-10-28 15:46:38 +00:00
b50ae1dafc
- Fixes #232
10 lines
291 B
SQL
Vendored
10 lines
291 B
SQL
Vendored
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
|
|
from site s;
|