migtool 2.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global migtool --version 2.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local migtool --version 2.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=migtool&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package migtool --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Migrate is a tool for performing declarative migrations by finding differences between an expected database schema and the existing one, currently in a SQLite database. It also generates type-safe F# code with CRUD operations for your database schema.
Installation
If you just want to test the tool without installing .Net, then you can use a Docker image:
podman run -it 'mcr.microsoft.com/dotnet/sdk:10.0' bash
Inside the container run:
export PATH="$PATH:/root/.dotnet/tools"
After having .Net in your system you can run
dotnet tool install --global migtool
Quickstart
mkdir test_db
cd test_db
mig init
# generated project files with example definitions
mig status
# output shows migration for existing definitions
mig commit
# generates and executes migration
mig log
# output shows migration metadata and a summary of executed steps
mig codegen
# generates type-safe F# code with CRUD operations
Features
- Declarative migrations
- Migration execution
- Migration execution as library
- F# code generation with type-safe CRUD operations
- Migration log
Commands
mig init- Initialize a new migration project with example schema filesmig status- Generate migration SQL by comparing expected schema with current databasemig commit [-m <message>]- Generate and execute migrations step by stepmig schema- Show the current database schemamig log [-s <steps-id>]- Show migration history and execution metadatamig codegen [-d <directory>]- Generate type-safe F# code with CRUD operations from SQL schema files
Contributing
How to contribute:
- Open an issue to discuss the change and approach
- Add relevant tests
- Create a pull request mentioning the issue and also including a summary of the problem and approach to solve it
- Wait for the review
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.6.0 | 74 | 1/26/2026 |
| 2.5.0 | 93 | 1/14/2026 |
| 2.4.0 | 82 | 1/14/2026 |
| 2.3.0 | 90 | 1/14/2026 |
| 2.2.0 | 85 | 1/14/2026 |
| 2.1.0 | 82 | 1/13/2026 |
| 2.0.0 | 84 | 1/13/2026 |
| 1.0.4 | 384 | 3/4/2025 |
| 1.0.3 | 238 | 1/11/2025 |
| 1.0.2 | 226 | 1/11/2025 |
| 1.0.1 | 217 | 11/26/2024 |
| 1.0.0 | 258 | 11/26/2024 |
| 0.0.19 | 266 | 6/28/2024 |
| 0.0.18 | 244 | 6/28/2024 |
| 0.0.17 | 357 | 1/23/2024 |
| 0.0.16 | 341 | 1/17/2024 |
| 0.0.15 | 322 | 1/16/2024 |
| 0.0.14 | 356 | 1/10/2024 |
| 0.0.13 | 374 | 1/9/2024 |
| 0.0.12 | 386 | 12/26/2023 |
| 0.0.11 | 367 | 12/25/2023 |
| 0.0.10 | 302 | 12/25/2023 |
| 0.0.9 | 366 | 12/16/2023 |
| 0.0.7 | 313 | 12/13/2023 |
| 0.0.6 | 327 | 12/13/2023 |
| 0.0.5 | 329 | 12/4/2023 |
| 0.0.4 | 328 | 11/24/2023 |
| 0.0.2 | 320 | 11/23/2023 |
| 0.0.1 | 314 | 11/16/2023 |
