
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@aragornhq/ch-migration
Advanced tools
Production-grade ClickHouse migration CLI with rollback, test coverage, and GitHub Actions support
⚔️ Production-grade CLI for managing ClickHouse schema migrations with raw SQL, rollback, integrity tracking, strict mode, and GitHub automation.
@clickhouse/client
migration:create
, migration:up
, migration:down
, dump
-- ROLLBACK BELOW --
separatorch-migration.json
${CH_CLUSTER}
placeholder replaced with the CH_CLUSTER
environment variableReplicatedReplacingMergeTree
for migration tracking when CH_CLUSTER
is setCREATE TABLE
migrations use ON CLUSTER
with a Replicated
engine when CH_CLUSTER
is setnpm install --save-dev @aragornhq/ch-migration
CH_
):CH_HOST=localhost
CH_PORT=8123
CH_DB=default
CH_USER=default
CH_PASSWORD=
# set to "true" when using HTTPS
CH_USE_TLS=false
# optional: set cluster name for `${CH_CLUSTER}`
CH_CLUSTER=
ch-migration.json
file:{
"path": "db/migrations"
}
Create the folder if it does not already exist.
Run the CLI with npx
or via an npm script. The executable name is ch-migrate
:
npx ch-migrate <command> [options]
migration:create <name> --path=<folder>
– create a timestamped migration file. The --path
option is optional when the path is defined in ch-migration.json
.migration:up --path=<folder> [--dry-run]
– apply all pending migrations. Use --dry-run
to preview without applying.migration:down --file=<filename.sql> --path=<folder>
– roll back a single migration.dump --out=<file>
– export CREATE
statements for all tables in the current database. Each statement includes IF NOT EXISTS
and no DROP
statements so rerunning is safe.Each file should contain your SQL up statement followed by -- ROLLBACK BELOW --
and the down statement. Only one SQL statement per section is enforced.
-- 20250101_create_table.sql
CREATE TABLE example (id UInt8) ENGINE = MergeTree;
-- ROLLBACK BELOW --
DROP TABLE example;
Applied migrations are recorded in a migrations
table together with a SHA‑256 hash. If a hash changes, the run fails to prevent drift.
FAQs
Production-grade ClickHouse migration CLI with rollback, test coverage, and GitHub Actions support
The npm package @aragornhq/ch-migration receives a total of 125 weekly downloads. As such, @aragornhq/ch-migration popularity was classified as not popular.
We found that @aragornhq/ch-migration demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.