15 lines
372 B
TypeScript
15 lines
372 B
TypeScript
/**
|
|
* Reserves `community` at the URL root for the community page, renaming a
|
|
* category that had it as its slug.
|
|
*
|
|
* @module
|
|
*/
|
|
|
|
import type { DatabaseSync } from "node:sqlite";
|
|
import { renameReservedCategories } from "../../lib/reserved-slugs.ts";
|
|
|
|
/** Run once by `runMigrations`. */
|
|
export function up(db: DatabaseSync): void {
|
|
renameReservedCategories(db);
|
|
}
|