fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [8242] created table for connection between control a


From: Erik Holm-Larsen
Subject: [Fmsystem-commits] [8242] created table for connection between control and equipment
Date: Tue, 06 Dec 2011 07:00:46 +0000

Revision: 8242
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8242
Author:   erikhl
Date:     2011-12-06 07:00:41 +0000 (Tue, 06 Dec 2011)
Log Message:
-----------
created table for connection between control and equipment

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-12-06 06:55:07 UTC (rev 
8241)
+++ trunk/controller/setup/setup.inc.php        2011-12-06 07:00:41 UTC (rev 
8242)
@@ -1,6 +1,6 @@
 <?php
        $setup_info['controller']['name'] = 'controller';
-       $setup_info['controller']['version'] = '0.1.9';
+       $setup_info['controller']['version'] = '0.1.10';
        $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-12-06 06:55:07 UTC 
(rev 8241)
+++ trunk/controller/setup/tables_current.inc.php       2011-12-06 07:00:41 UTC 
(rev 8242)
@@ -147,5 +147,16 @@
                        'fk' => array(),
                        'ix' => array(),
                        'uc' => array()
+               ),
+               'controller_control_equipment_list', array(
+                               'fd' => array(
+                                       'id' => array('type' => 'auto', 
'nullable' => false),
+                                       'control_id' => array('type' => 'int', 
'precision' => '4', 'nullable' => false),
+                                       'equipment_id' => array('type' => 
'int', 'precision' => '4', 'nullable' => false)
+                               ),
+                               'pk' => array('id'),
+                       'fk' => array(),
+                       'ix' => array(),
+                       'uc' => array()
                )
        );

Modified: trunk/controller/setup/tables_update.inc.php
===================================================================
--- trunk/controller/setup/tables_update.inc.php        2011-12-06 06:55:07 UTC 
(rev 8241)
+++ trunk/controller/setup/tables_update.inc.php        2011-12-06 07:00:41 UTC 
(rev 8242)
@@ -170,4 +170,29 @@
                $GLOBALS['setup_info']['controller']['currentver'] = '0.1.9';
                return $GLOBALS['setup_info']['controller']['currentver'];
        }
+       
+       /* Update Controller from v 0.1.9 to 0.1.10 
+        * Add table for connecting equipment (BIM) and control 
+       */
+       
+       $test[] = '0.1.9';
+       function controller_upgrade0_1_9()
+       {
+               $GLOBALS['phpgw_setup']->oProc->CreateTable(
+                       'controller_control_equipment_list', array(
+                               'fd' => array(
+                                       'id' => array('type' => 'auto', 
'nullable' => false),
+                                       'control_id' => array('type' => 'int', 
'precision' => '4', 'nullable' => false),
+                                       'equipment_id' => array('type' => 
'int', 'precision' => '4', 'nullable' => false)
+                               ),
+                               'pk' => array('id'),
+                       'fk' => array(),
+                       'ix' => array(),
+                       'uc' => array()
+                       )
+               );      
+                       
+               $GLOBALS['setup_info']['controller']['currentver'] = '0.1.10';
+               return $GLOBALS['setup_info']['controller']['currentver'];
+       }
 ?>
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]