Manual:patchSql.php

From Linux Web Expert

Revision as of 04:52, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.16
<translate> MediaWiki version:</translate>

詳細

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 maintenance/archives <translate> Required</translate>

使用法

php maintenance/patchSql.php patch-name
custom-patch.sql
ALTER TABLE /*_*/actor ADD email varchar(255) NOT NULL;
Terminal

関連項目