[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8049] Added fields equipment_id and location_code to
From: |
Torstein |
Subject: |
[Fmsystem-commits] [8049] Added fields equipment_id and location_code to table check_list |
Date: |
Tue, 08 Nov 2011 10:17:57 +0000 |
Revision: 8049
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8049
Author: vator
Date: 2011-11-08 10:17:56 +0000 (Tue, 08 Nov 2011)
Log Message:
-----------
Added fields equipment_id and location_code to table check_list
Modified Paths:
--------------
trunk/controller/setup/setup.inc.php
trunk/controller/setup/tables_current.inc.php
trunk/controller/setup/tables_update.inc.php
Modified: trunk/controller/setup/setup.inc.php
===================================================================
--- trunk/controller/setup/setup.inc.php 2011-11-08 08:35:12 UTC (rev
8048)
+++ trunk/controller/setup/setup.inc.php 2011-11-08 10:17:56 UTC (rev
8049)
@@ -1,6 +1,6 @@
<?php
$setup_info['controller']['name'] = 'controller';
- $setup_info['controller']['version'] = '0.1.6';
+ $setup_info['controller']['version'] = '0.1.7';
$setup_info['controller']['app_order'] = 100;
$setup_info['controller']['enable'] = 1;
$setup_info['controller']['app_group'] = 'office';
Modified: trunk/controller/setup/tables_current.inc.php
===================================================================
--- trunk/controller/setup/tables_current.inc.php 2011-11-08 08:35:12 UTC
(rev 8048)
+++ trunk/controller/setup/tables_current.inc.php 2011-11-08 10:17:56 UTC
(rev 8049)
@@ -72,7 +72,9 @@
'comment' => array('type' =>
'varchar','precision' => '255','nullable' => false),
'deadline' => array('type' => 'int',
'precision' => 8, 'nullable' => True),
'planned_date' => array('type' => 'int',
'precision' => 8, 'nullable' => True),
- 'completed_date' => array('type' => 'int',
'precision' => 8, 'nullable' => True)
+ 'completed_date' => array('type' => 'int',
'precision' => 8, 'nullable' => True),
+ 'equipment_id' => array('type' => 'int',
'precision' => 4, 'nullable' => True),
+ 'location_code' => array('type' => 'int',
'precision' => 4, 'nullable' => True)
),
'pk' => array('id'),
'fk' => array(),
Modified: trunk/controller/setup/tables_update.inc.php
===================================================================
--- trunk/controller/setup/tables_update.inc.php 2011-11-08 08:35:12 UTC
(rev 8048)
+++ trunk/controller/setup/tables_update.inc.php 2011-11-08 10:17:56 UTC
(rev 8049)
@@ -108,4 +108,25 @@
$GLOBALS['setup_info']['controller']['currentver'] = '0.1.6';
return $GLOBALS['setup_info']['controller']['currentver'];
}
+
+ /* Update Controller from v 0.1.6 to 0.1.7 */
+
+ $test[] = '0.1.6';
+ function controller_upgrade0_1_6()
+ {
+
$GLOBALS['phpgw_setup']->oProc->AddColumn('controller_check_list','location_code',array(
+ 'type' => 'int',
+ 'precision' => 4,
+ 'nullable' => True
+ ));
+
+
$GLOBALS['phpgw_setup']->oProc->AddColumn('controller_check_list','equipment_id',array(
+ 'type' => 'int',
+ 'precision' => 4,
+ 'nullable' => True
+ ));
+
+ $GLOBALS['setup_info']['controller']['currentver'] = '0.1.7';
+ return $GLOBALS['setup_info']['controller']['currentver'];
+ }
?>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8049] Added fields equipment_id and location_code to table check_list,
Torstein <=