@clickup/pg-mig
Version:
PostgreSQL schema migration tool with microsharding and clustering support
16 lines • 672 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.actionDigest = actionDigest;
const render_1 = require("../internal/render");
/**
* Prints the "code digest", of all migration version names on disk. Digest is a
* string, and those strings can be compared lexicographically to determine
* whether the code version is compatible with the DB version: if the DB's
* digest is greater or equal to the code's digest, then they are compatible, so
* the code can be deployed.
*/
async function actionDigest(_options, registry) {
(0, render_1.printText)(registry.getDigest());
return true;
}
//# sourceMappingURL=actionDigest.js.map