Changeset 3061 for sandbox/workflow/branches/1015/setup
- Timestamp:
- 07/15/10 17:50:39 (14 years ago)
- Location:
- sandbox/workflow/branches/1015/setup
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/1015/setup/default_records.inc.php
r2042 r3061 59 59 $GLOBALS['phpgw']->ADOdb->query("INSERT INTO phpgw_config (config_app, config_name, config_value) VALUES(?, ?, ?)", array('workflow', 'log_type_file', 'True')); 60 60 $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')); 62 62 63 63 /* connect to the new database */ -
sandbox/workflow/branches/1015/setup/setup.inc.php
r2042 r3061 16 16 $setup_info['workflow']['app_order'] = 10; 17 17 $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'; 20 20 $setup_info['workflow']['license'] = 'GPL'; 21 21 $setup_info['workflow']['description'] = 'Workflow Management'; … … 59 59 $setup_info['workflow']['depends'][] = array( 60 60 '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') 62 62 ); 63 63 $setup_info['workflow']['depends'][] = array( 64 64 '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') 66 66 ); 67 67 ?> -
sandbox/workflow/branches/1015/setup/tables_current.inc.php
r1229 r3061 190 190 'fd' => array( 191 191 'wf_parent_instance_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), 192 'wf_parent_activity_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False),193 192 'wf_child_instance_id' => array('type' => 'int', 'precision' => '4', 'nullable' => False), 194 193 'wf_parent_lock' => array('type' => 'int', 'precision' => '2', 'nullable' => True) 195 194 ), 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'), 197 196 'fk' => array(), 198 197 'ix' => array(), -
sandbox/workflow/branches/1015/setup/tables_update.inc.php
r2042 r3061 1216 1216 { 1217 1217 #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 1218 1232 $GLOBALS['setup_info']['workflow']['currentver'] = '2.1.000'; 1219 1233 return $GLOBALS['setup_info']['workflow']['currentver']; … … 1224 1238 if (!$GLOBALS['phpgw_setup']->oProc->m_bDeltaOnly) 1225 1239 { 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 1226 1244 $workflowHostInfo = extractDatabaseParameters(); 1227 1245 … … 1260 1278 /* reconnect to the previous database */ 1261 1279 $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)'); 1262 1289 } 1263 1290
Note: See TracChangeset
for help on using the changeset viewer.