Jump to content

Manual:patchSql.php

From mediawiki.org
This page is a translated version of the page Manual:PatchSql.php and the translation is 89% complete.
MediaWiki バージョン:
≧ 1.16

詳細

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

引数

引数 説明 必須かどうか
patch-name Name of the patch file, either full path or in sql/$dbtype/ 必須


使用法

php maintenance/run.php patchSql patch-name
custom-patch.sql
ALTER TABLE /*_*/actor ADD email varchar(255) NOT NULL;
Terminal
MediaWiki バージョン MediaWiki 1.39 以前では、メンテナンス スクリプトを php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。

関連項目