Manual:Update.php/bn

বিস্তারিত
update.php মিডিয়াউইকির বর্তমান সংস্করণের সাথে কাজ করার জন্য MediaWiki ডাটাবেস স্কিমা আপডেট করা প্রয়োজন কিনা তা পরীক্ষা করে। মিডিয়াউইকির প্রতিটি upgrade পরে অথবা একটি স্কিমা আপডেটের প্রয়োজন এমন একটি এক্সটেনশন আপডেট বা ইনস্টল করার পরে আপনার  চালানো উচিত। স্কিমা আপডেটের প্রয়োজন এমন বেশিরভাগ এক্সটেনশন তাদের ডকুমেন্টেশনে তাই বলবে।

ব্রাউজার থেকে
আপনার সার্ভারের কমান্ড লাইনে অ্যাক্সেস না থাকলে, আপডেট স্ক্রিপ্ট চালানোর জন্য ওয়েব আপডেটার ব্যবহার করুন।


 * &rarr; Web updater 

From the command line
From the command line, or an SSH shell or similar:

$ php update.php
 * Change to the  directory
 * Run the update script:

 $ mwscript update.php

Parameters
This script offers several parameters (generic, script dependent and script specific) which may be required in some wiki environments.

Generic maintenance parameters

 * used to get a prompt of all available script parameters (generic, script dependent and script specific) together with short explanations of their usage. These are less often used parameters.
 * used to get a prompt of all available script parameters (generic, script dependent and script specific) together with short explanations of their usage. These are less often used parameters.


 * update wiki family if database name depends on virtual host, where wikiId - database name (e.g. enwiki, dewiki ...)
 * update wiki family if database name depends on virtual host, where wikiId - database name (e.g. enwiki, dewiki ...)

Script specific parameters

 * skip countdown sequence
 * skip countdown sequence


 * do not purge objectcache table. Normally  purges the  table (generally contains the parser cache and the messages cache),  and  (these are used for  message caching and are cleared in 1.21 and later) tables in the database, if you don't want to purge this table, use the   option.
 * do not purge objectcache table. Normally  purges the  table (generally contains the parser cache and the messages cache),  and  (these are used for  message caching and are cleared in 1.21 and later) tables in the database, if you don't want to purge this table, use the   option.


 * Update shared tables as well.
 * Update shared tables as well.


 * Run this script even if it is disabled by configuration options.
 * Run this script even if it is disabled by configuration options.


 * Specifies the config file (the LocalSettings.php file for the specific wiki). Used for wiki families.
 * Specifies the config file (the LocalSettings.php file for the specific wiki). Used for wiki families.


 * All changes to the table structure or table additions are skipped. Only data changes are made.
 * All changes to the table structure or table additions are skipped. Only data changes are made.


 * No schema changes are made to the database, but the schema changes are saved to a separate SQL file that can be run.
 * No schema changes are made to the database, but the schema changes are saved to a separate SQL file that can be run.


 * Skips compatibility checks
 * Skips compatibility checks


 * when using composer.local.json to let Composer install extensions and their dependencies, you may see an error message saying that there is a mismatch between the installed and required version (e.g. "mediawiki/semantic-breadcrumb-links: 1.3.0 installed, ~1.3 required"). You can use this parameter to ignore the message and run update.php regardless.
 * when using composer.local.json to let Composer install extensions and their dependencies, you may see an error message saying that there is a mismatch between the installed and required version (e.g. "mediawiki/semantic-breadcrumb-links: 1.3.0 installed, ~1.3 required"). You can use this parameter to ignore the message and run update.php regardless.

Extensions can install/update their schemas using hook.