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

Ticket #1015 - Merged 2466:3060 /sandbox/workflow/trunk/ em /sandbox/workflow/branches/1015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/1015/setup/tables_update.inc.php

    r2042 r3061  
    12161216        { 
    12171217                #updating the current version 
     1218                $GLOBALS['setup_info']['workflow']['currentver'] = '2.0.003'; 
     1219                return $GLOBALS['setup_info']['workflow']['currentver']; 
     1220        } 
     1221        $test[] = '2.0.003'; 
     1222        function workflow_upgrade2_0_003() 
     1223        { 
     1224                #updating the current version 
     1225                $GLOBALS['setup_info']['workflow']['currentver'] = '2.0.004'; 
     1226                return $GLOBALS['setup_info']['workflow']['currentver']; 
     1227        } 
     1228        $test[] = '2.0.004'; 
     1229        function workflow_upgrade2_0_004() 
     1230        { 
     1231                #updating the current version 
    12181232                $GLOBALS['setup_info']['workflow']['currentver'] = '2.1.000'; 
    12191233                return $GLOBALS['setup_info']['workflow']['currentver']; 
     
    12241238                if (!$GLOBALS['phpgw_setup']->oProc->m_bDeltaOnly) 
    12251239                { 
     1240                        /* updating log level */ 
     1241                        $values = array('0', 'workflow', 'log_level'); 
     1242                        $GLOBALS['phpgw']->ADOdb->query('UPDATE phpgw_config SET config_value=? WHERE config_app=? AND config_name=?', $values); 
     1243 
    12261244                        $workflowHostInfo = extractDatabaseParameters(); 
    12271245 
     
    12601278                        /* reconnect to the previous database */ 
    12611279                        $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)'); 
    12621289                } 
    12631290 
Note: See TracChangeset for help on using the changeset viewer.