[Bug 28983] installer: may need to run update.php in a post-installation phase - if any extension is auto-detected and selected during installation and requires update.php

2011-06-02 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28983

--- Comment #8 from Chad H. innocentkil...@gmail.com 2011-06-02 16:10:35 UTC 
---
Actually, I'm pretty sure this can be done already. Example:

$wgHooks['LoadExtensionSchemaUpdates'][] = 'myExtUpdate';

function myExtUpdate( $updater ) {
global $IP;
$updater-addExtensionUpdate( array( 'addTable', 'foobar',
$IP/extensions/FooBar/foobar.sql, true 
) );
$updater-addExtensionUpdate( array( 'mySpecialUpdate' ) );
}

function mySpecialUpdate() {
// do something
}

This behavior is well documented and used in dozens of extensions. See
DatabaseUpdater::runUpdates()/doUpdates() and
DatabaseInstaller::createExtensionTables() if you don't believe me.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28983] installer: may need to run update.php in a post-installation phase - if any extension is auto-detected and selected during installation and requires update.php

2011-05-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28983

Mark A. Hershberger m...@everybody.org changed:

   What|Removed |Added

   Priority|Unprioritized   |High
 CC||m...@everybody.org

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28983] installer: may need to run update.php in a post-installation phase - if any extension is auto-detected and selected during installation and requires update.php

2011-05-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28983

Chad H. innocentkil...@gmail.com changed:

   What|Removed |Added

   Priority|High|Normal

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28983] installer: may need to run update.php in a post-installation phase - if any extension is auto-detected and selected during installation and requires update.php

2011-05-15 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28983

T. Gries m...@tgries.de changed:

   What|Removed |Added

Summary|installer: may need to run  |installer: may need to run
   |update.php in a |update.php in a
   |post-installation phase -   |post-installation phase -
   |if any extension is |if any extension is
   |auto-detected and selected  |auto-detected and selected
   |during installation |during installation and
   ||requires update.php

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28983] installer: may need to run update.php in a post-installation phase - if any extension is auto-detected and selected during installation and requires update.php

2011-05-15 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28983

--- Comment #5 from Chad H. innocentkil...@gmail.com 2011-05-15 23:12:14 UTC 
---
Extensions that have new tables to create *will* be created as intended, the
installer *already* does this. 

What needs doing is a way for extensions to add other installation steps, for
things other than table creation they may need to do.

Saying it can only be done by running update.php is wrong.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28983] installer: may need to run update.php in a post-installation phase - if any extension is auto-detected and selected during installation and requires update.php

2011-05-15 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28983

--- Comment #6 from T. Gries m...@tgries.de 2011-05-15 23:21:58 UTC ---
(In reply to comment #5)
 Extensions that have new tables to create *will* be created as intended, the
 installer *already* does this.

Try it please with a fresh installation, having some extensions requiring
update.php present in $IP/extensions/xxx BEFORE you run the installer and
opt-in during installation.

You will notice, that the wiki then stalls.

Correct me, if I am wrong. (I noticed the behaviour I am describing here three
times)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28983] installer: may need to run update.php in a post-installation phase - if any extension is auto-detected and selected during installation and requires update.php

2011-05-15 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28983

--- Comment #7 from T. Gries m...@tgries.de 2011-05-15 23:25:06 UTC ---
To get the hot air out of it: in my view, it is only a
http://en.wikipedia.org/wiki/Chicken_or_the_egg problem, the installer
installs, but the extensions are not (yet) ready to know that they are called

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l