feat: update template
This commit is contained in:
@@ -18,7 +18,7 @@ WITH visitor AS (
|
||||
)
|
||||
INSERT INTO post_stats (
|
||||
post_id,
|
||||
view
|
||||
view_count
|
||||
)
|
||||
SELECT
|
||||
post_id,
|
||||
@@ -26,4 +26,4 @@ SELECT
|
||||
FROM visitor
|
||||
ON CONFLICT (post_id)
|
||||
DO UPDATE
|
||||
SET view = post_stats.view + 1;
|
||||
SET view_count = post_stats.view_count + 1;
|
||||
Reference in New Issue
Block a user