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 | 1df83c67e999f7bcf606046c0c687a0be5f8d462 (patch) | |
tree | d073fc9162ab35e1d520f5888c83d4bc98a5ad05 /Timeline/Migrations/DatabaseContextModelSnapshot.cs | |
parent | 41210c20cd6fef83530adbdaf5fb97e9f929ab6c (diff) | |
download | timeline-1df83c67e999f7bcf606046c0c687a0be5f8d462.tar.gz timeline-1df83c67e999f7bcf606046c0c687a0be5f8d462.tar.bz2 timeline-1df83c67e999f7bcf606046c0c687a0be5f8d462.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")
|