aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/DatabaseContextModelSnapshot.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-20 23:54:22 +0800
committer杨宇千 <crupest@outlook.com>2019-08-20 23:54:22 +0800
commitf657105462b7a8c528b39005d81ffe6141f476a5 (patch)
tree3d20f696dd097b86eeba497baf8dc1baf966626c /Timeline/Migrations/DatabaseContextModelSnapshot.cs
parent63eec85627bcd3c584865d47a237de44bcdb8b98 (diff)
downloadtimeline-f657105462b7a8c528b39005d81ffe6141f476a5.tar.gz
timeline-f657105462b7a8c528b39005d81ffe6141f476a5.tar.bz2
timeline-f657105462b7a8c528b39005d81ffe6141f476a5.zip
Update Database.
Diffstat (limited to 'Timeline/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r--Timeline/Migrations/DatabaseContextModelSnapshot.cs7
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");