Active
Project:
UUID Features Integration
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2010 at 04:31 UTC
Updated:
28 Sep 2010 at 04:45 UTC
Using the latest version of uuid (and seeing no difference in CVS) it seems that file fields are *not* actually supported as I get the following error when I try to export something with a filefield definition:
$ drush fu myfeature
Module appears to already exist in sites/all/modules/features/myfeature
Do you really want to continue? (y/n): y
WD php: User warning: Table 'example.uuid_files' doesn't exist [error]
query: SELECT uuid FROM uuid_files WHERE fid = 1 in _db_query() (line 141 of
/includes/database.mysql.inc).
WD php: User warning: Table 'example.uuid_files' doesn't exist [error]
query: UPDATE uuid_files SET uuid = 'c9833da0-1c08-102e-afb6-fefd45a4d5b3' WHERE fid = 1
in _db_query() (line 141 of /includes/database.mysql.inc).
WD php: User warning: Table 'example.uuid_files' doesn't exist [error]
query: SELECT uuid FROM uuid_files WHERE fid = 2 in _db_query() (line 141 of
/includes/database.mysql.inc).
WD php: User warning: Table 'example.uuid_files' doesn't exist [error]
query: UPDATE uuid_files SET uuid = 'c983cc16-1c08-102e-afb6-fefd45a4d5b3' WHERE fid = 2
in _db_query() (line 141 of /includes/database.mysql.inc).
WD php: User warning: Table 'example.uuid_files' doesn't exist [error]
query: SELECT uuid FROM uuid_files WHERE fid = 3 in _db_query() (line 141 of
/includes/database.mysql.inc).
WD php: User warning: Table 'example.uuid_files' doesn't exist [error]
query: UPDATE uuid_files SET uuid = 'c984698c-1c08-102e-afb6-fefd45a4d5b3' WHERE fid = 3
in _db_query() (line 141 of /includes/database.mysql.inc).
Created module: myfeature in sites/all/modules/features/myfeature [ok]
There's no uuid_features.install, so then I looked at uuid.install:
function uuid_schema() {
return array(
'uuid_node' => uuid_table_schema('node', 'nid'),
'uuid_node_revisions' => uuid_table_schema('node_revisions', 'vid'),
'uuid_users' => uuid_table_schema('users', 'uid'),
'uuid_vocabulary' => uuid_table_schema('vocabulary', 'vid'),
'uuid_term_data' => uuid_table_schema('term_data', 'tid'),
'uuid_comments' => uuid_table_schema('comments', 'cid'),
);
}
As you can see, no definition for 'uuid_files'.
Comments
Comment #1
damienmckennaThis is actually a bug in uuid itself.
Comment #2
damienmckennaBack to uuid_features. It seems that the uuid_files table is not added, indeed files are not supported at all, without this patch to uuid itself: #808690: Support for filefield
At this point I suggest adding a note to the project page explaining the issue.