Last modified: 2014-01-11 20:08:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61857, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59857 - mode in which update.php only prints actual DB changes
mode in which update.php only prints actual DB changes
Status: NEW
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.23.0
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-09 05:12 UTC by spage
Modified: 2014-01-11 20:08 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2014-01-09 05:12:12 UTC
Our team has a `make master` command to update a MediaWiki server to master which we run dozens of times a day. We want to know the 0.5% of the time that it makes DB changes.  So I want this to run update.php but only output actual DB changes, not 230 lines of "... already exists/already set/already logged as completed"

Unfortunately both "... already done it" and "OMG changed something" messages go through the same output() function, so --quiet shuts both off.  The best I can do is pipe output through sed -n '/^[^.]/p to strip lines starting with dot, but that still outputs some irrelevant lines
  Depending on the size of your database this may take a while!
  Turning off Content Handler DB fields for this part of upgrade.
  Content Handler DB fields should be usable now.
  Done in 0:01.

I propose --quiet output any actual DB change lines rather than suppress them.  I think that's simpler than adding another flag like --report ("when --quiet set, still print out any database changes"), but the latter would be fine.

This is similar to bug 22753 and bug 32508.
Comment 1 db [inactive,noenotif] 2014-01-11 20:08:44 UTC
There is a --schema option, to this file is only written, when there actually changes, so having a empty file means no changes.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links