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
commit4c6f4c214edc5b574951d4cc8f3654bc30efa8da (patch)
treef0a84c263a58772b02f5d2859444f13cc5df5bdc /Timeline/Migrations/DatabaseContextModelSnapshot.cs
parent994ebd75db1a3d4317402b0552f4a9cc41fd7349 (diff)
downloadtimeline-4c6f4c214edc5b574951d4cc8f3654bc30efa8da.tar.gz
timeline-4c6f4c214edc5b574951d4cc8f3654bc30efa8da.tar.bz2
timeline-4c6f4c214edc5b574951d4cc8f3654bc30efa8da.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")