OpenClawDbMigrator
Schema migrations without the framework lock-in
Overview
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.
Installation
Install globally
dotnet tool install --global OpenClawDbMigratorRun the tool
openclaw-dbUpdate to latest version
dotnet tool update --global OpenClawDbMigratorUninstall
dotnet tool uninstall --global OpenClawDbMigratorFeatures
- 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
Quick Start
terminal
# Install from NuGet.org
dotnet tool install --global OpenClawDbMigrator
# Run the tool
openclaw-db
# Show help and available options
openclaw-db --help
# Update when a new version is released
dotnet tool update --global OpenClawDbMigrator