Manual:PatchSql.php/ko
Appearance
| 미디어위키 버전: | ≥ 1.16 |
| 미디어위키 파일: patchSql.php | |
|---|---|
| 위치: | maintenance/ |
| 소스 코드: | master • 1.46.2 • 1.45.6 • 1.43.11 |
| 클래스: | PatchSql |
상세
patchSql.php file is a maintenance script to manually run an SQL patch outside of the general updaters.
Arguments
| Argument | Description | Required? |
|---|---|---|
| patch-name | Name of the patch file, either full path or in sql/$dbtype/ | Required |
사용법
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.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.