[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10326] api: more room for labels at custom attribute
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [10326] api: more room for labels at custom attributes |
Date: |
Wed, 24 Oct 2012 07:57:41 +0000 |
Revision: 10326
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10326
Author: sigurdne
Date: 2012-10-24 07:57:40 +0000 (Wed, 24 Oct 2012)
Log Message:
-----------
api: more room for labels at custom attributes
Modified Paths:
--------------
trunk/phpgwapi/setup/setup.inc.php
trunk/phpgwapi/setup/tables_current.inc.php
trunk/phpgwapi/setup/tables_update.inc.php
Modified: trunk/phpgwapi/setup/setup.inc.php
===================================================================
--- trunk/phpgwapi/setup/setup.inc.php 2012-10-24 07:54:01 UTC (rev 10325)
+++ trunk/phpgwapi/setup/setup.inc.php 2012-10-24 07:57:40 UTC (rev 10326)
@@ -12,7 +12,7 @@
// Basic information about this app
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'phpgwapi';
- $setup_info['phpgwapi']['version'] = '0.9.17.540';
+ $setup_info['phpgwapi']['version'] = '0.9.17.541';
$setup_info['phpgwapi']['versions']['current_header'] = '1.31';
$setup_info['phpgwapi']['versions']['system'] = '1.0';
$setup_info['phpgwapi']['enable'] = 3;
Modified: trunk/phpgwapi/setup/tables_current.inc.php
===================================================================
--- trunk/phpgwapi/setup/tables_current.inc.php 2012-10-24 07:54:01 UTC (rev
10325)
+++ trunk/phpgwapi/setup/tables_current.inc.php 2012-10-24 07:57:40 UTC (rev
10326)
@@ -563,8 +563,8 @@
'group_id' => array('type' => 'int','precision'
=> 2,'nullable' => true, 'default' => 0),
'id' => array('type' => 'int','precision' =>
2,'nullable' => false),
'column_name' => array('type' =>
'varchar','precision' => 50,'nullable' => false),
- 'input_text' => array('type' =>
'varchar','precision' => 50,'nullable' => false),
- 'statustext' => array('type' =>
'varchar','precision' => '150','nullable' => false),
+ 'input_text' => array('type' =>
'varchar','precision' => 255,'nullable' => false),
+ 'statustext' => array('type' =>
'varchar','precision' => '255','nullable' => false),
'datatype' => array('type' =>
'varchar','precision' => '10','nullable' => false),
'search' => array('type' => 'int','precision'
=> 2,'nullable' => true),
'history' => array('type' => 'int','precision'
=> 2,'nullable' => true),
Modified: trunk/phpgwapi/setup/tables_update.inc.php
===================================================================
--- trunk/phpgwapi/setup/tables_update.inc.php 2012-10-24 07:54:01 UTC (rev
10325)
+++ trunk/phpgwapi/setup/tables_update.inc.php 2012-10-24 07:57:40 UTC (rev
10326)
@@ -3094,4 +3094,33 @@
}
}
+ $test[] = '0.9.17.540';
+ /**
+ * Add custom attibute type that allows attribute used as part of short
description
+ *
+ * @return string the new version number
+ */
+ function phpgwapi_upgrade0_9_17_540()
+ {
+ $GLOBALS['phpgw_setup']->oProc->m_odb->transaction_begin();
+
$GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_cust_attribute','input_text',array(
+ 'type' => 'varchar',
+ 'precision' => 255,
+ 'nullable' => false,
+ ));
+
+
$GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_cust_attribute','statustext',array(
+ 'type' => 'varchar',
+ 'precision' => 255,
+ 'nullable' => false,
+ ));
+
+ if($GLOBALS['phpgw_setup']->oProc->m_odb->transaction_commit())
+ {
+ $GLOBALS['setup_info']['phpgwapi']['currentver'] =
'0.9.17.541';
+ return $GLOBALS['setup_info']['phpgwapi']['currentver'];
+ }
+ }
+
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10326] api: more room for labels at custom attributes,
Sigurd Nes <=