diff --git a/src/Migrations.Tests/Properties/AssemblyInfo.cs b/src/Migrations.Tests/Properties/AssemblyInfo.cs index 3a4339c921f3b252f621e92251b99601283499d9..5901652925e1bab8c51fc31349f02c7a83f88031 100644 --- a/src/Migrations.Tests/Properties/AssemblyInfo.cs +++ b/src/Migrations.Tests/Properties/AssemblyInfo.cs @@ -9,8 +9,8 @@ using System.Reflection; [assembly: AssemblyDescription("Migrations.Tests is a part of the CoScInE group.")] [assembly: AssemblyCompany("IT Center, RWTH Aachen University")] [assembly: AssemblyProduct("Migrations.Tests")] -[assembly: AssemblyVersion("1.8.0")] -[assembly: AssemblyFileVersion("1.8.0")] -[assembly: AssemblyInformationalVersion("1.8.0-topic-1051-basic0004")] +[assembly: AssemblyVersion("1.9.0")] +[assembly: AssemblyFileVersion("1.9.0")] +[assembly: AssemblyInformationalVersion("1.9.0-topic-1159-rtdap0002")] [assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")] diff --git a/src/Migrations/Migrations.csproj b/src/Migrations/Migrations.csproj index f1e62af73b9c5c2b229eb15e523255b82284e26d..e058985659b46dc4d48a20486ed0d63a67129d5e 100644 --- a/src/Migrations/Migrations.csproj +++ b/src/Migrations/Migrations.csproj @@ -205,6 +205,7 @@ + diff --git a/src/Migrations/Migrations/Migration202011161100ResourceTypeDefinition.cs b/src/Migrations/Migrations/Migration202011161100ResourceTypeDefinition.cs new file mode 100644 index 0000000000000000000000000000000000000000..4e62537f9b6ac05a7af22cf7b544cd3cae88ddcc --- /dev/null +++ b/src/Migrations/Migrations/Migration202011161100ResourceTypeDefinition.cs @@ -0,0 +1,22 @@ +using FluentMigrator; + +namespace Coscine.Migrations.Migrations +{ + //yyyymmddhhmm + [Migration(202011161100)] + public class Migration202011161100ResourceTypeDefinition : FluentMigrator.Migration + { + public override void Down() + { + Delete.FromTable("ResourceTypes").Row(new { DisplayName = "linked" }); + Delete.Table("LinkedResourceType"); + } + + public override void Up() + { + Insert.IntoTable("ResourceTypes").Row(new { DisplayName = "linked" }); + Create.Table("LinkedResourceType") + .WithColumn("Id").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid); + } + } +} diff --git a/src/Migrations/Properties/AssemblyInfo.cs b/src/Migrations/Properties/AssemblyInfo.cs index a7ca2510c052bf07752c0bd6464f28d161fb9932..f510a479693fe92d413e7121edd6b233382cb932 100644 --- a/src/Migrations/Properties/AssemblyInfo.cs +++ b/src/Migrations/Properties/AssemblyInfo.cs @@ -9,8 +9,8 @@ using System.Reflection; [assembly: AssemblyDescription("Migrations is a part of the CoScInE group.")] [assembly: AssemblyCompany("IT Center, RWTH Aachen University")] [assembly: AssemblyProduct("Migrations")] -[assembly: AssemblyVersion("1.8.0")] -[assembly: AssemblyFileVersion("1.8.0")] -[assembly: AssemblyInformationalVersion("1.8.0-topic-1051-basic0004")] +[assembly: AssemblyVersion("1.9.0")] +[assembly: AssemblyFileVersion("1.9.0")] +[assembly: AssemblyInformationalVersion("1.9.0-topic-1159-rtdap0002")] [assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")] diff --git a/src/Migrator/Properties/AssemblyInfo.cs b/src/Migrator/Properties/AssemblyInfo.cs index 34a8a9aaea327cc1cee4b7fb6e079db777de2df2..3406938eeb1ffb580bb9d22eff30fd671460f3af 100644 --- a/src/Migrator/Properties/AssemblyInfo.cs +++ b/src/Migrator/Properties/AssemblyInfo.cs @@ -9,8 +9,8 @@ using System.Reflection; [assembly: AssemblyDescription("Migrator is a part of the CoScInE group.")] [assembly: AssemblyCompany("IT Center, RWTH Aachen University")] [assembly: AssemblyProduct("Migrator")] -[assembly: AssemblyVersion("1.8.0")] -[assembly: AssemblyFileVersion("1.8.0")] -[assembly: AssemblyInformationalVersion("1.8.0-topic-1051-basic0004")] +[assembly: AssemblyVersion("1.9.0")] +[assembly: AssemblyFileVersion("1.9.0")] +[assembly: AssemblyInformationalVersion("1.9.0-topic-1159-rtdap0002")] [assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]