Adds likes on comments, as the comment_likes table and a like_count on each comment that comment-like-service keeps in step, so that listing comments doesn't count their likes.

Functions

f
up(db: DatabaseSync): void

Run once by runMigrations. Existing comments start with no likes, and a database made from schema.sql already has both.

Usage

import * as mod from "api/db/migrations/0001_comment_likes.ts";