6.0.0-beta1
7/5/25

[#8846] db_migrate filtered appsFix
Summary db_migrate filtered appsFix
Queue Horde Base
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester rsalmon (at) mbpgroup (dot) com
Created 02/01/2010 (5633 days ago)
Due
Updated 02/10/2010 (5624 days ago)
Assigned
Resolved 02/04/2010 (5630 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/08/2010 09:17:15 AM Jan Schneider Comment #7
Summary ⇒ db_migrate filtered appsFix
Reply to this comment
Fixed, thanks!
02/08/2010 08:57:30 AM rsalmon (at) mbpgroup (dot) com Comment #5 Reply to this comment
Changes have been made in Git for this ticket:

List all applications, not just active ones (rsalmon (at) mbpgroup 
(dot) com, Bug #8846)

http://git.horde.org/diff.php/horde/bin/db_migrate?rt=horde-git&r1=c47b942008a20196a5bb01f72164e9e63019ec2c&r2=9139fa8926b79116c5024a7b29df5d081f5a9cd8
this is sending several strings, not an array as expected by listApps :

listApps(array('inactive', 'hidden', 'notoolbar', 'heading', 'block', 
'admin', 'active'))

02/06/2010 06:15:23 AM CVS Commit Comment #4 Reply to this comment
Changes have been made in Git for this ticket:

List all applications, not just active ones (rsalmon (at) mbpgroup 
(dot) com, Bug #8846)

http://git.horde.org/diff.php/horde/bin/db_migrate?rt=horde-git&r1=c47b942008a20196a5bb01f72164e9e63019ec2c&r2=9139fa8926b79116c5024a7b29df5d081f5a9cd8
02/04/2010 03:32:43 PM Chuck Hagenbuch Comment #3
State ⇒ Resolved
Assigned to Chuck Hagenbuch
Reply to this comment
Committed, thanks.
02/04/2010 03:32:16 PM CVS Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

List all applications, not just active ones (rsalmon (at) mbpgroup 
(dot) com, Bug #8846)

http://git.horde.org/diff.php/horde/bin/db_migrate?rt=horde-git&r1=c47b942008a20196a5bb01f72164e9e63019ec2c&r2=9139fa8926b79116c5024a7b29df5d081f5a9cd8
02/01/2010 03:55:42 PM rsalmon (at) mbpgroup (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ db_migrate filtered apps
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
db_migrate can't update all installed apps, eg 'content'.

the default filter $GLOBALS['registry']->listApps() is set to ( 
'notoolbar', 'active').

Quick fix :
- if (!in_array($app, $GLOBALS['registry']->listApps(array()))) {
+ if (!in_array($app, $GLOBALS['registry']->listApps(array('inactive', 
'hidden', 'notoolbar', 'heading', 'block', 'admin', 'active')))) {

I don't know if you want to run db_migrate on apps with status = 'inactive'.

Saved Queries