diff options
Diffstat (limited to 'Timeline/Migrations/20190819080823_AddIndexForUserName.cs')
-rw-r--r-- | Timeline/Migrations/20190819080823_AddIndexForUserName.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Timeline/Migrations/20190819080823_AddIndexForUserName.cs b/Timeline/Migrations/20190819080823_AddIndexForUserName.cs new file mode 100644 index 00000000..b910a174 --- /dev/null +++ b/Timeline/Migrations/20190819080823_AddIndexForUserName.cs @@ -0,0 +1,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");
+ }
+ }
+}
|