summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/file/file.install
diff options
context:
space:
mode:
authorAlex Pott <alex.a.pott@googlemail.com>2013-04-13 18:06:40 +0100
committerAlex Pott <alex.a.pott@googlemail.com>2013-04-13 18:06:40 +0100
commita820153fa530341048c604555286fff1e1428329 (patch)
treeba72013e1047dea894048d01e4318b8c7cac54b7 /core/modules/file/file.install
parent5a6647be01d869d2bc61161bd8bbcd220a96fdee (diff)
downloaddrupal-a820153fa530341048c604555286fff1e1428329.tar.gz
drupal-a820153fa530341048c604555286fff1e1428329.zip
Issue #1735118 by swentel, yched, xjm, larowlan, alexpott, tim.plunkett: Convert Field API to CMI.
Diffstat (limited to 'core/modules/file/file.install')
-rw-r--r--core/modules/file/file.install18
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);
+}