You are here

function agreement_update_6000 in Agreement 6

Same name and namespace in other branches
  1. 6.2 agreement.install \agreement_update_6000()

File

./agreement.install, line 76
Install, update and uninstall functions for the Agreement module.

Code

function agreement_update_6000() {
  $ret = array();
  db_drop_index($ret, 'agreement', 'id');
  db_add_field($ret, 'agreement', 'sid', array(
    'type' => 'varchar',
    'length' => 46,
  ));
  db_add_field($ret, 'agreement', 'agreed_date', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
  ));
  return $ret;
}