wiki.techinc.nl/maintenance
Lucas Werkmeister (WMDE) a241d83e0a Revert "ResourceLoader namespace"
This reverts commit e08ea8ccb9.

Reason for revert: Breaks Phan in extensions, and as far as I’m aware,
this change isn’t urgently needed for anything, so the simplest fix is
to revert it again for now. After PHP 7.4 it should be safer to try this
again (we hopefully won’t need the two “hack” classes by then).

Bug: T308443
Change-Id: Iff3318cbf97a67f821f78e60da62a583f63e389e
2022-05-16 14:43:33 +00:00
..
abstractSchemaChanges Schema: Updating user_editcount field to unsigned 2022-05-09 21:34:11 +00:00
archives Schema: Updating user_editcount field to unsigned 2022-05-09 21:34:11 +00:00
benchmarks Add benchmarks for applying dynamic config. 2022-05-09 05:57:53 +00:00
dev Fix many typos in comments 2022-05-10 12:46:11 +00:00
includes Fix many typos in comments 2022-05-10 12:46:11 +00:00
jsduck Revert "ResourceLoader namespace" 2022-05-16 14:43:33 +00:00
language Fix many typos in comments 2022-05-10 12:46:11 +00:00
locking
mediawiki.Title Use 0 instead of "" in phpCharToUpper.json 2021-09-23 05:56:42 +00:00
postgres TempUser infrastructure and services 2022-04-14 09:23:55 +10:00
sqlite Schema: Updating user_editcount field to unsigned 2022-05-09 21:34:11 +00:00
storage phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
.htaccess
addChangeTag.php addChangeTag: Ensure system user can create tag 2022-01-18 17:52:47 +01:00
addRFCandPMIDInterwiki.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
addSite.php
attachLatest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
blockUsers.php Use a constant for 'Maintenance script' username 2021-05-03 23:34:26 +02:00
categoryChangesAsRdf.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
changePassword.php maintenance: Move username/userid validation into Maintenance class 2021-07-13 15:39:04 +01:00
checkBadRedirects.php
checkComposerLockUpToDate.php
checkDependencies.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
checkImages.php
checkUsernames.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
cleanupBlocks.php Drop hard-deprecated and unused DatabaseBlock::chooseBlock 2021-05-25 16:52:05 -07:00
cleanupCaps.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
cleanupEmptyCategories.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
cleanupImages.php Same code style and formatting for exists-style SQL queries 2021-08-12 11:37:58 +02:00
cleanupInvalidDbKeys.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupPreferences.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
cleanupRemovedModules.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupRevActorPage.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupSpam.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
cleanupTitles.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupUploadStash.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
cleanupUsersWithNoId.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
cleanupWatchlist.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
clearInterwikiCache.php
CodeCleanerGlobalsPass.php
CommandLineInc.php
compareParserCache.php
compareParsers.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
convertExtensionToRegistration.php
copyFileBackend.php scripts: Use real bool in options for FileBackend::doOperations 2022-03-08 00:49:13 +01:00
copyJobQueue.php Replace deprecated JobQueueGroup::singleton() 2022-01-27 21:37:50 +01:00
createAndPromote.php createAndPromote.php typo fix: acccount -> account 2022-04-27 16:10:40 +00:00
createBotPassword.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
deduplicateArchiveRevId.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
deleteArchivedFiles.php Stop using LocalFile::lock() 2021-11-15 13:56:53 +11:00
deleteArchivedRevisions.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
deleteAutoPatrolLogs.php Convert various callers to LoadBalancer::getConnectionRef() 2022-02-03 16:48:34 -08:00
deleteBatch.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
deleteDefaultMessages.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
deleteEqualMessages.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
deleteLocalPasswords.php
deleteOldRevisions.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
deleteOrphanedRevisions.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
deleteSelfExternals.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
deleteTag.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
deleteUserEmail.php Add explicit casts between scalar types 2022-03-08 16:59:01 +00:00
doMaintenance.php maintenance: Don't run unsafe shutdown after crash 2022-05-11 18:56:52 +00:00
Doxyfile docs: Fix Doxygen rendering of @newable in class comments 2021-12-15 02:35:17 +00:00
dumpBackup.php
dumpCategoriesAsRdf.php
dumpIterator.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
dumpLinks.php
dumpTextPass.php
dumpUploads.php
edit.php maintenance: Add --parse-title option to edit.php to parse the title input 2021-12-03 00:04:43 +00:00
emptyUserGroup.php
eraseArchivedFile.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
eval.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
exportSites.php
fetchText.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
fileOpPerfTest.php scripts: Use real bool in options for FileBackend::doOperations 2022-03-08 00:49:13 +01:00
findBadBlobs.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
findClasses.php Add script for resolving class names to files 2021-04-16 11:04:39 +00:00
findDeprecated.php Add explicit casts between scalar types 2022-03-08 16:59:01 +00:00
findMissingActors.php Extend findMissingActors to fix broken actors with empty actor_name 2022-05-11 12:08:02 +08:00
findMissingFiles.php
findOrphanedFiles.php
fixDefaultJsonContentPages.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
fixDoubleRedirects.php Replace deprecated JobQueueGroup::singleton() 2022-01-27 21:37:50 +01:00
fixExtLinksProtocolRelative.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
fixMergeHistoryCorruption.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
fixTimestamps.php Replace remaining usages of IDatabase::fetchObject() 2022-01-19 01:42:16 +01:00
fixUserRegistration.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
formatInstallDoc.php
generateConfigDefaultSettings.php Merge "Setup.php: allow loading config schema from MainConfigSchema." 2022-05-04 23:41:13 +00:00
generateConfigNames.php MainConfigSchema: declare deprecations 2022-05-02 22:15:32 +02:00
generateConfigSchemaArray.php Merge "Config schema: add notice to generated files." 2022-05-12 13:28:49 +00:00
generateConfigSchemaYaml.php Config schema: add notice to generated files. 2022-05-12 14:44:20 +02:00
generateJsonI18n.php maintenance: Check return of preg_match_all in generateJsonI18n.php 2022-03-29 00:32:10 +00:00
generateLocalAutoload.php AutoLoader: provide methods for registering classes 2022-05-10 13:55:53 +10:00
generateSchemaChangeSql.php Generate abstract schemas with one script call 2022-02-11 18:50:25 +01:00
generateSchemaSql.php Generate abstract schemas with one script call 2022-02-11 18:50:25 +01:00
generateSitemap.php Replace deprecated Language function in generateSitemap.php script 2021-08-04 02:58:28 +02:00
getConfiguration.php Reapply "SettingsBuilder: allow maintenance scripts to manipulate config" 2022-01-26 19:21:58 +00:00
getLagTimes.php
getReplicaServer.php getReplicaServer: Handle clusters 2021-11-28 15:13:16 +01:00
getText.php Add typehints to several methods 2021-08-31 16:19:13 +00:00
grep.php Add "grep.php" to search pages for a regex 2022-02-23 14:20:18 +11:00
importDump.php snapshot: Add @var documentation for class properties 2022-03-09 21:54:18 +00:00
importImages.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
importSites.php
importSiteScripts.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
importTextFiles.php Use a constant for 'Maintenance script' username 2021-05-03 23:34:26 +02:00
initEditCount.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
initSiteStats.php More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00
initUserPreference.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
install.php maintenance: Replace some usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 12:52:05 +00:00
interwiki.list
invalidateBotPasswords.php Add maintenance script to invalidate a users bot passwords 2021-07-13 15:39:11 +01:00
invalidateUserSessions.php Fix class name of InvalidateUserSessions 2021-08-23 19:03:39 +01:00
jsparse.php maintenance: Swap order of code in jsparse.php 2022-03-30 19:17:43 +00:00
lag.php
Maintenance.php Allow main settings file to be selected via env variable. 2022-02-06 21:13:00 +01:00
Makefile
makeTestEdits.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
manageForeignResources.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
manageJobs.php Replace deprecated JobQueueGroup::singleton() 2022-01-27 21:37:50 +01:00
mcc.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
mctest.php maintenance: Add support to mctest.php for SqlBagOStuff with LB 2022-04-23 20:16:50 +00:00
mergeMessageFileList.php Use str_starts_with/str_ends_with 2022-05-02 10:59:58 +03:00
migrateActors.php
migrateArchiveText.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
migrateComments.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
migrateFileRepoLayout.php scripts: Use real bool in options for FileBackend::doOperations 2022-03-08 00:49:13 +01:00
migrateImageCommentTemp.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
migrateLinksTable.php MigrateLinksTable: Avoid dynamic loading of list columns to select 2022-04-13 23:01:52 +02:00
migrateRevisionActorTemp.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
migrateUserGroup.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
moveBatch.php MoveBatch.php: Minor code cleanup 2021-11-24 19:47:21 +00:00
mwdoc-filter.php
mwdocgen.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
mwjsduck-gen
mysql.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
namespaceDupes.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
nukeNS.php nukeNS: don't run purgeRedundantText() after every change 2021-11-19 17:56:01 +00:00
nukePage.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
pageExists.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
parse.php
patchSql.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateArchiveRevId.php Add typehints to several methods 2021-08-31 16:19:13 +00:00
populateBacklinkNamespace.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateChangeTagDef.php Convert various callers to LoadBalancer::getConnectionRef() 2022-02-03 16:48:34 -08:00
populateContentTables.php Allow populateContentTables to continue when there are bad blobs 2021-10-17 18:02:37 -04:00
populateExternallinksIndex60.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateFilearchiveSha1.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
populateImageSha1.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
populateInterwiki.php Avoid using deprecated wfGetDB() in two maintenance scripts 2021-07-07 16:42:15 +02:00
populateIpChanges.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populatePPSortKey.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
populateRecentChangesSource.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateRevisionLength.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateRevisionSha1.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
preprocessorFuzzTest.php Fix type of value directly passed to php internal functions 2022-03-07 20:41:55 +01:00
protect.php Remove usages of deprecated Title::getRestrictionTypes 2022-04-13 20:34:10 +00:00
pruneFileCache.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
purgeChangedFiles.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
purgeChangedPages.php
purgeExpiredBlocks.php
purgeExpiredUserrights.php
purgeExpiredWatchlistItems.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
purgeList.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
purgeMessageBlobStore.php rebuildLocalisationCache: Add --skip-message-purge and accompanying script 2021-04-07 00:36:59 +01:00
purgeModuleDeps.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
purgeOldText.php
purgePage.php UndeletePage cleanup, part 1 2021-09-21 18:13:57 +02:00
purgeParserCache.php Remove unreachable code after exception/die/exit 2021-09-03 23:14:28 +00:00
README
reassignEdits.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
rebuildall.php
rebuildFileCache.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
rebuildImages.php Fix various documentation related to scalar types 2022-03-09 20:49:51 +00:00
rebuildLocalisationCache.php Revert "ResourceLoader namespace" 2022-05-16 14:43:33 +00:00
rebuildmessages.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
rebuildrecentchanges.php Explicit cast TS_UNIX to int for arithmetic operations and int args 2022-01-11 20:13:13 +01:00
rebuildtextindex.php Replace remaining usages of IDatabase::fetchObject() 2022-01-19 01:42:16 +01:00
recountCategories.php recountCategories.php: Automatically run cleanupEmptyCategories.php too 2022-01-25 16:35:53 +00:00
refreshExternallinksIndex.php RefreshExternallinksIndex: Add trailing . to skipped message 2022-04-07 12:13:14 +01:00
refreshFileHeaders.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
refreshImageMetadata.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
refreshLinks.php Introduce Redirect(Lookup&Store) services to handle redirects 2021-12-01 19:14:22 +01:00
removeInvalidEmails.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
removeUnusedAccounts.php Remove User::newFromAnyId from maintenance script removeUnusedAccounts 2022-02-11 20:02:56 +00:00
renameDbPrefix.php Remove or replace usages of "sane" 2021-11-22 13:35:17 +00:00
renameRestrictions.php renameRestrictions.php: Update protected_titles as well 2021-09-05 21:02:18 +02:00
renderDump.php PHP 8.1: add ENT_COMPAT to some htmlspecialchars() calls 2022-01-25 16:30:44 +11:00
resetAuthenticationThrottle.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
resetPageRandom.php resetPageRandom.php: Avoid undefined variable warning 2022-02-18 19:45:47 +01:00
resetUserEmail.php Fix various real types related to scalar types 2022-03-10 19:35:34 +00:00
resetUserTokens.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
rollbackEdits.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
runBatchedQuery.php Convert various callers to LoadBalancer::getConnectionRef() 2022-02-03 16:48:34 -08:00
runJobs.php Make runJobs.php die peacefully if the DB server goes away 2022-02-10 15:17:43 +11:00
runScript.php
shell.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
showJobs.php Replace deprecated JobQueueGroup::singleton() 2022-01-27 21:37:50 +01:00
showSiteStats.php
sql.php maintenance: Add --batch-size to sql.php 2022-01-13 02:03:09 +00:00
Sqlite.php Fix various documentation related to scalar types 2022-03-09 20:49:51 +00:00
SqliteMaintenance.php maintenance: Replace some usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 12:52:05 +00:00
TableCleanup.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
tables-generated.sql Schema: Updating user_editcount field to unsigned 2022-05-09 21:34:11 +00:00
tables.json Schema: Updating user_editcount field to unsigned 2022-05-09 21:34:11 +00:00
tables.sql Migrate searchindex to abstract schema 2021-05-27 15:01:24 +02:00
tidyUpT39714.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
undelete.php Move code from PageArchive to a new UndeletePage command 2021-09-21 16:11:29 +00:00
update-keys.sql
update.php Bump minimum required version for upgrade to 1.31 2022-03-15 22:12:59 +01:00
updateArticleCount.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
updateCollation.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
updateCredits.php Add explicit casts between scalar types 2022-03-08 16:59:01 +00:00
updateExtensionJsonSchema.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
updateRestrictions.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
updateSearchIndex.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
updateSpecialPages.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
uppercaseTitlesForUnicodeTransition.php phan: Remove PhanPossiblyUndeclaredVariable suppression 2022-03-30 19:47:15 +00:00
userOptions.php userOptions.php: allow specifying a user ID range to run on 2021-06-02 22:51:35 +02:00
validateRegistrationFile.php
version.php Add explicit casts between scalar types 2022-03-08 16:59:01 +00:00
view.php
wrapOldPasswords.php wrapOldPasswords: add \n to two output calls 2022-03-28 00:08:42 +02:00

== MediaWiki Maintenance ==

The .sql scripts in this directory are not intended to be run standalone,
although this is appropriate in some cases, e.g. manual creation of blank tables
prior to an import.

Most of the PHP scripts need to be run from the command line. Prior to doing so,
ensure that the LocalSettings.php file in the directory above points to the
proper installation.

Certain scripts will require elevated access to the database. In order to
provide this, first create a MySQL user with "all" permissions on the wiki
database, and then set $wgDBadminuser and $wgDBadminpassword in your
LocalSettings.php

=== Brief explanation of files ===

A lot of the files in this directory are PHP scripts used to perform various
maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
the search indices, etc. The files in the "archives" directory are used to
upgrade the database schema when updating the software. Some schema definitions
for alternative (as yet unsupported) database management systems are stored
here too.

The "storage" directory contains scripts and resources useful for working with
external storage clusters, and are not likely to be particularly useful to the
vast majority of installations. This directory does contain the compressOld
scripts, however, which can be useful for compacting old data.

=== Maintenance scripts ===

As noted above, these should be run from the command line. Not all scripts are
listed, as some are Wikimedia-specific, and some are not applicable to most
installations.

	changePassword.php
	Reset the password of a specified user

	cleanupSpam.php
	Mass-revert insertion of linkspam

	createAndPromote.php
	Create a user with administrator (and optionally, bureaucrat) permissions

	deleteOldRevisions.php
	Erase old revisions of pages from the database

	dumpBackup.php
	Backup dump script

	edit.php
	Edit a page to change its content

	findHooks.php
	Find hooks that aren't documented in docs/hooks.txt

	importDump.php
	XML dump importer

	importImages.php
	Import images into the wiki

	moveBatch.php
	Move a batch of pages

	namespaceDupes.php
	Check articles name to see if they conflict with new/existing namespaces

	nukePage.php
	Wipe a page and all revisions from the database

	reassignEdits.php
	Reassign edits from one user to another

	rebuildImages.php
	Update image metadata records

	rebuildmessages.php
	Update the MediaWiki namespace after changing site language

	rebuildtextindex.php
	Rebuild the fulltext search indices

	refreshLinks.php
	Rebuild the link tables

	removeUnusedAccounts.php
	Remove user accounts which have made no edits

	runJobs.php
	Immediately complete all jobs in the job queue

	undelete.php
	Undelete all revisions of a page

	update.php
	Check and upgrade the database schema to the current version

	updateRestrictions.php
	Update pages restriction to the new schema

	userOptions.php
	Change user options