Skip to content
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

[CMS PR 40147] Use script.php to uninstall the plugin #30

Merged

Conversation

richard67
Copy link

@richard67 richard67 commented Jun 15, 2023

Pull Request for joomla#40147 .

Summary of Changes

Use the new function introduced with joomla#40768 instead of the update SQL script for uninstalling the obsolete plugin and removing its tasks on update.

The update SQL script is still used for removing the task(s).

Testing Instructions

Code review, or update a 4.4-dev nightly build or 5.0.0-alpha1 to a 5.0-dev update package which contains the changes from here and from the CMS PR.

@richard67
Copy link
Author

Unfortunately the $data parameter is not used in the migration method in this special case here. Tools like e.g. Phan might complain about this. @laoneo Is this a problem and can it be circumvented somehow?

@HLeithner
Copy link
Collaborator

I think this pr makes not much sense migrating the sql to the migrate function, we use sql to delete extensions content, we should use the migration function only if we really need it for migration. if sql is possible keep it in sql.

@richard67
Copy link
Author

I think this pr makes not much sense migrating the sql to the migrate function, we use sql to delete extensions content, we should use the migration function only if we really need it for migration. if sql is possible keep it in sql.

@HLeithner You mean completely not use this PR here? Or only revert this commit e68037d for using script.php to delete the old tasks?

@HLeithner
Copy link
Collaborator

yes I mean the commit which move the removal from the sql file to the script.php

@richard67
Copy link
Author

@HLeithner Done.

@laoneo laoneo merged commit 4de2747 into Digital-Peak:task/demo/delete Jun 19, 2023
@laoneo
Copy link
Member

laoneo commented Jun 19, 2023

Thanks @richard67, good work!

@richard67 richard67 deleted the 5.0-dev-pr-40147-mod-1 branch June 19, 2023 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants