Added Type to DB Softkey

This commit is contained in:
Samuele E. Locatelli
2020-11-05 12:35:21 +01:00
parent e375f3323b
commit 8b44ff84af
5 changed files with 183 additions and 0 deletions
@@ -0,0 +1,29 @@
// <auto-generated />
namespace Thermo.Active.Database.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
public sealed partial class AddedTypeKey : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(AddedTypeKey));
string IMigrationMetadata.Id
{
get { return "202011051133455_AddedTypeKey"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}
@@ -0,0 +1,18 @@
namespace Thermo.Active.Database.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class AddedTypeKey : DbMigration
{
public override void Up()
{
AddColumn("dbo.favorite_user_softkey", "type", c => c.Int(nullable: false));
}
public override void Down()
{
DropColumn("dbo.favorite_user_softkey", "type");
}
}
}
File diff suppressed because one or more lines are too long
@@ -146,6 +146,10 @@
<Compile Include="Migrations\202009021558544_AddedScrapPartMgmt.Designer.cs">
<DependentUpon>202009021558544_AddedScrapPartMgmt.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\202011051133455_AddedTypeKey.cs" />
<Compile Include="Migrations\202011051133455_AddedTypeKey.Designer.cs">
<DependentUpon>202011051133455_AddedTypeKey.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\Configuration.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Redis\redUtil.cs" />
@@ -191,6 +195,9 @@
<EmbeddedResource Include="Migrations\202009021558544_AddedScrapPartMgmt.resx">
<DependentUpon>202009021558544_AddedScrapPartMgmt.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\202011051133455_AddedTypeKey.resx">
<DependentUpon>202011051133455_AddedTypeKey.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
@@ -11,5 +11,8 @@ namespace Thermo.Active.Model.DatabaseModels
[Key, Column("user_id", Order = 1)]
public int UserId { get; set; }
[Column("type")]
public int Type { get; set; }
}
}