Skip to content

Commit

Permalink
index sayplace
Browse files Browse the repository at this point in the history
  • Loading branch information
DeinFreund committed May 17, 2020
1 parent ade664b commit ed8d2af
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 0 deletions.
1 change: 1 addition & 0 deletions ZkData/Ef/LobbyChatHistory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class LobbyChatHistory
public int LobbyChatHistoryID { get; set; }
public bool Ring { get; set; }

[Index]
public SayPlace SayPlace { get; set; }

[MaxLength(255)]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions ZkData/Migrations/202005171620366_indexLobbyChatHistorySayPlace.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace ZkData.Migrations
{
using System;
using System.Data.Entity.Migrations;

public partial class indexLobbyChatHistorySayPlace : DbMigration
{
public override void Up()
{
CreateIndex("dbo.LobbyChatHistories", "SayPlace");
}

public override void Down()
{
DropIndex("dbo.LobbyChatHistories", new[] { "SayPlace" });
}
}
}
126 changes: 126 additions & 0 deletions ZkData/Migrations/202005171620366_indexLobbyChatHistorySayPlace.resx

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions ZkData/ZkData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@
<Compile Include="Migrations\202005171432012_AddAccountLastChatRead.Designer.cs">
<DependentUpon>202005171432012_AddAccountLastChatRead.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\202005171620366_indexLobbyChatHistorySayPlace.cs" />
<Compile Include="Migrations\202005171620366_indexLobbyChatHistorySayPlace.Designer.cs">
<DependentUpon>202005171620366_indexLobbyChatHistorySayPlace.cs</DependentUpon>
</Compile>
<Compile Include="SpringFilesUnitsyncAttempt.cs" />
<Compile Include="SteamWebApi.cs" />
<Compile Include="UserLanguageNoteAttribute.cs" />
Expand Down Expand Up @@ -846,6 +850,9 @@
<EmbeddedResource Include="Migrations\202005171432012_AddAccountLastChatRead.resx">
<DependentUpon>202005171432012_AddAccountLastChatRead.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\202005171620366_indexLobbyChatHistorySayPlace.resx">
<DependentUpon>202005171620366_indexLobbyChatHistorySayPlace.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ZkDataResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ZkDataResources.Designer.cs</LastGenOutput>
Expand Down

0 comments on commit ed8d2af

Please sign in to comment.