diff --git a/sql/V6.0.9.1__Seo_set_some_fields_nullable.sql b/sql/V6.0.9.1__Seo_set_some_fields_nullable.sql new file mode 100644 index 0000000..dd84c06 --- /dev/null +++ b/sql/V6.0.9.1__Seo_set_some_fields_nullable.sql @@ -0,0 +1,7 @@ + +ALTER TABLE `seo_sitemap_link` CHANGE `title` `title` varchar(50) DEFAULT ''; +ALTER TABLE `seo_sitemap_link` CHANGE `description` `description` varchar(200) DEFAULT ''; +ALTER TABLE `seo_sitemap_link` CHANGE `lastmod` `lastmod` datetime DEFAULT '0000-00-00 00:00:00'; +ALTER TABLE `seo_sitemap_link` CHANGE `changefreq` `changefreq` varchar(16) DEFAULT ''; +ALTER TABLE `seo_sitemap_link` CHANGE `priority` `priority` decimal(32,8) DEFAULT '0.00000000'; + diff --git a/src/Seo/SitemapLink.php b/src/Seo/SitemapLink.php index 3ba0472..527b362 100644 --- a/src/Seo/SitemapLink.php +++ b/src/Seo/SitemapLink.php @@ -80,64 +80,48 @@ function init() $this->_a['cols'] = array( 'id' => array( 'type' => 'Sequence', - 'blank' => true, - 'verbose' => 'unique and no repreducable id fro reception' ), 'title' => array( 'type' => 'Varchar', - 'blank' => true, + 'is_null' => true, 'size' => 50, 'editable' => true, 'readable' => true ), 'description' => array( 'type' => 'Varchar', - 'blank' => true, + 'is_null' => true, 'size' => 200, 'editable' => true, 'readable' => true ), 'loc' => array( 'type' => 'Varchar', - 'blank' => false, + 'is_null' => false, 'size' => 2048, 'editable' => true, 'readable' => true ), 'lastmod' => array( 'type' => 'Datetime', - 'blank' => true, + 'is_null' => true, 'verbose' => 'last modification date', 'editable' => true, 'readable' => true ), 'changefreq' => array( 'type' => 'Varchar', - 'blank' => true, + 'is_null' => true, 'size' => 16, 'editable' => true, 'readable' => true ), 'priority' => array( 'type' => 'Float', - 'blank' => true, + 'is_null' => true, 'editable' => true, 'readable' => true ), -// 'creation_dtime' => array( -// 'type' => 'Datetime', -// 'blank' => true, -// 'verbose' => 'creation date', -// 'editable' => false, -// 'readable' => true -// ), -// 'modif_dtime' => array( -// 'type' => 'Datetime', -// 'blank' => true, -// 'verbose' => 'modification date', -// 'editable' => false, -// 'readable' => true -// ) ); }