function up
up(db: DatabaseSync): void

Run once by runMigrations. It refuses to run, naming the clashes, when two accounts already share a name or an address in some case: which one keeps it is for whoever runs the site to decide, by editing one of them.

Parameters

db: DatabaseSync

Return Type

void

Usage

import { up } from "api/db/migrations/0017_case_insensitive_users.ts";