A database migration tool for Clickhouse in Node.js, version 1.1.1. It provides CLI commands (init, create, up, down, status) and a programmatic API for managing schema migrations in Clickhouse databases. Unlike generic migration tools, it is tailored for Clickhouse-specific features like columnar storage and distributed queries. The package has low weekly downloads and appears to be maintained by a single developer. Release cadence is irregular.
npm install migrate-clickhouseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Programmatically run pending migrations using the up function with a configuration object.
Use dynamic import: const config = await import('./migrate-clickhouse-config.js'); or convert config to ESM.Install the peer dependency: npm install clickhouse@^2.6.0
Switch to @clickhouse/client and adapt config accordingly (not supported by migrate-clickhouse directly).
Export a function: module.exports = { up, down }; where up and down are async functions receiving a clickhouse connection.npm install clickhouse@^2.6.0
Install globally: npm install -g migrate-clickhouse
Use import { up } from 'migrate-clickhouse' or import migrate from 'migrate-clickhouse' and use migrate.up.