<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>borken 2.1_to_2.2_sql_schema.php</title> 
  <pubDate>Fri, 10 Apr 2026 09:21:01 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6729</link> 
  <atom:link rel="self" type="application/rss+xml" title="borken 2.1_to_2.2_sql_schema.php" href="https://bugs.horde.org/ticket/6729/rss" /> 
  <description>borken 2.1_to_2.2_sql_schema.php</description> 
 
   
   
  <item> 
   <title>

Notice: Undefined variable: names in /var/www/html/horde/t</title> 
   <description>

Notice: Undefined variable: names in /var/www/html/horde/turba/scripts/upgrades/2.1_to_2.2_sql_schema.php on line 145

PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/horde/turba/scripts/upgrades/2.1_to_2.2_sql_schema.php on line 145





the docs/UPGRADING file says to manually  change the three

variables at the top of the script ``$db_user``, ``$db_pass`` and

``$db_table``, but why not use the global configuration settings ? I removed the following lines to use the global conf and it connects fine :



$config[&#039;username&#039;] = $db_user;

$config[&#039;password&#039;] = $db_pass;







</description> 
   <pubDate>Wed, 21 May 2008 08:07:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6729#t45422</link> 
  </item> 
   
  <item> 
   <title>&gt;

&gt; Notice: Undefined variable: names in 

&gt; /var/www/html/</title> 
   <description>&gt;

&gt; Notice: Undefined variable: names in 

&gt; /var/www/html/horde/turba/scripts/upgrades/2.1_to_2.2_sql_schema.php 

&gt; on line 145



Either this file is not from HEAD, or was modified. Line 145 contains no reference to the $names variable.



&gt; the docs/UPGRADING file says to manually  change the three

&gt; variables at the top of the script ``$db_user``, ``$db_pass`` and

&gt; ``$db_table``, but why not use the global configuration settings ?



$db_table - there could be multiple sql sources configured in Turba, we have no way of knowing which on the admin wants to update.



$db_user/$db_pass - Ideally, the user set up in the global configuration settings shouldn&#039;t have the permissions to perform the ALTER / CREATE statements, so these are used to provide the user information that _does_ have these permissions.

</description> 
   <pubDate>Wed, 21 May 2008 13:54:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6729#t45438</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
