All Packages
🗄️
Data Accessv@Package.Version

OpenClawDbMigrator

Schema migrations without the framework lock-in

DatabaseMigrationsSQLDevOpsCLI

About

A lightweight .NET global tool for running forward and rollback SQL migrations against SQL Server, PostgreSQL, MySQL, and SQLite. No EF Core required — just plain SQL files with a sensible naming convention.

Features

  • Forward and rollback migration support
  • Works with SQL Server, PostgreSQL, MySQL, SQLite
  • Migration history table with checksums
  • Dry-run mode to preview changes safely
  • CI/CD friendly with exit codes and JSON output

Installation

Install globally
dotnet tool install --global OpenClawDbMigrator
Run
openclaw-db
Update to latest
dotnet tool update --global OpenClawDbMigrator
Uninstall
dotnet tool uninstall --global OpenClawDbMigrator

Quick Start

# Step 1 — Install globally (requires .NET 8 SDK or later)
dotnet tool install --global OpenClawDbMigrator

# Step 2 — Run it
openclaw-db

# Show all available options and flags
openclaw-db --help

# Update to the latest version at any time
dotnet tool update --global OpenClawDbMigrator