Update DEVELOPERS.md and UPGRADE with new way to use update.php

When using the command that this commit changes, the console
would give a warning that that way of using update.php is
deprecated since 1.40, and that one should use maintenance/run.php
instead.

Follows up Ibd47e3f29f93238ccd3e607774927e639ba74ace
and I2cd89a6a9218dadb1bc6088d1c7e1f2c85642902.

Change-Id: Id4bdd7fb0f505d119f8cac574889b06012d5c22a
This commit is contained in:
Jon Harald Søby 2023-06-16 14:20:05 +02:00
parent 7eb95ad5eb
commit d65d34ab78
2 changed files with 4 additions and 4 deletions

View file

@ -111,7 +111,7 @@ MediaWiki container. You can then run one or more commands as needed and stay
within the container shell.
You can also run a single command in the container directly from your host
shell, for example: `docker compose exec mediawiki php maintenance/update.php`.
shell, for example: `docker compose exec mediawiki php maintenance/run.php update`.
### PHPUnit
@ -277,7 +277,7 @@ To empty the wiki database and re-install it:
* Delete the `cache/sqlite` directory.
* Re-run the "Install MediaWiki database" command.
You can now restore or copy over any modifications you had in your previous `LocalSettings.php` file. And if you have additonal extensions installed that required a database table, then also run: `docker compose exec mediawiki php maintenance/update.php`.
You can now restore or copy over any modifications you had in your previous `LocalSettings.php` file. And if you have additonal extensions installed that required a database table, then also run: `docker compose exec mediawiki php maintenance/run.php update`.
## Troubleshooting

View file

@ -67,8 +67,8 @@ upgrade your database in place.
==== From the command line ====
From the command line, browse to the "maintenance" directory and run the
update.php script to check and update the schema. This will insert missing
From the command line, browse to the "maintenance" directory and use
`run.php update` to check and update the schema. This will insert missing
tables, update existing tables, and move data around as needed. In most cases,
this is successful and nothing further needs to be done.