You are here

function textimage_update_1 in Textimage 6.2

Same name and namespace in other branches
  1. 5.2 textimage.install \textimage_update_1()
  2. 5 textimage.install \textimage_update_1()

Implementation of hook_update_N().

Install the textimage tables and seperate variable names for captcha specific variables

File

./textimage.install, line 99

Code

function textimage_update_1() {
  $ret = array();
  $schema['textimage_preset'] = array(
    'fields' => array(
      'pid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'settings' => array(
        'type' => 'text',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'pid',
    ),
  );
  db_create_table($ret, 'textimage_preset', $schema['textimage_preset']);
  return $ret;
}