Commit 1b2bd496 authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Included Table for linked resources (coscine/issues#1159)

parent 0d9ffcce
......@@ -11,6 +11,6 @@ using System.Reflection;
[assembly: AssemblyProduct("Migrations.Tests")]
[assembly: AssemblyVersion("1.9.0")]
[assembly: AssemblyFileVersion("1.9.0")]
[assembly: AssemblyInformationalVersion("1.9.0-topic-1159-rtdap0001")]
[assembly: AssemblyInformationalVersion("1.9.0-topic-1159-rtdap0002")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
......@@ -9,11 +9,14 @@ namespace Coscine.Migrations.Migrations
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);
}
}
}
......@@ -11,6 +11,6 @@ using System.Reflection;
[assembly: AssemblyProduct("Migrations")]
[assembly: AssemblyVersion("1.9.0")]
[assembly: AssemblyFileVersion("1.9.0")]
[assembly: AssemblyInformationalVersion("1.9.0-topic-1159-rtdap0001")]
[assembly: AssemblyInformationalVersion("1.9.0-topic-1159-rtdap0002")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
......@@ -11,6 +11,6 @@ using System.Reflection;
[assembly: AssemblyProduct("Migrator")]
[assembly: AssemblyVersion("1.9.0")]
[assembly: AssemblyFileVersion("1.9.0")]
[assembly: AssemblyInformationalVersion("1.9.0-topic-1159-rtdap0001")]
[assembly: AssemblyInformationalVersion("1.9.0-topic-1159-rtdap0002")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
Markdown is supported
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