summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/schema.sql b/schema.sql
index 4527b9b..f3d5d02 100644
--- a/schema.sql
+++ b/schema.sql
@@ -180,12 +180,12 @@ create view thread_view as
author.name as author_name,
(
select
- count(*) - 1
+ count(*)
from
posts
where
posts.thread_id = threads.thread_id
- ) as replies,
+ ) as count,
(
select
max(posts.mtime)