Add option to update all database tables/columns to current settings #42646
Replies: 2 comments 6 replies
-
The problem is that after installation, the installation folder is removed, and so are the installation SQL files. Therefore the database checker does not have any information about how the complete schema should be, it only has the information from the update SQL scripts. |
Beta Was this translation helpful? Give feedback.
-
This is absolutely the wrong place because there the files are located which are run by the Joomla Update component when doing an update, and which files are run is determined by the version in their name and the schema version in database. These files are not only used by the database checker, and by the way, just unpacking the files and then running the database checker is not a valid update method anymore since Joomla 3.4 or so. For updating the Joomla Update component has to be used, nothing else. |
Beta Was this translation helpful? Give feedback.
-
I recently came upon a site upgraded over the years step by step all the way from J1.5 up to J5.
And apparently that has not always been done right, so many database tables/columns settings differed from the current J5 ones.
The 'Repair database' option does not correct that.
I propose to extend it's functionality by creating an ALTER TABLE query that takes all current settings from the install files and add the option to run that (with a bunch of warnings, obviously).
Beta Was this translation helpful? Give feedback.
All reactions