From f2aa3cc200a192f568742459e815b75b4e2db3dd Mon Sep 17 00:00:00 2001 From: webchick Date: Sun, 2 Sep 2012 16:28:56 -0700 Subject: Issue #1691438 by Dave Reid, CrashTest_, quicksketch, jbrown, Devin Carlson: Fixed Regression: {file_managed()}.filename should NOT be binary (and case-sensitive by default). --- modules/system/system.install | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index 4f85dc928..220dfee24 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -810,7 +810,6 @@ function system_schema() { 'length' => 255, 'not null' => TRUE, 'default' => '', - 'binary' => TRUE, ), 'uri' => array( 'description' => 'The URI to access the file (either local or remote).', @@ -3074,6 +3073,19 @@ function system_update_7076() { } } +/** + * Revert {file_managed}.filename changed to a binary column. + */ +function system_update_7077() { + db_change_field('file_managed', 'filename', 'filename', array( + 'description' => 'Name of the file with no path components. This may differ from the basename of the URI if the file is renamed to avoid overwriting an existing file.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + 'default' => '', + )); +} + /** * @} End of "defgroup updates-7.x-extra". * The next series of updates should start at 8000. -- cgit v1.2.3