Aufgrund einer Wartung wird GitLab am 18.01. zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 18.01. between 8:00 and 9:00 am.

Commits (5)
......@@ -4,7 +4,7 @@
<RootNamespace>Coscine.Migrations</RootNamespace>
<AssemblyName>Coscine.Migrations</AssemblyName>
<TargetFrameworks>net5.0;net461</TargetFrameworks>
<Version>2.0.0</Version>
<Version>2.1.0</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>RWTH Aachen University</Authors>
......
using FluentMigrator;
namespace Coscine.Migrations.Migrations
{
//yyyymmddhhmm
[Migration(202102021140)]
public class Migration202102021140ContactChange : FluentMigrator.Migration
{
public override void Down()
{
Delete.Table("ContactChange");
}
public override void Up()
{
Create.Table("ContactChange")
.WithColumn("RelationId").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
.WithColumn("UserId").AsGuid()
.WithColumn("NewEmail").AsString(200).NotNullable()
.WithColumn("EditDate").AsDateTime().Nullable()
.WithColumn("ConfirmationToken").AsGuid().NotNullable().WithDefault(SystemMethods.NewGuid);
Create.ForeignKey()
.FromTable("ContactChange").ForeignColumn("UserId")
.ToTable("Users").PrimaryColumn("Id");
}
}
}
......@@ -76,7 +76,7 @@ namespace Coscine.Migrator
break;
default:
Console.WriteLine("A invalid input was provided.");
Console.WriteLine("An invalid input was provided.");
PrintHelp();
break;
}
......