diff options
author | crupest <crupest@outlook.com> | 2020-08-11 01:16:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-11 01:16:56 +0800 |
commit | e02e1e120693d466679cae2b602085f57b60971f (patch) | |
tree | 4ef46f3861528b8b5287cc4a6912fb402dee57cd /Timeline/Migrations/DatabaseContextModelSnapshot.cs | |
parent | 06e79c99bbc810f16058b35f1c88c23148bf8e57 (diff) | |
download | timeline-e02e1e120693d466679cae2b602085f57b60971f.tar.gz timeline-e02e1e120693d466679cae2b602085f57b60971f.tar.bz2 timeline-e02e1e120693d466679cae2b602085f57b60971f.zip |
Make author column of post nullable.
Diffstat (limited to 'Timeline/Migrations/DatabaseContextModelSnapshot.cs')
-rw-r--r-- | Timeline/Migrations/DatabaseContextModelSnapshot.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Timeline/Migrations/DatabaseContextModelSnapshot.cs b/Timeline/Migrations/DatabaseContextModelSnapshot.cs index 41fcc2e6..8ae4aeea 100644 --- a/Timeline/Migrations/DatabaseContextModelSnapshot.cs +++ b/Timeline/Migrations/DatabaseContextModelSnapshot.cs @@ -146,7 +146,7 @@ namespace Timeline.Migrations .HasColumnName("id")
.HasColumnType("INTEGER");
- b.Property<long>("AuthorId")
+ b.Property<long?>("AuthorId")
.HasColumnName("author")
.HasColumnType("INTEGER");
@@ -312,9 +312,7 @@ namespace Timeline.Migrations {
b.HasOne("Timeline.Entities.UserEntity", "Author")
.WithMany("TimelinePosts")
- .HasForeignKey("AuthorId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
+ .HasForeignKey("AuthorId");
b.HasOne("Timeline.Entities.TimelineEntity", "Timeline")
.WithMany("Posts")
|