aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/20190819080823_AddIndexForUserName.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-19 16:12:16 +0800
committerGitHub <noreply@github.com>2019-08-19 16:12:16 +0800
commit72ab8e49929d528b7cb461ba90ad86691a3f437b (patch)
treebd8c0d70aac7cd4d1a6c28ae7c9b7c681dbd5613 /Timeline/Migrations/20190819080823_AddIndexForUserName.cs
parent3371b473d0d055f46c9ea09fba7e0d56e7a386a5 (diff)
parent9168f07d1f35b5ba670b3c1d900f186ac868284b (diff)
downloadtimeline-72ab8e49929d528b7cb461ba90ad86691a3f437b.tar.gz
timeline-72ab8e49929d528b7cb461ba90ad86691a3f437b.tar.bz2
timeline-72ab8e49929d528b7cb461ba90ad86691a3f437b.zip
Merge pull request #45 from crupest/avatar-cache
Add 304 response for If-Modified-Since in avatar.
Diffstat (limited to 'Timeline/Migrations/20190819080823_AddIndexForUserName.cs')
-rw-r--r--Timeline/Migrations/20190819080823_AddIndexForUserName.cs22
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");
+ }
+ }
+}