Manual:patchSql.php

From Linux Web Expert

Revision as of 20:02, 15 July 2022 by imported>Shirayuki (Reverted edits by 2607:FB91:30E:C9CF:AC39:8391:4F44:A24 (talk) to last version by Shirayuki)
(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>

Details

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

Usage

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

See also