Alexandre Emsenhuber
a75b6d53cd
Improve documentation of maintenance scripts.
...
Also contains a fix for Ia5a38311 (fae0550 ).
Change-Id: I630c83b48b66c5d8c97411082cabd731f316f42d
2012-09-02 20:33:22 +02:00
jeroendedauw
38c7f444e1
Use __DIR__ instead of dirname( __FILE__ )
...
We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :)
Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1
2012-08-27 21:45:00 +02:00
Sam Reed
44696806fb
Remove some unused getting of non existent arguments
...
Documentation
2011-10-18 17:32:20 +00:00
Max Semenik
4ae61d1424
sqlite.php: don't fail after --check-syntax on a non-SQLite DB
2011-06-11 18:45:56 +00:00
Chad Horohoe
26505b170a
Fix concern raised by Brion in r74108 (but has really existed since the maintenance rewrite). Right now, including a maintenance script causes it to execute. This is bad when you want to reuse the particular class but not have it start executing all by itself.
...
Until now, we relied on setting MW_NO_SETUP which was a) hacky, b) irreversable, and c) likely to be forgotten if you didn't use one of the wrappers like runChild().
Instead, move the freaky magic to doMaintenance and have *it* check if it's in a specific call stack that indicates this is being run from the file scope and should be executed. Rename DO_MAINTENANCE to RUN_MAINTENANCE_IF_MAIN so it's nice and clear what magic happens behind the require_once().
2011-01-13 22:58:55 +00:00
Chad Horohoe
a548c1d87a
Get rid of a bunch of $wgDBtypes in maintenance/
2010-12-10 13:56:17 +00:00
Mark A. Hershberger
617a5b1e15
Whitespace fixup under tha maint directory.
2010-12-04 03:20:14 +00:00
Max Semenik
a2449fea86
maintenance/sqlite.php: added the ability to check .sql files for SQLite compatibility
2010-08-12 16:06:47 +00:00
Sam Reed
659778619c
Stylize maintenance folder..
2010-05-22 16:50:39 +00:00
Chad Horohoe
9b5196a68d
Fix child class visibility
2010-03-10 12:59:44 +00:00
Max Semenik
0e89f32f99
Don't display useless --dbuser and --dbpass in sqlite.php help
2010-02-21 08:30:23 +00:00
Max Semenik
1b8062b6fa
maintenance/sqlite.php: added an option for safe backup
2010-02-21 08:25:58 +00:00
Max Semenik
1ddb7210be
While coding r58014, I thought that VACUUM on a 0-byte databse results in an error - it doesn't
2009-12-17 15:48:49 +00:00
Max Semenik
08350c0143
Either we write 'bytes' in both cases, or in neither
2009-10-31 08:44:08 +00:00
Max Semenik
c07f1e0c5e
That way of percentage calculation was an epic fail:)
2009-10-22 15:39:07 +00:00
Max Semenik
719248cdc3
Added a script for SQLite-specific maintenance tasks
2009-10-18 10:55:36 +00:00