You are here

function profile2_update_7102 in Profile 2 7

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

Add a created and a changed column to profiles.

File

./profile2.install, line 214
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,
  ));
}