phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] demo/setup tables_update.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] demo/setup tables_update.inc.php
Date: Sun, 19 Nov 2006 19:03:05 +0000

CVSROOT:        /sources/phpgroupware
Module name:    demo
Changes by:     Sigurd Nes <sigurdne>   06/11/19 19:03:05

Added files:
        setup          : tables_update.inc.php 

Log message:
        partially updated for custom fields and custom funtions

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/demo/setup/tables_update.inc.php?cvsroot=phpgroupware&rev=1.1

Patches:
Index: tables_update.inc.php
===================================================================
RCS file: tables_update.inc.php
diff -N tables_update.inc.php
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ tables_update.inc.php       19 Nov 2006 19:03:05 -0000      1.1
@@ -0,0 +1,29 @@
+<?php
+       /**
+       * phpGroupWare - demo: a demo application.
+       *
+       * @author Sigurd Nes <address@hidden>
+       * @copyright Copyright (C) 2003-2005 Free Software Foundation, Inc. 
http://www.fsf.org/
+       * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
+       * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
+       * @package demo
+       * @subpackage setup
+       * @version $Id: tables_update.inc.php,v 1.1 2006/11/19 19:03:05 
sigurdne Exp $
+       */
+
+       /**
+       * Update demo version from 0.9.17.000 to 0.9.17.001
+       */
+
+       $test[] = '0.9.17.000';
+       function demo_upgrade0_9_17_000()
+       {
+               $GLOBALS['phpgw_setup']->oProc->m_odb->transaction_begin();
+
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_demo_table','category', 
array('type' => 'int','precision' => '4','nullable' => True));
+               $GLOBALS['phpgw_setup']->oProc->query("UPDATE 
phpgw_acl_location set allow_c_attrib = 1, c_attrib_table = 'phpgw_demo_table' 
WHERE appname = 'demo' AND id = '.demo_location'");
+
+               $GLOBALS['phpgw_setup']->oProc->m_odb->transaction_commit();
+               $GLOBALS['setup_info']['demo']['currentver'] = '0.9.17.001';
+               return $GLOBALS['setup_info']['demo']['currentver'];
+       }




reply via email to

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