Manual:PatchSql.php

MediaWiki version:
1.16
Category:MediaWiki code#PatchSql.php

Details

patchSql.php file is a maintenance script to manually run an SQL patch outside of the general updaters.

Arguments

Argument Description Required
patch-nameName of the patch file, either full path or in sql/$dbtype/Required

Usage

php maintenance/run.php patchSql patch-name
custom-patch.sql
ALTER TABLE /*_*/actor ADD email varchar(255) NOT NULL;
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

Category:Maintenance scripts#patchSql.php Category:Database maintenance scripts
Category:Database maintenance scripts Category:Maintenance scripts Category:MediaWiki code