24 lines
643 B
C#
24 lines
643 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace ReallifeGamemode.Database.Migrations
|
|
{
|
|
public partial class UserNameUniqueIndex : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Users_Name",
|
|
table: "Users",
|
|
column: "Name",
|
|
unique: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Users_Name",
|
|
table: "Users");
|
|
}
|
|
}
|
|
}
|