Commit 0cec191b authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Merge branch 'Product/510-niceProjectUrl' into 'Sprint/2020-10'

Product/510-niceProjectUrl

See merge request coscine/cs/migrations!18
parents d173cedf 96bee4ac
using FluentMigrator;
using System;
namespace Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[Migration(202005281400)]
public class Migration202005281400ProjectUrl : FluentMigrator.Migration
{
public override void Down()
{
Delete.Column("Slug").FromTable("Projects");
}
public override void Up()
{
Alter.Table("Projects").AddColumn("Slug").AsString(63).Nullable();
Execute.EmbeddedScript("Migration202005281400ProjectUrl_up.sql");
Alter.Table("Projects").AlterColumn("Slug").AsString(63).NotNullable();
}
}
}
UPDATE [Coscine].[dbo].[Projects]
SET Slug = Id
\ No newline at end of file
......@@ -146,6 +146,7 @@
<Compile Include="MigrationsHelpers.cs" />
<Compile Include="Migrations\Migration201907011352ProjectApi.cs" />
<Compile Include="Migrations\Migration201907081510EnhanceProjectApi.cs" />
<Compile Include="Migrations\Migration202005281400ProjectUrl.cs" />
<Compile Include="Migrations\Migration201910021300ResourceDescription.cs" />
<Compile Include="Migrations\Migration201909190938ResourceEnhancement.cs" />
<Compile Include="Migrations\Migration201909111125ProjectEnhancement.cs" />
......@@ -181,6 +182,9 @@
<EmbeddedResource Include="Assets\Institutes.csv" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Migrations\Migration202005281400ProjectUrl_up.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Migrations\Migration202003121255ActivatedFeatures_up.sql" />
</ItemGroup>
......
......@@ -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.1.0")]
[assembly: AssemblyFileVersion("1.1.0")]
[assembly: AssemblyInformationalVersion("1.1.0")]
[assembly: AssemblyVersion("1.4.0")]
[assembly: AssemblyFileVersion("1.4.0")]
[assembly: AssemblyInformationalVersion("1.4.0-topic-804-nicepr0001")]
[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