Badgie.Migrator 0.2.0.318

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Badgie.Migrator --version 0.2.0.318
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Badgie.Migrator --version 0.2.0.318
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Badgie.Migrator&version=0.2.0.318
                    
nuke :add-package Badgie.Migrator --version 0.2.0.318
                    

Badgie Migrator

A SQL migration tool originally built for Badgie

Installation

Install the migrator tool either as a global tool:

dotnet tool install -g Badgie.Migrator

...or as a CliToolReference in your project:

<ItemGroup>
    <DotNetCliToolPackageReference Include="Badgie.Migrator"/>
</ItemGroup>

Usage

Once the tool is installed you can simply call it like:

dotnet-badgie-migrator <connection string> [drive:][path][filename] [-f] [-i] [-d] [-n]
  -f runs mutated migrations
  -i if needed, installs the db table needed to store state
  -d:(SqlServer|Postgres) specifies whether to run against SQL Server or PostgreSQL
  -n avoids wrapping each execution in a transaction 

Alternatively, if you have many databases to run migrations against you can pass a json configuration file with many configurations:

dotnet-badgie-migrator -json=<configuration filename.json>

Here is a sample file to use as a template:

[
  {
    "ConnectionString": "Connection 1",
    "Force": true,
    "Install": true,
    "SqlType": "SqlServer",
    "Path": "Path 1",
    "UseTransaction": true
  },                      
  {
    "ConnectionString": "Connection 2",
    "Force": false,
    "Install": false,
    "SqlType": "Postgres",
    "Path": "Path 2",
    "UseTransaction": false
  }
]

Building

dotnet pack -c Release

Creates the DotNet CLI Tool package in App/bin/Relase/badgie-migrator.{version}.nupkg

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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.3.356 15,114 5/9/2024
1.3.355 1,553 1/31/2024
1.2.354 154 1/31/2024
1.2.349 4,486 4/30/2023
1.2.348 435 4/21/2023
1.2.347 7,466 2/4/2023
1.1.0.346 375 2/4/2023
1.1.0.345 15,626 12/29/2022
1.1.0.344 380 12/29/2022
1.0.1.339 119,794 3/9/2022
1.0.1.338 519 3/9/2022
1.0.0.337 498 3/9/2022
1.0.0.336 634 3/8/2022
1.0.0.335 497 3/8/2022
1.0.0.334 109,340 6/5/2021
0.2.0.318 205,372 5/27/2020
0.2.0.316 24,915 3/20/2020
0.2.0.315 11,374 1/16/2020
0.2.0.314 594 1/16/2020
0.2.0.313 667 1/16/2020
0.2.0.312 636 1/16/2020
0.2.0.311 1,074 12/21/2019
0.2.0.310 594 12/20/2019
0.2.0.309 609 12/20/2019
0.2.0.308 630 12/19/2019
0.2.0.260 2,667 6/18/2019
0.2.0.256 655 6/14/2019
0.2.0.253 692 6/14/2019
0.2.0.250 663 6/13/2019
0.2.0.249 659 6/13/2019
0.2.0.248 675 6/13/2019
0.2.0.247 617 6/13/2019
0.1.0.246 593 6/13/2019
0.1.0.245 639 6/13/2019
0.1.0.244 643 6/13/2019
0.1.0 701 6/2/2019