Commit ef548374 authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Merge branch 'Hotfix/1020-releaseMigrations' into 'master'

Hotfix/1020-releaseMigrations

See merge request coscine/cs/migrations!28
parents 39e9a496 47711598
...@@ -22,7 +22,7 @@ cake:Release: ...@@ -22,7 +22,7 @@ cake:Release:
stage: release stage: release
script: script:
- PowerShell .\build.ps1 -Target Release -Configuration Release --nugetApiKey="${NUGET_API_KEY}" - PowerShell .\build.ps1 -Target Release -Configuration Release --nugetApiKey="${NUGET_API_KEY}"
- PowerShell .\src\Migrator\bin\Release\Migrator.exe --migrate_up - PowerShell .\src\Migrator\bin\Release\Coscine.Migrator.exe --migrate_up
variables: variables:
GIT_STRATEGY: clone GIT_STRATEGY: clone
dependencies: dependencies:
......
...@@ -4,14 +4,14 @@ This project provides a library with the migrations based on Fluent Migrator and ...@@ -4,14 +4,14 @@ This project provides a library with the migrations based on Fluent Migrator and
The library (Migrations) can also be migrated by the official Fluent Migrator runner. The library (Migrations) can also be migrated by the official Fluent Migrator runner.
Our custom executable (Migrator.exe) also allows for the creation of the needed database. Our custom executable (Coscine.Migrator.exe) also allows for the creation of the needed database.
Start a migration by calling `Migrator.exe --migrate_up`. Start a migration by calling `Coscine.Migrator.exe --migrate_up`.
This will create the needed database and run all migrations. This will create the needed database and run all migrations.
You can run the command again at a later time, to install additional migrations. You can run the command again at a later time, to install additional migrations.
Migrations already deployed will not be deployed again. Migrations already deployed will not be deployed again.
You can revert a migration by calling `Migrator.exe --roll_back 1`. You can revert a migration by calling `Coscine.Migrator.exe --roll_back 1`.
This will remove the most recent migration. This will remove the most recent migration.
Replacing the 1 with a 2 will revert the two most recent migrations and so on. Replacing the 1 with a 2 will revert the two most recent migrations and so on.
......
...@@ -9,8 +9,8 @@ using System.Reflection; ...@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("Migrations is a part of the CoScInE group.")] [assembly: AssemblyDescription("Migrations is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")] [assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("Migrations")] [assembly: AssemblyProduct("Migrations")]
[assembly: AssemblyVersion("1.6.0")] [assembly: AssemblyVersion("1.6.1")]
[assembly: AssemblyFileVersion("1.6.0")] [assembly: AssemblyFileVersion("1.6.1")]
[assembly: AssemblyInformationalVersion("1.6.0")] [assembly: AssemblyInformationalVersion("1.6.1-beta0001")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")] [assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
...@@ -9,8 +9,8 @@ using System.Reflection; ...@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("Migrator is a part of the CoScInE group.")] [assembly: AssemblyDescription("Migrator is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")] [assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("Migrator")] [assembly: AssemblyProduct("Migrator")]
[assembly: AssemblyVersion("1.6.0")] [assembly: AssemblyVersion("1.6.1")]
[assembly: AssemblyFileVersion("1.6.0")] [assembly: AssemblyFileVersion("1.6.1")]
[assembly: AssemblyInformationalVersion("1.6.0")] [assembly: AssemblyInformationalVersion("1.6.1-beta0001")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")] [assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment