aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/DatabaseContextModelSnapshot.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-13 23:50:09 +0800
committercrupest <crupest@outlook.com>2020-06-13 23:50:09 +0800
commit2f8ffdb2db682b1c1407313816def20fde58d35f (patch)
treeb824b63e1e7b8f453373bb1c9a3c3644635cd1f0 /Timeline/Migrations/DatabaseContextModelSnapshot.cs
parenteba8e9698c09b805d8ac2a8f58db93b947ac29e3 (diff)
downloadtimeline-2f8ffdb2db682b1c1407313816def20fde58d35f.tar.gz
timeline-2f8ffdb2db682b1c1407313816def20fde58d35f.tar.bz2
timeline-2f8ffdb2db682b1c1407313816def20fde58d35f.zip
feat(back): Add database migration to add unique id for timeline.
Diffstat (limited to 'Timeline/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r--Timeline/Migrations/DatabaseContextModelSnapshot.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Timeline/Migrations/DatabaseContextModelSnapshot.cs b/Timeline/Migrations/DatabaseContextModelSnapshot.cs
index 4b5b2fa8..eb22653f 100644
--- a/Timeline/Migrations/DatabaseContextModelSnapshot.cs
+++ b/Timeline/Migrations/DatabaseContextModelSnapshot.cs
@@ -14,7 +14,7 @@ namespace Timeline.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "3.1.2");
+ .HasAnnotation("ProductVersion", "3.1.4");
modelBuilder.Entity("Timeline.Entities.DataEntity", b =>
{
@@ -89,6 +89,13 @@ namespace Timeline.Migrations
.HasColumnName("owner")
.HasColumnType("INTEGER");
+ b.Property<string>("UniqueId")
+ .IsRequired()
+ .ValueGeneratedOnAdd()
+ .HasColumnName("unique_id")
+ .HasColumnType("TEXT")
+ .HasDefaultValueSql("timeline_create_guid()");
+
b.Property<int>("Visibility")
.HasColumnName("visibility")
.HasColumnType("INTEGER");