diff options
author | crupest <crupest@outlook.com> | 2020-06-14 00:21:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-14 00:21:25 +0800 |
commit | 4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b (patch) | |
tree | c9395a11fa6ccefe6a03e81c7b837e28b2e3e97a /Timeline/Migrations/DatabaseContextModelSnapshot.cs | |
parent | 2f8ffdb2db682b1c1407313816def20fde58d35f (diff) | |
download | timeline-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.cs | 7 |
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")
|