aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/20190819080823_AddIndexForUserName.cs
blob: b910a174ea3b709106ecbb406b00b9095e261491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using Microsoft.EntityFrameworkCore.Migrations;

namespace Timeline.Migrations
{
    public partial class AddIndexForUserName : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_users_name",
                table: "users",
                column: "name");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_users_name",
                table: "users");
        }
    }
}