diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-20 23:57:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 23:57:47 +0800 |
commit | fd95f9abc017575b13a31dd16ac72ef663e984d6 (patch) | |
tree | 3d20f696dd097b86eeba497baf8dc1baf966626c /Timeline/Migrations/DatabaseContextModelSnapshot.cs | |
parent | 7814ed7059f74cfecfa8a0c9aa4f9946d1015364 (diff) | |
parent | 55f3870cc5301477a7462748f0232f04040a8d2f (diff) | |
download | timeline-fd95f9abc017575b13a31dd16ac72ef663e984d6.tar.gz timeline-fd95f9abc017575b13a31dd16ac72ef663e984d6.tar.bz2 timeline-fd95f9abc017575b13a31dd16ac72ef663e984d6.zip |
Merge pull request #47 from crupest/avatar-enhance
Use etag for avatar cache.
Diffstat (limited to 'Timeline/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r-- | Timeline/Migrations/DatabaseContextModelSnapshot.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Timeline/Migrations/DatabaseContextModelSnapshot.cs b/Timeline/Migrations/DatabaseContextModelSnapshot.cs index 0eb85997..4941321c 100644 --- a/Timeline/Migrations/DatabaseContextModelSnapshot.cs +++ b/Timeline/Migrations/DatabaseContextModelSnapshot.cs @@ -43,7 +43,8 @@ namespace Timeline.Migrations b.HasKey("Id");
- b.HasIndex("Name");
+ b.HasIndex("Name")
+ .IsUnique();
b.ToTable("users");
});
@@ -57,6 +58,10 @@ namespace Timeline.Migrations b.Property<byte[]>("Data")
.HasColumnName("data");
+ b.Property<string>("ETag")
+ .HasColumnName("etag")
+ .HasMaxLength(30);
+
b.Property<DateTime>("LastModified")
.HasColumnName("last_modified");
|