You are here

function _profile2_vid_field in Profile 2 7.2

Define the vid (version ID) field for the {profile} table.

Put it in a separate function in order to guarantee that we use the same definition in hook_schema() and hook_update_N().

2 calls to _profile2_vid_field()
profile2_schema in ./profile2.install
Implements hook_schema().
profile2_update_7105 in ./profile2.install
Add revisioning support.

File

./profile2.install, line 183
Install, update and uninstall functions for the profile module.

Code

function _profile2_vid_field() {
  $vid_field = array(
    'description' => 'The current {profile_revision}.vid version identifier.',
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => FALSE,
    'default' => NULL,
  );
  return $vid_field;
}