UNPKG

@clickup/pg-mig

Version:

PostgreSQL schema migration tool with microsharding and clustering support

20 lines (16 loc) 460 B
import type { MigrateOptions } from "../cli"; import type { Registry } from "../internal/Registry"; import { printText } from "../internal/render"; /** * Prints the list of all migration versions in the registry. */ export async function actionList( _options: MigrateOptions, registry: Registry, ): Promise<boolean> { printText("All versions:"); for (const version of registry.getVersions()) { printText(` > ${version}`); } return true; }