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

Location:
sandbox/workflow/branches/1015/setup
Files:
4 edited

Legend:

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

    r2042 r3061  
    5959$GLOBALS['phpgw']->ADOdb->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES(?, ?, ?)", array('workflow', 'log_type_file', 'True')); 
    6060$GLOBALS['phpgw']->ADOdb->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES(?, ?, ?)", array('workflow', 'log_type_firebug', 'True')); 
    61 $GLOBALS['phpgw']->ADOdb->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES(?, ?, ?)", array('workflow', 'log_level', '7')); 
     61$GLOBALS['phpgw']->ADOdb->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES(?, ?, ?)", array('workflow', 'log_level', '0')); 
    6262 
    6363/* connect to the new database */ 
  • sandbox/workflow/branches/1015/setup/setup.inc.php

    r2042 r3061  
    1616        $setup_info['workflow']['app_order']    = 10; 
    1717        $setup_info['workflow']['enable']               = 1; 
    18         $setup_info['workflow']['author']               = 'Ported from tikiwiki, modified by regis_glc alpeb & mbartz<br>Customized to ExpressoLivre by viani, rodrigolira, mariceli, drovetto, carloseduardo, rufino, asaikawa, gbisotto, julianadelgado & rodsouza<br>See changeLog for full names.'; 
    19         $setup_info['workflow']['note']                 = 'Workflow engine'; 
     18        $setup_info['workflow']['author']               = 'See changeLog for complete list of developers.'; 
     19        $setup_info['workflow']['note']                 = 'Workflow Engine'; 
    2020        $setup_info['workflow']['license']              = 'GPL'; 
    2121        $setup_info['workflow']['description']          = 'Workflow Management'; 
     
    5959        $setup_info['workflow']['depends'][] = array( 
    6060                'appname' => 'phpgwapi', 
    61                 'versions' => Array('1.0.0','1.0.1','1.2', '2.0', '2.1') 
     61                'versions' => Array('1.0.0','1.0.1','1.2', '2.0', '2.1', '2.2') 
    6262        ); 
    6363        $setup_info['workflow']['depends'][] = array( 
    6464                'appname' => 'preferences', 
    65                 'versions' => Array('1.0.0', '0.9.13.002', '2.0', '2.1') 
     65                'versions' => Array('1.0.0', '0.9.13.002', '2.0', '2.1', '2.2') 
    6666        ); 
    6767?> 
  • sandbox/workflow/branches/1015/setup/tables_current.inc.php

    r1229 r3061  
    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/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.