migtool 1.0.4
dotnet tool install --global migtool --version 1.0.4
        
        
This package contains a .NET tool you can call from the shell/command line.
                    
    
    dotnet new tool-manifest
dotnet tool install --local migtool --version 1.0.4
        
        
This package contains a .NET tool you can call from the shell/command line.
                    
    
    #tool dotnet:?package=migtool&version=1.0.4
        
        
 The NuGet Team does not provide support for this client. Please contact its maintainers for support.
                    
    
    nuke :add-package migtool --version 1.0.4
        
        
 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.
Installation
If you just want to test the tool without installing .Net, then you can use a Docker image:
docker run -it 'mcr.microsoft.com/dotnet/nightly/sdk:9.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 gen
# output shows migration for existing definitions
mig exec
# executes migration
mig log
# output shows migration metadata and a summary of executed steps
Features
- Declarative migrations
 - Migration execution
 - Migration execution as library
 - Import Goose migrations
 - Migration log
 
Contributing
Areas where contributions are welcomed:
- Support for other RDBMS like PostgresSQL
 - SQL generation
 - SQL parsing
 - bug fixes
 - installation, packaging and release process
 
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 | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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 | 
|---|---|---|
| 1.0.4 | 353 | 3/4/2025 | 
| 1.0.3 | 212 | 1/11/2025 | 
| 1.0.2 | 201 | 1/11/2025 | 
| 1.0.1 | 189 | 11/26/2024 | 
| 1.0.0 | 232 | 11/26/2024 | 
| 0.0.19 | 239 | 6/28/2024 | 
| 0.0.18 | 222 | 6/28/2024 | 
| 0.0.17 | 328 | 1/23/2024 | 
| 0.0.16 | 317 | 1/17/2024 | 
| 0.0.15 | 296 | 1/16/2024 | 
| 0.0.14 | 333 | 1/10/2024 | 
| 0.0.13 | 344 | 1/9/2024 | 
| 0.0.12 | 366 | 12/26/2023 | 
| 0.0.11 | 343 | 12/25/2023 | 
| 0.0.10 | 277 | 12/25/2023 | 
| 0.0.9 | 336 | 12/16/2023 | 
| 0.0.7 | 287 | 12/13/2023 | 
| 0.0.6 | 296 | 12/13/2023 | 
| 0.0.5 | 307 | 12/4/2023 | 
| 0.0.4 | 307 | 11/24/2023 | 
| 0.0.2 | 299 | 11/23/2023 | 
| 0.0.1 | 296 | 11/16/2023 | 
