UNPKG

@clickup/pg-mig

Version:

PostgreSQL schema migration tool with microsharding and clustering support

19 lines 709 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.actionList = actionList; const sortBy_1 = __importDefault(require("lodash/sortBy")); const render_1 = require("../internal/render"); /** * Prints the list of all migration versions in the registry. */ async function actionList(_options, registry) { (0, render_1.printText)("All versions:"); for (const version of (0, sortBy_1.default)(registry.getVersions())) { (0, render_1.printText)(` > ${version}`); } return true; } //# sourceMappingURL=actionList.js.map