Commit f47555c1 authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Merge branch 'Product/704-basicReporting' into 'Sprint/2020-20'

Product/704 basic reporting

See merge request coscine/cs/migrations!35
parents 53fff78e 952bd89e
......@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("Migrations.Tests is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("Migrations.Tests")]
[assembly: AssemblyVersion("1.6.3")]
[assembly: AssemblyFileVersion("1.6.3")]
[assembly: AssemblyInformationalVersion("1.6.3-topic-894-automa0010")]
[assembly: AssemblyVersion("1.8.0")]
[assembly: AssemblyFileVersion("1.8.0")]
[assembly: AssemblyInformationalVersion("1.8.0-topic-1051-basic0004")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
......@@ -205,6 +205,7 @@
<Compile Include="Migrations\Migration202005281400ProjectUrl.cs" />
<Compile Include="Migrations\Migration202006261208ProjectQuotas.cs" />
<Compile Include="CoscineMigrations.cs" />
<Compile Include="Migrations\Migration202010011800Reporting.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
......
using FluentMigrator;
namespace Coscine.Migrations.Migrations
{
//yyyymmddhhmm
[Migration(202010011800)]
public class Migration202010011800Reporting : FluentMigrator.Migration
{
public override void Down()
{
Delete.Table("Kpi");
}
public override void Up()
{
Create.Table("Kpi")
.WithColumn("Id").AsGuid().PrimaryKey().WithDefault(SystemMethods.NewGuid)
.WithColumn("MeasurementID").AsString(500).Nullable()
.WithColumn("Ikz").AsString(9).Nullable()
.WithColumn("Value").AsDouble().Nullable()
.WithColumn("Start").AsDateTime().WithDefault(SystemMethods.CurrentDateTime).Nullable()
.WithColumn("End").AsDateTime().WithDefault(SystemMethods.CurrentDateTime).Nullable()
.WithColumn("AdditionalInfo").AsString(500).WithDefaultValue("").Nullable()
.WithColumn("AdditionalInfo1").AsString(500).WithDefaultValue("").Nullable()
.WithColumn("AdditionalInfo2").AsString(500).WithDefaultValue("").Nullable()
.WithColumn("AdditionalInfo3").AsString(500).WithDefaultValue("").Nullable()
.WithColumn("AdditionalInfo4").AsString(500).WithDefaultValue("").Nullable()
.WithColumn("AdditionalInfo5").AsString(500).WithDefaultValue("").Nullable()
.WithColumn("SentSuccessfully").AsBoolean().WithDefaultValue(false);
}
}
}
......@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("Migrations is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("Migrations")]
[assembly: AssemblyVersion("1.6.3")]
[assembly: AssemblyFileVersion("1.6.3")]
[assembly: AssemblyInformationalVersion("1.6.3-topic-894-automa0010")]
[assembly: AssemblyVersion("1.8.0")]
[assembly: AssemblyFileVersion("1.8.0")]
[assembly: AssemblyInformationalVersion("1.8.0-topic-1051-basic0004")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
......@@ -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.6.3")]
[assembly: AssemblyFileVersion("1.6.3")]
[assembly: AssemblyInformationalVersion("1.6.3-topic-894-automa0010")]
[assembly: AssemblyVersion("1.8.0")]
[assembly: AssemblyFileVersion("1.8.0")]
[assembly: AssemblyInformationalVersion("1.8.0-topic-1051-basic0004")]
[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