-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.0] Remove the last code artefacts for Microsoft SQL Server / SQL Azure databases #38405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I have tested this item ✅ successfully on 96b73ca This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38405. |
wilsonge
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but we'll need a deprecation tag on the class in the 4.x branch
@wilsonge I thought I had seen it there already, but you are right, it isn't. Will make a PR for that sooner or later. |
|
Just clarified, will do it in 4.3-dev. |
|
For deprecation see #38428 . |
|
There are a few other places that refer to sqlserv that would be good to remove at the same time even if they are only comments |
@brianteeman Where? Could you point me to these? But if they are outside the schema namespace, I would do that with another PR. Note that the database drivers still support to connect to MS SQL Server databases as external database. Only Joomla running on it is not supported anymore. |
|
/administrator/components/com_joomlaupdate/src/Model/UpdateModel.php#L1173 /administrator/components/com_joomlaupdate/src/Model/UpdateModel.php#L1199 /administrator/components/com_menus/src/Model/ItemModel.php#L788 |
|
@brianteeman /administrator/components/com_joomlaupdate/src/Model/UpdateModel.php#L1199 should be kept, otherwise the complete function would not make sense and should be removed. But we might keep the function for later use when we again remove support for some database type and need that to be checked before updating, and if we keep it we should keep the complete code so later readers can understand it. |
|
I have tested this item ✅ successfully on 96b73ca This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38405. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38405. |
|
@richard67 can you please solve the conflicts please? And maybe write the deprecation and removal documentation in manual? If not no problem I try to write it tomorrow. |
|
@HLeithner I've updated the branch and resolved the conflict. The failing appveyor is not related to this branch, it fails also in the 5.0-dev branch with the same error:
Regarding deprecation docs: I don't know how to do that and won't learn that in the next days or weeks. So feel free to do that. But I do not see any need for any deprecations docs for the following reasons:
|
|
P.S.: It seems also drone is broken in the 5.0-dev branch. It fails with some error related to certificates. |
|
Thanks |
…remove 4.x update SQL scripts (#40083) * Init deleted files and folders for 5.0 * Add deleted files and folders from #38406 * Add deleted file from #38405 * Add deleted files and folders from #39134 * Init renamed files for 5.0 * Add deleted and renamed files and folders from dependency updates * Fix alpha odering of deleted files * Remove j4 update SQL scripts and add initial one for j5 * Use real DDL in update SQL script
Pull Request for Issue # .
Summary of Changes
This pull request (PR) removes the last code artefacts for using Joomla with Microsoft SQL Server / SQL Azure databases.
These database types are not supported anymore since Joomla 4.0, but there is the "SqlsrvChangeItem" class left in the "Joomla\CMS\Schema\ChangeItem" namespace, which is of no use in J4 and should be removed with 5.0.0.
For deprecation see PR #38428 .
This PR removes that class and corresponding code:
In addition, this PR removes an obsolete special handling for server type "mssql" in file "ChangeSet.php". The "sqlazure" subfolder doesn't exist anymore for core update SQL scripts since Joomla 4.0, and 3rd party extensions (which the database checker also checks since 4.0) are not expected to have any update SQL scripts for Microsoft SQL Server / SQL Azure.
All changes affect only the database checker ("System -> Maintenance -> Database", i.e.
administrator/index.php?option=com_installer&view=database).Additional information
The unit tests for the "Joomla\CMS\Schema\ChangeItem" namespace have never been migrated from Joomla 3 to Joomla 4, so in J4 we don't have any unit tests for the subject ot this PR.
I am preparing a PR to add unit tests for that namespace for the 4.2-dev branch (or maybe 4.3-dev), but that will still take some time until completed.
Testing Instructions
Code review, or make a new installation with the package built for this PR by drone and verify that the database checker works.
Actual result BEFORE applying this Pull Request
Obsolete code for Microsoft SQL Server / SQL Azure databases in the "Joomla\CMS\Schema\ChangeItem" namespace.
Expected result AFTER applying this Pull Request
No obsolete code for Microsoft SQL Server / SQL Azure databases in the "Joomla\CMS\Schema\ChangeItem" namespace.
The database checker works as well as without this PR.
Documentation Changes Required
None.