victor's picture
victor HF Staff
Refactor IconMoon and clean up migration imports
08b3174
raw
history blame
474 Bytes
import type { ObjectId } from "mongodb";
import type { Database } from "$lib/server/database";
export interface Migration {
_id: ObjectId;
name: string;
up: (client: Database) => Promise<boolean>;
down?: (client: Database) => Promise<boolean>;
runForFreshInstall?: "only" | "never"; // leave unspecified to run for both
runForHuggingChat?: "only" | "never"; // leave unspecified to run for both
runEveryTime?: boolean;
}
export const migrations: Migration[] = [];