Manual:PatchSql.php/de
Appearance
| MediaWiki Version: | ≥ 1.16 |
| MediaWiki-Datei: patchSql.php | |
|---|---|
| Speicherort: | maintenance/ |
| Quellcode: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klassen: | PatchSql |
Details
patchSql.php file is a maintenance script to manually run an SQL patch outside of the general updaters.
Argumente
| Argument | Beschreibung | Notwendig |
|---|---|---|
| patch-name | Name of the patch file, either full path or in sql/$dbtype/ | Notwendig |
Verwendung
php 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.43.6 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.