Author: ralfbecker
New Revision: 55128
URL: http://svn.stylite.de/viewvc/egroupware?rev=55128&view=rev
Log:
append (optional) length of index in brackets to column, to adapt to improved pull request for ADOdb
Modified:
trunk/egroupware/api/src/Db/Schema.php
— trunk/egroupware/api/src/Db/Schema.php (original)
+++ trunk/egroupware/api/src/Db/Schema.php Wed Feb 24 10:27:54 2016
@@ -397,7 +397,7 @@
*
* @param string $sTableName
* @param bool $preserveValue
-
-
@return boolean/string sequence-name or false
-
-
@return boolean|string sequence-name or false
*/
function _PostgresHasOldSequence($sTableName,$preserveValue=False)
{
@@ -536,7 +536,7 @@
-
@param string $sTableName table-name
-
@param array $aColumnNames columns for the index
-
@param boolean $bUnique =false true for a unique index, default false
-
-
@param array/string $options =’’ db-sepecific options, default ‘’ = none
-
-
@param array|string $options =’’ db-sepecific options, default ‘’ = none
-
@param string $sIdxName =’’ name of the index, if not given (default) its created automaticaly
-
@return int 2: no error, 1: errors, but continued, 0: errors aborted
*/
@@ -563,7 +563,7 @@
- Drop an Index
-
-
@param string $sTableName table-name
-
-
@param array/string $aColumnNames columns of the index or the name of the index
-
-
@param array|string $aColumnNames columns of the index or the name of the index
-
@return int 2: no error, 1: errors, but continued, 0: errors aborted
*/
function DropIndex($sTableName,$aColumnNames)
@@ -638,7 +638,7 @@
-
-
@param string $sTableName table-name
-
@param array $aTableDef eGW table-defintion
-
-
@param array/boolean $aDefaults array with default for the colums during copying, values are either (old) column-names or quoted string-literals
-
-
@param array|boolean $aDefaults array with default for the colums during copying, values are either (old) column-names or quoted string-literals
*/
function RefreshTable($sTableName, $aTableDef, $aDefaults=False)
{
@@ -1195,7 +1195,7 @@
- Translates an eGW type into the DB’s native type
-
-
@param string $egw_type eGW name of type
-
-
@param string/boolean DB’s name of the type or false if the type could not be identified (should not happen)
-
-
@param string|boolean DB’s name of the type or false if the type could not be identified (should not happen)
*/
function TranslateType($egw_type)
{
@@ -1213,7 +1213,7 @@
- The definition might not be as accurate, depending on the DB!
-
-
@param string $sTableName table-name
-
-
@return array/boolean table-defition, like $phpgw_baseline[$sTableName] after including tables_current, or false on error
-
-
@return array|boolean table-defition, like $phpgw_baseline[$sTableName] after including tables_current, or false on error
*/
function GetTableDefinition($sTableName)
{
@@ -1396,6 +1396,11 @@
{
foreach($indexes as $index)
{
-
// append (optional) length of index in brackets to column
-
foreach((array)$index['length'] as $col => $length)
-
{
-
if (($key = array_search($col, $index['columns']))) $index['columns'][$key] .= '('.$length.')';
-
}
if($this->capabilities['name_case'] == 'upper')
{
array_walk($index['columns'],create_function('&$s','$s = strtolower($s);'));
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs