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
commit41210c20cd6fef83530adbdaf5fb97e9f929ab6c (patch)
tree2f99a1c08b185890e7148e3876b1d9c53081952e /Timeline/Migrations/DatabaseContextModelSnapshot.cs
parentd6e9ae92a782f747752d9e26504dc2f27e723f04 (diff)
downloadtimeline-41210c20cd6fef83530adbdaf5fb97e9f929ab6c.tar.gz
timeline-41210c20cd6fef83530adbdaf5fb97e9f929ab6c.tar.bz2
timeline-41210c20cd6fef83530adbdaf5fb97e9f929ab6c.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");