From b3ff0e5e829e8bce058a91c9b8aed4ef480fef1b Mon Sep 17 00:00:00 2001 From: Marcel Nellesen Date: Thu, 3 Dec 2020 13:09:13 +0100 Subject: [PATCH] Update: Included new Resource type and removed flags --- .../Properties/AssemblyInfo.cs | 6 ++--- src/Migrations/Migrations.csproj | 1 + ...ation202011161100ResourceTypeDefinition.cs | 22 +++++++++++++++++++ src/Migrations/Properties/AssemblyInfo.cs | 6 ++--- src/Migrator/Properties/AssemblyInfo.cs | 6 ++--- 5 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 src/Migrations/Migrations/Migration202011161100ResourceTypeDefinition.cs diff --git a/src/Migrations.Tests/Properties/AssemblyInfo.cs b/src/Migrations.Tests/Properties/AssemblyInfo.cs index 3a4339c..5901652 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 f1e62af..e058985 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 0000000..4e62537 --- /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 a7ca251..f510a47 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 34a8a9a..3406938 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")] -- GitLab