Skip to content

Commit

Permalink
fix bug in managing the sitemap links
Browse files Browse the repository at this point in the history
  • Loading branch information
hadimansouri committed Apr 12, 2020
1 parent 5125a64 commit d07a507
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
7 changes: 7 additions & 0 deletions sql/V6.0.9.1__Seo_set_some_fields_nullable.sql
Original file line number Diff line number Diff line change
@@ -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';

28 changes: 6 additions & 22 deletions src/Seo/SitemapLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
// )
);
}

Expand Down

0 comments on commit d07a507

Please sign in to comment.