aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/DatabaseContextModelSnapshot.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-14 00:21:25 +0800
committercrupest <crupest@outlook.com>2020-06-14 00:21:25 +0800
commit4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b (patch)
treec9395a11fa6ccefe6a03e81c7b837e28b2e3e97a /Timeline/Migrations/DatabaseContextModelSnapshot.cs
parent2f8ffdb2db682b1c1407313816def20fde58d35f (diff)
downloadtimeline-4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b.tar.gz
timeline-4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b.tar.bz2
timeline-4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b.zip
refactor(back): Use a better way to handle unique id in timeline.
Diffstat (limited to 'Timeline/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r--Timeline/Migrations/DatabaseContextModelSnapshot.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Timeline/Migrations/DatabaseContextModelSnapshot.cs b/Timeline/Migrations/DatabaseContextModelSnapshot.cs
index eb22653f..111ae9c2 100644
--- a/Timeline/Migrations/DatabaseContextModelSnapshot.cs
+++ b/Timeline/Migrations/DatabaseContextModelSnapshot.cs
@@ -89,12 +89,11 @@ namespace Timeline.Migrations
.HasColumnName("owner")
.HasColumnType("INTEGER");
- b.Property<string>("UniqueId")
- .IsRequired()
+ b.Property<Guid>("UniqueId")
.ValueGeneratedOnAdd()
.HasColumnName("unique_id")
- .HasColumnType("TEXT")
- .HasDefaultValueSql("timeline_create_guid()");
+ .HasColumnType("BLOB")
+ .HasDefaultValueSql("randomblob(16)");
b.Property<int>("Visibility")
.HasColumnName("visibility")