function up
up(db: DatabaseSync): void

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

Parameters

db: DatabaseSync

Return Type

void

Usage

import { up } from "api/db/migrations/0001_comment_likes.ts";