Ignore:
Timestamp:
07/15/10 17:30:07 (14 years ago)
Author:
viani
Message:

Ticket #950 - Merged 2838:3056 /trunk/workflow em /sandbox/workflow/trunk

Location:
sandbox/workflow/trunk/setup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/trunk/setup/tables_current.inc.php

    r1229 r3060  
    190190                                'fd' => array( 
    191191                                        'wf_parent_instance_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), 
    192                                         'wf_parent_activity_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), 
    193192                                        'wf_child_instance_id'  => array('type' => 'int', 'precision' => '4', 'nullable' => False), 
    194193                                        'wf_parent_lock'                => array('type' => 'int', 'precision' => '2', 'nullable' => True) 
    195194                                ), 
    196                                 'pk' => array('wf_parent_instance_id', 'wf_parent_activity_id', 'wf_child_instance_id'), 
     195                                'pk' => array('wf_parent_instance_id', 'wf_child_instance_id'), 
    197196                                'fk' => array(), 
    198197                                'ix' => array(), 
  • sandbox/workflow/trunk/setup/tables_update.inc.php

    r2858 r3060  
    12781278                        /* reconnect to the previous database */ 
    12791279                        $GLOBALS['phpgw']->ADOdb->connect($workflowHostInfo['host'], $workflowHostInfo['user'], $workflowHostInfo['password'], $workflowHostInfo['dbname']); 
     1280 
     1281                        /* removing primary key of egw_wf_interinstance_relations */ 
     1282                        $GLOBALS['phpgw']->ADOdb->query('ALTER TABLE egw_wf_interinstance_relations DROP CONSTRAINT egw_wf_interinstance_relations_pkey'); 
     1283 
     1284                        /* removing wf_parent_activity_id column from egw_wf_interinstance_relations table */ 
     1285                        $GLOBALS['phpgw']->ADOdb->query('ALTER TABLE egw_wf_interinstance_relations DROP COLUMN wf_parent_activity_id'); 
     1286 
     1287                        /* adding primary key without the column removed */ 
     1288                        $GLOBALS['phpgw']->ADOdb->query('ALTER TABLE egw_wf_interinstance_relations ADD CONSTRAINT egw_wf_interinstance_relations_pkey PRIMARY KEY (wf_parent_instance_id, wf_child_instance_id)'); 
    12801289                } 
    12811290 
Note: See TracChangeset for help on using the changeset viewer.