![]() And the query suggested in brightbyte's answer, which should give the right result, for some reason doesn't on this machine.This gives the same wrong old version as on the other machine:.var/lib/mediawiki/includes/Defines.php:define( 'MW_VERSION', '1.31.10' ) I checked and all my pages and these files contained mediawiki versions of all my pages and users etc, but stored as. var/lib/mediawiki/includes/Defines.php: * This replaces the the $wgVersion global found in earlier versions. This created a exportedmediawikipages/ directory containing all Pages, File, Categories, Projects, and Users. var/lib/mediawiki/includes/DefaultSettings.php:$wgVersion = MW_VERSION var/lib/mediawiki/includes/DefaultSettings.php: * since 1.35 use the MW_VERSION constant instead $ egrep 'wgVersion|MW_VERSION' /var/lib/mediawiki/includes/.php On the old Debian 8 with Mediawiki version 1.19 But "grepping" the Mediawiki php files does work right. In both cases querying just the database doesn't work. One on an old Debian 8 Jessie, and one on a Debian recently upgraded to v. I have 2 Mediawiki installs, using PostgreSQL. If you have access to backups of the php files, it is much easier and more reliable. Unfortunately, it seems to not always be possible to get the (correct) version number out of the database. The best way to check your MediaWiki version is to look at Special:Version or, if the wiki isn't running, check $wgVersion in includes/DefaultSettings.php. Also, I'm not sure PG supports the LIKE syntax I gave. These entries may go away, or change appreance. It looks at a table used for logging database updates, and gives you the latest version found in entries that start with "updatelist". This is not an official or recommended version check. ĮDIT: to answer the original question: the best way to find the MediaWiki version by looking at the database would be this query: select max(ul_key) from updatelog where ul_key like 'updatelist-%' Its documentation, located at is released under the Creative Commons BY-SA 3.0 license and partly in the public domain. Please report any failures of the upgrade process to. MediaWiki is free and open-source and is distributed under the terms of the GNU General Public License version 2 or any later version. However, it is possible that this is not as smooth with PostGres as it is with MySQL, and it's also possible that some extensions don't do this well. MediaWiki should upgrade gracefully from any version (after 1.5) to the current. Note that when we have just a year, a month (typically Jan) must be added in the hidden part.I recommends to simply upgrade to the latest version and not to worry about which version you had before. The "&" forces string sort mode.ĭates and times can be entered in any php date/time format. ![]() The added value makes all values positive and the same length (if scientific format would show up an additional step is needed to prevent this). This works in the range 1 Jan 111, 00:00:00 through, 23:59:59 for the proleptic Gregorian calendar. Mw.t('tableSorterCollation', in front of the displayed date. This can be changed site wide by posting code like the following inside the MediaWiki:Common.js: Any accented/special characters follow after the basic latin alphabet. Example for Intl.Collator(de):įirefox52.9: Android systems use the old sort mode with UTF-16 coded characters. This sort accented characters depend on PageContentLanguage correctly.īut sort of special characters is depend on Browser implementation. Text is compared at client-side JavaScript since July 2019 ( Commit) with Intl.Collator. However, numbers will be sorted alphanumerically (with 9 sorted after 10) unless this default behaviour is overridden. The script can recognize numbers with different decimal separators (. This MediaWiki release offered several new changes. On English Wikipedias dates are treated as US-Dates (eg. MediaWiki 1.38 is a legacy version of MediaWiki which was released in June 2022. Most other numerical formats are supported as well, including those with different separators (such as. Various date formats are supported, including those with localized month names. Tags such as span or sup are ignored when determining data type, but reference numbers and additional visible comments are not ignored today. The sort order of a column can be forced. To determine the data type, the first 5 non-blank rows below the header are tested after loading the page and the most appropriate format is chosen. The way items are sorted depends on the data type of the first rows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |