/[drupal]/contributions/modules/workflow/workflow.install
ViewVC logotype

Diff of /contributions/modules/workflow/workflow.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.13.2.1, Mon Jan 5 17:10:00 2009 UTC revision 1.13.2.2, Wed Jan 7 02:48:33 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: workflow.install,v 1.13 2008/12/31 21:25:05 jvandyk Exp $  // $Id: workflow.install,v 1.13.2.1 2009/01/05 17:10:00 jvandyk Exp $
3    
4  /**  /**
5   * Implementation of hook_install().   * Implementation of hook_install().
# Line 29  function workflow_schema() { Line 29  function workflow_schema() {
29        'wid'       => array('type' => 'serial', 'not null' => TRUE),        'wid'       => array('type' => 'serial', 'not null' => TRUE),
30        'name'      => array('type' => 'varchar', 'length' => '255', 'not null' => TRUE, 'default' => ''),        'name'      => array('type' => 'varchar', 'length' => '255', 'not null' => TRUE, 'default' => ''),
31        'tab_roles' => array('type' => 'varchar', 'length' => '60', 'not null' => TRUE, 'default' => ''),        'tab_roles' => array('type' => 'varchar', 'length' => '60', 'not null' => TRUE, 'default' => ''),
32        'options'   => array('type' => 'text', 'size' => 'big', 'not null' => FALSE, 'default' => '')),        'options'   => array('type' => 'text', 'size' => 'big', 'not null' => FALSE)),
33      'primary key' => array('wid'),      'primary key' => array('wid'),
34    );    );
35    $schema['workflow_type_map'] = array(    $schema['workflow_type_map'] = array(
# Line 384  function workflow_update_5204() { Line 384  function workflow_update_5204() {
384  // Add a general data field for storing workflow options.  // Add a general data field for storing workflow options.
385  function workflow_update_6100() {  function workflow_update_6100() {
386    $ret = array();    $ret = array();
387    db_add_field($ret, 'workflows', 'options', array('type' => 'text', 'size' => 'big', 'not null' => FALSE, 'default' => ''));    db_add_field($ret, 'workflows', 'options', array('type' => 'text', 'size' => 'big', 'not null' => FALSE));
388    // Seed existing workflows with the behavior of showing the comment field.    // Seed existing workflows with the behavior of showing the comment field.
389    $default = serialize(array('comment_log_node' => 1, 'comment_log_tab' => 1));    $default = serialize(array('comment_log_node' => 1, 'comment_log_tab' => 1));
390    $query_result = db_query("UPDATE {workflows} SET options = '%s'", $default);    $query_result = db_query("UPDATE {workflows} SET options = '%s'", $default);

Legend:
Removed from v.1.13.2.1  
changed lines
  Added in v.1.13.2.2

  ViewVC Help
Powered by ViewVC 1.1.2