aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/DatabaseContextModelSnapshot.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-14 14:21:44 +0800
committercrupest <crupest@outlook.com>2020-06-14 14:21:44 +0800
commit5d467d950fd4078146709470084cbfae331b8b10 (patch)
tree04068a987a6edce803d99e8e110509436604f70d /Timeline/Migrations/DatabaseContextModelSnapshot.cs
parent7ed5306c62262921264bf9c83e00a4c9f3ae33b1 (diff)
downloadtimeline-5d467d950fd4078146709470084cbfae331b8b10.tar.gz
timeline-5d467d950fd4078146709470084cbfae331b8b10.tar.bz2
timeline-5d467d950fd4078146709470084cbfae331b8b10.zip
refactor(back): No longer use standard guid but just use 32-length hex for unique id of timeline.
Diffstat (limited to 'Timeline/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r--Timeline/Migrations/DatabaseContextModelSnapshot.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Timeline/Migrations/DatabaseContextModelSnapshot.cs b/Timeline/Migrations/DatabaseContextModelSnapshot.cs
index 111ae9c2..ea0b58c6 100644
--- a/Timeline/Migrations/DatabaseContextModelSnapshot.cs
+++ b/Timeline/Migrations/DatabaseContextModelSnapshot.cs
@@ -89,11 +89,12 @@ namespace Timeline.Migrations
.HasColumnName("owner")
.HasColumnType("INTEGER");
- b.Property<Guid>("UniqueId")
+ b.Property<string>("UniqueId")
+ .IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("unique_id")
- .HasColumnType("BLOB")
- .HasDefaultValueSql("randomblob(16)");
+ .HasColumnType("TEXT")
+ .HasDefaultValueSql("lower(hex(randomblob(16)))");
b.Property<int>("Visibility")
.HasColumnName("visibility")