Commit 7d33ef4a authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Merge branch 'Product/772-s3ResourceUrl' into 'Sprint/2020-07'

Product/772-s3ResourceUrl

See merge request coscine/cs/migrations!12
parents 6a0d3024 44c73e5c
using FluentMigrator;
namespace Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[Migration(202004151354)]
public class Migration202004151354S3ResourceUrl : FluentMigrator.Migration
{
public override void Down()
{
Delete.Column("ResourceUrl").FromTable("S3ResourceType");
}
public override void Up()
{
Alter.Table("S3ResourceType").AddColumn("ResourceUrl").AsString(200).Nullable();
Update.Table("S3ResourceType").Set(new { ResourceUrl = "https://s3.rwth-aachen.de" }).AllRows();
Alter.Table("S3ResourceType").AlterColumn("ResourceUrl").AsString(200).NotNullable();
}
}
}
......@@ -166,6 +166,7 @@
<Compile Include="Migrations\Migration202002041409ProjectDeletedColumn.cs" />
<Compile Include="Migrations\Migration202002101300MoreLicenses.cs" />
<Compile Include="Migrations\Migration202003121255ActivatedFeatures.cs" />
<Compile Include="Migrations\Migration202004151354S3ResourceUrl.cs" />
<Compile Include="Migrations\Migration202003192117ORCiDEmailAddress.cs" />
<Compile Include="Migrator.cs" />
<Compile Include="Program.cs" />
......
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