This commit is contained in:
parent
4c345bd044
commit
4d40add598
13 changed files with 1722 additions and 12 deletions
|
@ -0,0 +1,33 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Sledgemapper.Api.Migrations
|
||||
{
|
||||
public partial class uniquesessionnameindex : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Sessions_CampaignId_SessionId",
|
||||
table: "Sessions");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Sessions_CampaignId_SessionName",
|
||||
table: "Sessions",
|
||||
columns: new[] { "CampaignId", "SessionName" },
|
||||
unique: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Sessions_CampaignId_SessionName",
|
||||
table: "Sessions");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Sessions_CampaignId_SessionId",
|
||||
table: "Sessions",
|
||||
columns: new[] { "CampaignId", "SessionId" },
|
||||
unique: true);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue