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 | d31cc920403b1e1f90a48d2569084c2f6a4d7dbe (patch) | |
tree | fcb379996d02a1de4052f6598d7c52e1196b35a7 /Timeline/Migrations/DatabaseContextModelSnapshot.cs | |
parent | d529b53530270cd7c5d9a90ebcb11e49f7b1eb0d (diff) | |
download | timeline-d31cc920403b1e1f90a48d2569084c2f6a4d7dbe.tar.gz timeline-d31cc920403b1e1f90a48d2569084c2f6a4d7dbe.tar.bz2 timeline-d31cc920403b1e1f90a48d2569084c2f6a4d7dbe.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")
|