summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-02-27 17:08:32 -0500
committerDavid Rothstein <drothstein@gmail.com>2013-02-27 17:08:32 -0500
commit297665a47120ae533aa1bbde1de9cb1227e7c6bf (patch)
tree1488b6c8a5c817a12c662f4715a02c4bec2e82ad /modules/system
parentad244e2cb8a23b767907a5e33a2d675d251b248a (diff)
downloadbrdo-297665a47120ae533aa1bbde1de9cb1227e7c6bf.tar.gz
brdo-297665a47120ae533aa1bbde1de9cb1227e7c6bf.tar.bz2
Issue #1012620 by Berdir, kbasarab, YesCT: Fixed Unique key on date_formats().(format|type) is problematic for case insensitive collations.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 338e73a21..59bb2f14a 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -744,6 +744,7 @@ function system_schema() {
'type' => 'varchar',
'length' => 100,
'not null' => TRUE,
+ 'binary' => TRUE,
),
'type' => array(
'description' => 'The date format type, e.g. medium.',
@@ -3088,6 +3089,21 @@ function system_update_7077() {
));
}
+
+/**
+ * Add binary to {date_formats}.format.
+ */
+function system_update_7078() {
+ db_drop_unique_key('date_formats', 'formats');
+ db_change_field('date_formats', 'format', 'format', array(
+ 'description' => 'The date format string.',
+ 'type' => 'varchar',
+ 'length' => 100,
+ 'not null' => TRUE,
+ 'binary' => TRUE,
+ ), array('unique keys' => array('formats' => array('format', 'type'))));
+}
+
/**
* @} End of "defgroup updates-7.x-extra".
* The next series of updates should start at 8000.