diff options
Diffstat (limited to 'core/modules/file/file.install')
-rw-r--r-- | core/modules/file/file.install | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/core/modules/file/file.install b/core/modules/file/file.install index 27a243825bf..36ce089d91f 100644 --- a/core/modules/file/file.install +++ b/core/modules/file/file.install @@ -125,8 +125,8 @@ function file_schema() { ), 'id' => array( 'description' => 'The primary key of the object using the file.', - 'type' => 'int', - 'unsigned' => TRUE, + 'type' => 'varchar', + 'length' => 64, 'not null' => TRUE, 'default' => 0, ), @@ -245,3 +245,17 @@ function file_update_8000() { 'file_icon_directory'=>'icon.directory', )); } + +/** + * Convert the 'id' column in {file_usage} to accept UUIDs. + */ +function file_update_8001() { + $spec = array( + 'description' => 'The primary key of the object using the file.', + 'type' => 'varchar', + 'length' => 64, + 'not null' => TRUE, + 'default' => '', + ); + db_change_field('file_usage', 'id', 'id', $spec); +} |