Add wasDeletedFromServer flag to WFAPost entity

This commit is contained in:
Angelo Stavrow 2020-09-17 14:31:45 -04:00
parent 5af1d38a2d
commit 2caa1e80b0
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
3 changed files with 5 additions and 3 deletions

View File

@ -27,6 +27,7 @@
<attribute name="status" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/> <attribute name="status" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
<attribute name="title" optional="YES" attributeType="String"/> <attribute name="title" optional="YES" attributeType="String"/>
<attribute name="updatedDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/> <attribute name="updatedDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
<attribute name="wasDeletedFromServer" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
<uniquenessConstraints> <uniquenessConstraints>
<uniquenessConstraint> <uniquenessConstraint>
<constraint value="postId"/> <constraint value="postId"/>
@ -35,6 +36,6 @@
</entity> </entity>
<elements> <elements>
<element name="WFACollection" positionX="14.806640625" positionY="202.9156341552734" width="128" height="148"/> <element name="WFACollection" positionX="14.806640625" positionY="202.9156341552734" width="128" height="148"/>
<element name="WFAPost" positionX="287.377197265625" positionY="243.2452697753906" width="128" height="209"/> <element name="WFAPost" positionX="287.377197265625" positionY="243.2452697753906" width="128" height="14"/>
</elements> </elements>
</model> </model>

View File

@ -27,6 +27,7 @@ extension WFAPost {
@NSManaged public var title: String @NSManaged public var title: String
@NSManaged public var updatedDate: Date? @NSManaged public var updatedDate: Date?
@NSManaged public var hasNewerRemoteCopy: Bool @NSManaged public var hasNewerRemoteCopy: Bool
@NSManaged public var wasDeletedFromServer: Bool
} }

View File

@ -7,12 +7,12 @@
<key>WriteFreely-MultiPlatform (iOS).xcscheme_^#shared#^_</key> <key>WriteFreely-MultiPlatform (iOS).xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>1</integer> <integer>0</integer>
</dict> </dict>
<key>WriteFreely-MultiPlatform (macOS).xcscheme_^#shared#^_</key> <key>WriteFreely-MultiPlatform (macOS).xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>0</integer> <integer>1</integer>
</dict> </dict>
</dict> </dict>
</dict> </dict>