You are here

function profile2_update_7102 in Profile 2 7.2

Same name and namespace in other branches
  1. 7 profile2.install \profile2_update_7102()

Add a created and a changed column to profiles.

File

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

Code

function profile2_update_7102() {
  db_add_field('profile', 'created', array(
    'description' => 'The Unix timestamp when the profile was created.',
    'type' => 'int',
    'not null' => FALSE,
  ));
  db_add_field('profile', 'changed', array(
    'description' => 'The Unix timestamp when the profile was most recently saved.',
    'type' => 'int',
    'not null' => FALSE,
  ));
}