6.0.0-beta1
7/5/25

[#6729] borken 2.1_to_2.2_sql_schema.php
Summary borken 2.1_to_2.2_sql_schema.php
Queue Turba
Queue Version HEAD
Type Bug
State Not A Bug
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester rsalmon (at) mbpgroup (dot) com
Created 05/21/2008 (6254 days ago)
Due
Updated 05/21/2008 (6254 days ago)
Assigned
Resolved 05/21/2008 (6254 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/21/2008 01:55:09 PM Michael Rubinsky Assigned to Michael Rubinsky
 
05/21/2008 01:54:42 PM Michael Rubinsky State ⇒ Not A Bug
 
05/21/2008 01:54:17 PM Michael Rubinsky Comment #2 Reply to this comment
Notice: Undefined variable: names in
/var/www/html/horde/turba/scripts/upgrades/2.1_to_2.2_sql_schema.php
on line 145
Either this file is not from HEAD, or was modified. Line 145 contains 
no reference to the $names variable.
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 ?
$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't have the permissions to perform the 
ALTER / CREATE statements, so these are used to provide the user 
information that _does_ have these permissions.


05/21/2008 08:07:57 AM rsalmon (at) mbpgroup (dot) com Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ borken 2.1_to_2.2_sql_schema.php
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment


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['username'] = $db_user;

$config['password'] = $db_pass;








Saved Queries