Skip to content

odair-pedro/evolve-migrations-helper

Repository files navigation

Evolve Migrations Helper

GitHub version Build status Codacy Badge License

A simple tool to help you to versionate Evolve migrations.

If you think that Evolve is an amazing tool, you will like to use this helper. 😊

Usage

Windows

Extract the evolve-migrations-helper_win-x64.zip file in your Evolve project's root path and run the follow command to create a dataset migration:

migrations add-dataset MyDatasetMigration

Or run the follow command to create a scheme migration:

migrations add-migration MySchemeMigration

Or run the help command to see all the options:

migrations --help
Usage: migrations [command] [options]

Commands:
    add-dataset          Add a new migration file (on path: "./datasets")
    add-migration        Add a new migration file (on path: "./migrations")

Options:
    -s|--separator       The file name seperator. Default is '__' (Double underscore). Eg: 'v20200530193319__MyMigration.sql'

Linux

Extract the evolve-migrations-helper_linux-x64.zip file in your Evolve project's root path and run the follow command:

chmod +x migrations

And then run the follow command to create a dataset migration:

./migrations add-dataset MyDatasetMigration

Or run the follow command to create a scheme migration:

./migrations add-migration MySchemeMigration

Or run the help command to see all the options:

./migrations --help
Usage: migrations [command] [options]

Commands:
    add-dataset          Add a new migration file (on path: "./datasets")
    add-migration        Add a new migration file (on path: "./migrations")

Options:
    -s|--separator       The file name seperator. Default is '__' (Double underscore). Eg: 'v20200530193319__MyMigration.sql'

Note

The created file will be configured as embedded resource in your csproj file.

If you don't like that behavior, be welcome to contribute with this project! ❤️

Download

The latest version can be found here.