Manual:PatchSql.php
Appearance
| Versão MediaWiki: | ≥ 1.16 |
| Ficheiro do MediaWiki: patchSql.php | |
|---|---|
| Localização: | maintenance/ |
| Código fonte: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Classes: | PatchSql |
Detalhes
O ficheiro patchSql.php é um script de manutenção para executar manualmente uma correcção no código SQL fora dos atualizadores gerais.
Arguments
| Argument | Description | Required? |
|---|---|---|
| patch-name | Name 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
$ 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.