瀏覽代碼

Add uniqueness constraint on alias, remove views attribute

pull/42/head
Angelo Stavrow 3 年之前
父節點
當前提交
f235a0c2d0
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 1A49C7064E060EEE
共有 2 個檔案被更改,包括 10 行新增7 行删除
  1. +6
    -2
      Shared/Models/LocalStorageModel.xcdatamodeld/LocalStorageModel.xcdatamodel/contents
  2. +4
    -5
      WFACollection+CoreDataProperties.swift

+ 6
- 2
Shared/Models/LocalStorageModel.xcdatamodeld/LocalStorageModel.xcdatamodel/contents 查看文件

@@ -8,9 +8,13 @@
<attribute name="styleSheet" optional="YES" attributeType="String"/>
<attribute name="title" attributeType="String"/>
<attribute name="url" optional="YES" attributeType="String"/>
<attribute name="views" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="alias"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
<elements>
<element name="WFACollection" positionX="-18" positionY="27" width="128" height="149"/>
<element name="WFACollection" positionX="-18" positionY="27" width="128" height="134"/>
</elements>
</model>

+ 4
- 5
WFACollection+CoreDataProperties.swift 查看文件

@@ -8,16 +8,15 @@ extension WFACollection {
}

@NSManaged public var alias: String?
@NSManaged public var title: String?
@NSManaged public var blogDescription: String?
@NSManaged public var styleSheet: String?
@NSManaged public var isPublic: Bool
@NSManaged public var views: Int16
@NSManaged public var email: String?
@NSManaged public var isPublic: Bool
@NSManaged public var styleSheet: String?
@NSManaged public var title: String?
@NSManaged public var url: String?

}

extension WFACollection: Identifiable {
extension WFACollection : Identifiable {

}

Loading…
取消
儲存