Skip to content
Snippets Groups Projects
Commit f8c70367 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Update: Add ORCiD to ExternalAuthenticators

parent d1e6e130
No related branches found
No related tags found
1 merge request!16Sprint/20190829
using FluentMigrator;
namespace Coscine.Database.Migration.Migrations
{
//yyyymmddhhmm
[Migration(201908290941)]
public class Migration201908290941ORCiD : FluentMigrator.Migration
{
public override void Down()
{
Rename.Column("ExternalAuthenticatorId").OnTable("ExternalIds").To("ResourceTypeId");
Delete.FromTable("ExternalAuthenticators").Row(new { DisplayName = "ORCiD" });
}
public override void Up()
{
Rename.Column("ResourceTypeId").OnTable("ExternalIds").To("ExternalAuthenticatorId");
Insert.IntoTable("ExternalAuthenticators").Row(new { DisplayName = "ORCiD" });
}
}
}
......@@ -145,6 +145,7 @@
<ItemGroup>
<Compile Include="Migrations\Migration201907011352ProjectApi.cs" />
<Compile Include="Migrations\Migration201907081510EnhanceProjectApi.cs" />
<Compile Include="Migrations\Migration201908290941ORCiD.cs" />
<Compile Include="Migrations\Migration201908121401GitlabResource.cs" />
<Compile Include="Migrations\Migration201908071616RdsResource.cs" />
<Compile Include="Migrations\Migration201907100900UserProfilesApi.cs" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment