diff --git profile2.install profile2.install index 9ae5328..b773bdd 100644 --- profile2.install +++ profile2.install @@ -106,7 +106,7 @@ function profile2_schema() { 'serialize' => TRUE, 'description' => 'A serialized array of additional data related to this profile type.', ), - ), + ) + entity_exportable_schema_fields(), 'primary key' => array('id'), 'unique keys' => array( 'type' => array('type'), @@ -114,3 +114,22 @@ function profile2_schema() { ); return $schema; } + +/** + * Add in the exportable entity db columns as required by the entity API. + */ +function profile2_update_7100() { + db_add_field('profile_type', 'status', array( + 'type' => 'int', + 'not null' => TRUE, + 'default' => ENTITY_CUSTOM, + 'size' => 'tiny', + 'description' => 'The exportable status of the entity.', + )); + db_add_field('profile_type', 'module', array( + 'description' => 'The name of the providing module if the entity has been defined in code.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => FALSE, + )); +}