diff --git a/README.md b/README.md index af4ccc6..db732a5 100755 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ Some things to do, and ideas for potential features: * [Fixed] Fixed a regression that would cause Twitter and Facebook images to not show up * [Improved] Added html_entity_decode() to the _cleanupText() method +* [Fixed] Fixed an `Integrity constraint violation` MySQL error on certain MySQL versions * [Improved] Updated the README.md ### 1.1.34 -- 2016.09.05 diff --git a/models/Seomatic_SettingsModel.php b/models/Seomatic_SettingsModel.php index 5416927..9f4597f 100755 --- a/models/Seomatic_SettingsModel.php +++ b/models/Seomatic_SettingsModel.php @@ -24,9 +24,9 @@ protected function defineAttributes() 'siteSeoKeywords' => array(AttributeType::String, 'default' => 'default,global,comma-separated,keywords'), 'siteTwitterCardType' => array(AttributeType::String, 'default' => 'summary'), 'siteOpenGraphType' => array(AttributeType::String, 'default' => 'website'), - 'siteSeoImageId' => array(AttributeType::Number, 'default' => null), - 'siteSeoTwitterImageId' => array(AttributeType::Number, 'default' => null), - 'siteSeoFacebookImageId' => array(AttributeType::Number, 'default' => null), + 'siteSeoImageId' => array(AttributeType::Number, 'default' => 0), + 'siteSeoTwitterImageId' => array(AttributeType::Number, 'default' => 0), + 'siteSeoFacebookImageId' => array(AttributeType::Number, 'default' => 0), 'siteSeoImageTransform' => array(AttributeType::String, 'default' => ''), 'siteSeoFacebookImageTransform' => array(AttributeType::String, 'default' => ''), 'siteSeoTwitterImageTransform' => array(AttributeType::String, 'default' => ''), diff --git a/releases.json b/releases.json index da58c8e..574e7e6 100644 --- a/releases.json +++ b/releases.json @@ -6,6 +6,7 @@ "notes": [ "[Fixed] SEOmetrics will now work if `open_basedir` is set", "[Improved] Added html_entity_decode() to the _cleanupText() method", + "[Fixed] Fixed an `Integrity constraint violation` MySQL error on certain MySQL versions", "[Improved] Updated the README.md" ] },