- Timestamp:
- 07/15/10 17:50:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.