Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Handly explicit collations matching the default collation (see #7979).
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Aug 25, 2015
1 parent e11027c commit 587fcac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Expand Up @@ -4,6 +4,9 @@ Contao Open Source CMS changelog
Version 3.5.3 (2015-XX-XX)
--------------------------

### Fixed

This comment has been minimized.

Copy link
@taca

taca Aug 26, 2015

Contributor

Handily or Handy?

This comment has been minimized.

Copy link
@leofeyer

leofeyer Aug 26, 2015

Author Member

It should actually say "Handle" :)

This comment has been minimized.

Copy link
@taca

taca Aug 26, 2015

Contributor

Oh! :)

Handly explicit collations matching the default collation (see #7979).

### Fixed
Fix the duplicate content check in the front end controller (see #7661).

Expand Down
2 changes: 1 addition & 1 deletion system/modules/core/library/Contao/Database/Installer.php
Expand Up @@ -157,7 +157,7 @@ protected function compileCommands()
{
$return['ALTER_ADD'][] = 'ALTER TABLE `'.$k.'` ADD '.$vv.';';
}
elseif ($sql_current[$k]['TABLE_FIELDS'][$kk] != $vv)
elseif ($sql_current[$k]['TABLE_FIELDS'][$kk] != $vv && $sql_current[$k]['TABLE_FIELDS'][$kk] != str_replace(' COLLATE ' . \Config::get('dbCollation'), '', $vv))
{
$return['ALTER_CHANGE'][] = 'ALTER TABLE `'.$k.'` CHANGE `'.$kk.'` '.$vv.';';
}
Expand Down

0 comments on commit 587fcac

Please sign in to comment.