6.0.0-RC7
6/23/26

[#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 2/1/10 (5986 days ago)
Due
Updated 2/10/10 (5977 days ago)
Assigned
Resolved 2/4/10 (5983 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
159 Jan Schneider Comment #7
Summary ⇒ db_migrate filtered appsFix
Reply to this comment
Fixed, thanks!
308 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'))

236 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
433 Chuck Hagenbuch Comment #3
State ⇒ Resolved
Assigned to Chuck Hagenbuch
Reply to this comment
Committed, thanks.
163 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
423 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