Issue #1815886 by bojanz, slashrsm | torgosPizza: Change the database schema to allow Drupal core to manage files larger than 4 GB.
parent
fe2e82070a
commit
6c89f3924e
|
@ -1,6 +1,8 @@
|
||||||
|
|
||||||
Drupal 7.25, xxxx-xx-xx (development version)
|
Drupal 7.25, xxxx-xx-xx (development version)
|
||||||
-----------------------
|
-----------------------
|
||||||
|
- Changed the database schema of the {file_managed} table to allow Drupal to
|
||||||
|
manage files larger than 4 GB.
|
||||||
- Changed the File module's hook_field_load() implementation to prevent file
|
- Changed the File module's hook_field_load() implementation to prevent file
|
||||||
entity properties which have the same name as file or image field properties
|
entity properties which have the same name as file or image field properties
|
||||||
from overwriting the field properties (minor API change).
|
from overwriting the field properties (minor API change).
|
||||||
|
|
|
@ -858,6 +858,7 @@ function system_schema() {
|
||||||
'filesize' => array(
|
'filesize' => array(
|
||||||
'description' => 'The size of the file in bytes.',
|
'description' => 'The size of the file in bytes.',
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
|
'size' => 'big',
|
||||||
'unsigned' => TRUE,
|
'unsigned' => TRUE,
|
||||||
'not null' => TRUE,
|
'not null' => TRUE,
|
||||||
'default' => 0,
|
'default' => 0,
|
||||||
|
@ -3134,6 +3135,21 @@ function system_update_7078() {
|
||||||
), array('unique keys' => array('formats' => array('format', 'type'))));
|
), array('unique keys' => array('formats' => array('format', 'type'))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Convert the 'filesize' column in {file_managed} to a bigint.
|
||||||
|
*/
|
||||||
|
function system_update_7079() {
|
||||||
|
$spec = array(
|
||||||
|
'description' => 'The size of the file in bytes.',
|
||||||
|
'type' => 'int',
|
||||||
|
'size' => 'big',
|
||||||
|
'unsigned' => TRUE,
|
||||||
|
'not null' => TRUE,
|
||||||
|
'default' => 0,
|
||||||
|
);
|
||||||
|
db_change_field('file_managed', 'filesize', 'filesize', $spec);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @} End of "defgroup updates-7.x-extra".
|
* @} End of "defgroup updates-7.x-extra".
|
||||||
* The next series of updates should start at 8000.
|
* The next series of updates should start at 8000.
|
||||||
|
|
Loading…
Reference in New Issue