Skip to content

Commit

Permalink
[BUGFIX] Increase size of sitemap_priority database field
Browse files Browse the repository at this point in the history
The field size is increased to decimal(2,1) to be able to store
the value 1.0 zero in MariaDB databases.

Resolves: #91736
Releases: master, 10.4
Change-Id: I72aa5e5a1f23673f6912b2f042c9d9364fd9855f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65020
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
astehlik authored and bmack committed Jul 20, 2020
1 parent 0133420 commit 497756e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions typo3/sysext/seo/Tests/Functional/Fixtures/pages-sitemap.xml
Expand Up @@ -132,6 +132,15 @@
<deleted>0</deleted>
<no_index>1</no_index>
</pages>
<pages>
<uid>18</uid>
<pid>1</pid>
<title>Sitemap priority 1.0</title>
<tstamp>1491811200</tstamp>
<slug>/sitemap-priority-1</slug>
<deleted>0</deleted>
<sitemap_priority>1.0</sitemap_priority>
</pages>
<pages>
<uid>100</uid>
<pid>0</pid>
Expand Down
2 changes: 1 addition & 1 deletion typo3/sysext/seo/ext_tables.sql
Expand Up @@ -13,6 +13,6 @@ CREATE TABLE pages (
twitter_image int(11) unsigned DEFAULT '0' NOT NULL,
twitter_card varchar(255) DEFAULT '' NOT NULL,
canonical_link varchar(2048) DEFAULT '' NOT NULL,
sitemap_priority decimal(1,1) DEFAULT '0.5' NOT NULL,
sitemap_priority decimal(2,1) DEFAULT '0.5' NOT NULL,
sitemap_changefreq varchar(10) DEFAULT '' NOT NULL,
);

0 comments on commit 497756e

Please sign in to comment.