This file documents changes in the data model. Please explain any changes to the data model as well as any custom migrations.
@nheagy 2018-09-26
- Replaced
QuickStartCompletedTourwithQuickStartTourStatewithcompletedandskippedattributes
@danielebogo 2018-08-31
PostaddedisStickyPostproperty to mark posts as sticky.
@frosty 2018-08-15
- Re-added
PublicizeService.externalUsersOnlyproperty from model 77, which was omitted from model 78.
- @nheagy 2018-07-25
- Added
QuickStartCompletedTourfor tracking completed Quick Start tours
- @aerych 2018-07-27
PublicizeServiceaddedexternalUsersOnly(bool) property. A new field returned by the API.
- @frosty 2018-05-16
ReaderPostaddedisSavedForLaterproperty to mark posts as saved to read later.
-
@astralbodies 2018-05-15
-
MediacorrectedfeaturedOnPostsrelationship to referenceAbstractPostinstead ofPost. -
@frosty 2018-04-25
-
AccountSettingsaddedtracksOptOutproperty, used to store the user's current preference for opting out of analytics tracking. -
@danielebogo 2018-04-23
-
ReaderSiteInfoSubscriptionPostandReaderSiteInfoSubscriptionEmailadded to store site notifications subscription data. -
ReaderSiteTopicaddedpostSubscriptionandemailSubscriptionproperties as relationships toReaderSiteInfoSubscriptionPostandReaderSiteInfoSubscriptionEmail.
- @sergioestevao 2018-04-18
AbstractPostaddedfeaturedImagea relationship to Media for the media featured in a post and removed 'post_thumbnail' that used to store a Int with the mediaID information.
- @sergioestevao 2018-03-05
- ``Blog
addedquotaSpaceAllowed` and 'quotaSpaceUsed' that stores a Int64, long number with quota information for the site.
- @sergioestevao 2018-02-07
- ``Media
addederror` Transformable property that stores a NSError object that resulted from a failed import or upload.
- @elibud 2018-02-02
BlogSettingsaddedjetpackLazyLoadImagesandjetpackServeImagesFromOurServersBool properties.
- @koke 2018-01-16
BlogSettingsaddedgmtOffsetDecimal property, andtimeZoneStringString property. Store the timezone settings.
- @ctarda 2017-11-27
PostTagaddedtagDescriptionstring property andpostCountinteger property. Store an optional description and the number of posts a tag has been used in.
- @elibud 2017-12-12
BlogSettingsadded the following string properties:dateFormat,timeFormat,startOfWeek, the following boolean propertiesampSupported,ampEnabledand an int_32postsPerPageproperty.
- @3vangelos 2017-09-26
Mediaaddedaltstring property. Stores the information for an html alt tag for images.
- @elibud 2017-08-17
BlogSettingsadded the following Jetpack security settings properties:jetpackMonitorEnabled,jetpackMonitorEmailNotifications,jetpackMonitorPushNotifications,jetpackBlockMaliciousLoginAttempts,jetpackSSOEnabled,jetpackSSOMatchAccountsByEmail,jetpackSSORequireTwoStepAuthenticationboolean, defaultNOandjetpackLoginWhiteListedIPAddressesstring set property.
- @elibud 2017-08-02
ThemeaddedthemeUrlstring property.
- @elibud 2017-08-02
Themeaddedcustomboolean property. DefaultNO.
- @koke 2017-07-31
Roleadded withslug,name,blog.Blogaddedrolesrelationship.
- @koke 2017-07-21
BlogremovedjetpackAccountWPAccountremovedjetpackBlogs- @koke 2017-07-19
BlogaddeduserIDInt64 property. Stores the current user ID.
- @kurzee 2017-06-16
MediaaddedlocalThumbnailIdentifierstring property. Stores the locally generated thumbnail identifier.
- @elibud 2017-05-31
BlogSettingsaddediconMediaIDint_32 property. Stores the mediaID of the site's icon.
- @kurzee 2017-05-04
MenuItemaddedclassesproperty.- @elibud 2017-04-26
BasePostaddedsuggested_slugproperty.
- @elibud 2017-04-06
BlogaddedhasPaidPlanboolean property. DefaultNO. Not optional.
- @kurzee 2017-03-16
Mediaremovedorientationproperty.Mediaremovedprogressproperty.
- @jleandroperez 2017-02-22
BasePostremovedmt_text_moreproperty- @koke 2017-02-10
AccountaddedemailVerifiedproperty.- @elibud 2017-02-02
Postadded optionaldisabledPublicizeConnectionstransformable property.Postadded optionalpublicizeMessageandpublicizeMessageIDstring properties.
- @aerych 2016-12-21
ReaderPostrenamedpreserveForRestorationto "inUse"ReaderAbstractTopicrenamedpreserveForRestorationto "inUse"
- @aerych 2016-12-08
ReaderPostaddedpreserveForRestorationboolean. Indexed. DefaultNO. Not optional.
- @jleandroperez 2016-10-27
NotificationaddednotificationHashproperty.- @jleandroperez 2016-10-19
NotificationremovedsimperiumKeyproperty.NotificationremovedghostDataproperty.NotificationaddednotificationIdproperty.- Removed
Metaentity.
- @koke 2016-09-28
- Added
ReaderTeamTopicentity.
- @aerych 2016-08-12
- Added
algorithmoptional string field toReaderAbstractTopic. - Added
railcaroptional NSData field toReaderPost. - @aerych 2016-08-05
- Removed
ReaderSiteentity. - @aerych 2016-07-19
ReaderAbstractTopicaddedpreserveForRestorationboolean. Indexed. DefaultNO. Not optional.
- @aerych 2016-06-24
ReaderSiteTopicaddedfeedURLstring property- @jleandroperez 2016-06-20
PersonaddedcreationDateattribute.- @jleandroperez 2016-06-21
PersonremovedisFollowerproperty.PersonaddedkindInt16 attribute.- @aerych 2016-06-09
- Moved
dateModifiedproperty fromBasePosttoAbstractPost - @aerych 2016-05-26
- Added
ReaderSearchSuggestionentity. Represents a search in the reader. - @aerych 2016-05-31
- Added
dateModifiedproperty toBasePostmodel. - @aerych 2016-05-23
ReaderPostaddedscore.ReaderPostaddedsortRank. It is not optional so the default of 0 is enforced.
- @frosty 2016-05-17
- Added
Domainentity. Represents a domain belonging to a site. Blogadded new relationshipdomains. An unordered set ofDomains for the blog.- @jleandroperez 2016-05-13
PersonupdatedsiteIDto Int64.PersonupdateduserIDto Int64.Personadded BooleanisFollower.- @frosty 2016-05-12
Blogadded StringplanTitle.- @aerych 2016-05-12
- Added
ReaderSearchTopicentity. Represents a search in the reader. - @jleandroperez 2016-05-04
Personadded Int64linkedUserID.- @jleandroperez 2016-04-22
Blogadded transformablecapabilities.
- @sergioestevao 2016-04-05
Mediaadded new integer attributepostIDto store the post to where the media is attached to.- @kurzee 2016-04-08
MenuchangingmenuIdattribute tomenuIDas a int_32 number instead of string.MenuItemchangingitemIdattribute toitemIDas an int_32 number instead of string.MenuItemchangingcontentIdattribute tocontentIDas an int_64 number instead of string.- @jleandroperez 2016-04-11
AccountSettingsadded new stringemailPendingAddress. Whenever it's not nil, contains the new User's Email Address.AccountSettingsadded new boolemailPendingChange. Indicates whether there's a pending Email change, or not.
Postadded new string attributepostTypeto store the associated string type of aPostentity.- Added
PostTypeentity. Represents a post type and its info. Blogadded new relationshippostTypesto storePostTypeentities for a site.
BlogSettingsadded stringsharingButtonStyle. Stores style to use for sharing buttons.BlogSettingsadded stringsharingLabel. Stores the text to show in the sharing label.BlogSettingsadded stringsharingTwitterName. Stores the username used when sharing to Twitter.BlogSettingsadded boolsharingCommentLikesEnabled. Whether comments display a like button.BlogSettingsadded boolsharingDisabledLikes. Whether posts display a like button.BlogSettingsadded boolsharingDisabledReblogs. Whether posts display a reblog button.BlogSettingsadded integerlanguageID. Stores the Blog's Language ID.- Added
SharingButtonentity. Represents a buton for sharing content to a third-party service. Blogadded new relationshipsharingButtons. An unordered set ofShareButtons for the blog.
- Added
Menuentity. Encapsulates the data and relationships for customizing a site menu. - Added
MenuItementity. Encapsulates the navigation item data belonging to a Menu. - Added
MenuLocationentity. Encapsulates a site/theme location that a Menu can occupy. - Added
PostTagentity. Encapsulates a site's tag taxonomy. Blogadded new relationship calledmenus. Persisting associated Menus for a site.Blogadded new relationship calledmenuLocations. Persists associated MenuLocations available for a site.Blogadded new relationship calledtags. Persisting associated PostTags for a site.Blogadded new integer64 attributeplanIDto store a blog's current plan's product ID.
- Added
PublicizeServiceentity. Represents third-party services available to Publicize - Added
PublicizeConnectionentity. Represents a connection between a blog and a third-party Publicize service. Blogadded a new relationship calledconnections. These are the PublicizeConnections for the blog.
ReaderPostadded new integer64 calledfeedIDto store a post's feed ID if it exists.ReaderPostadded new integer64 calledfeedItemIDto store a post's feed item ID if it exists.
- Added new entity
AccountSettings Accounthas now a new one-to-one relationship mapping toAccountSettings
Themeadded new string attributesauthorandauthorUrlto store a theme's author informationThemeadded new boolean attributepurchasedto store a premium theme's purchased status
Changes to the data model:
- Added new entity:
BlogSettings, to encapsulate all of the Blog Settings Bloghas now a new one-to-one relationship mapping toBlogSettings- Migrated the attribute
Blog.blogNameover toBlogSettings.name - Migrated the attribute
Blog.blogTaglineover toBlogSettings.tagline - Migrated the attribute
Blog.defaultCategoryIDover toBlogSettings.defaultCategoryID - Migrated the attribute
Blog.defaultPostFormatover toBlogSettings.defaultPostFormat - Migrated the attribute
Blog.geolocationEnabledover toBlogSettings.geolocationEnabled - Migrated the attribute
Blog.privacyover toBlogSettings.privacy - Migrated the attribute
Blog.relatedPostsAllowedover toBlogSettings.relatedPostsAllowed - Migrated the attribute
Blog.relatedPostsEnabledover toBlogSettings.relatedPostsEnabled - Migrated the attribute
Blog.relatedPostsShowHeadlineover toBlogSettings.relatedPostsShowHeadline - Migrated the attribute
Blog.relatedPostsShowThumbnailsover toBlogSettings.relatedPostsShowThumbnails
Notification.idfield has been updated to Integer 64
Changes to the data model:
Themeadded a new string attribute calleddemoUrlto store a theme's demo site addressThemeadded a new string attribute calledpriceto store a premium theme's price display stringThemeadded a new string attribute calledstylesheetto store identifier used to construct helper linksThemeadded a new number attribute calledorderto store the display order retrieved by- Added new entity
Person
- Added new entity
ReaderCrossPostMeta ReaderPostadded new relationship calledcrossPostMetato store the source post ID of a cross-post.
Blogadded a new boolean attribute calledrelatedPostsAllowedto store the related setting on the site;Blogadded a new boolean attribute calledrelatedPostsEnabledto store the related setting on the site;Blogadded a new boolean attribute calledrelatedPostsShowHeadlineto store the related setting on the site;Blogadded a new boolean attribute calledrelatedPostsShowThumbnailsto store the related setting on the site;
Changes to the data model:
Blogadded a new number attribute calledprivacyto store the privacy setting on the siteReaderPostadded new string fields forblavatar,primaryTag, andprimaryTagSlugReaderPostadded new integer fields forwordCount, andreadingTimeReaderPostadded new boolean fields forisExternal, andisJetpackReaderPostremoved fieldsdateCommentsSynced, andstoredComment- Added new entities:
ReaderAbstractTopic,ReaderTagTopic,ReaderListTopic,ReaderDefaultTopic,ReaderSiteTopic,ReaderGapMarker. - Edited obsolete mapping model:
SafeReaderTopicToReaderTopic - Removes obsolete
ReaderTopicmodel
Changes to the data model:
Blogadded a new number attribute calleddefaultCategoryIDto store the default category id for new posts on the siteBlogadded a new string attribute calleddefaultPostFormatto store the default post format for new posts on the site
Changes to the data model:
Blogadded a new attribute calledblogTaglineto store the tagline of a siteAbstract Postse the default value formetaPublishImmediatelyattribute to yesBasePostset the default value for thestatusattribute to "publish"Accountadded adisplayNameattribute (@koke)
Changes to the data model:
Mediaadded a new attribute called localThumbnailURL to store the url of a thumbnail on the server, specially relevant for videos
Mediaadded a new attribute called remoteThumbnailURL to store the url of a thumbnail on the server, specially relevant for videos
Changes to the data model:
Accountloses theisWpcomattribute. Only WordPress.com accounts are stored in Core Data nowBlog.accountis now optionalAccountloses thexmlrpcattribute, as they will all be the same WordPress.com XML-RPC endpoint.- Self hosted username is stored in
Blog.usernamenow, and it's no longer transient. - Removed
isJetpackattribute - Added
isHostedAtWPcomattribute
Migration details:
- Only
Accountobjects whereisWpcom == YESwill be migrated, added a predicate filter to the mapping model Bloghas a custom migration policy to calculateisHostedAtWPcomandusername