Manual:patchSql.php
MediaWiki version: | ≥ 1.16 |
MediaWiki file: patchSql.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | PatchSql |
Details
editpatchSql.php file is a maintenance script to manually run an SQL patch outside of the general updaters.
Arguments
editArgument | Description | Required |
---|---|---|
patch-name | Name of the patch file, either full path or in sql/$dbtype/ | Required |
Usage
editphp maintenance/run.php patchSql patch-name
custom-patch.sql
ALTER TABLE /*_*/actor ADD email varchar(255) NOT NULL;
Terminal
$ php maintenance/run.php patchSql custom-patch.sql custom-patch.sql ... done.
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.