Skip to content

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

Merged
laoneo merged 4 commits intoDigital-Peak:task/demo/deletefrom
richard67:5.0-dev-pr-40147-mod-1
Jun 19, 2023
Merged

[CMS PR 40147] Use script.php to uninstall the plugin#30
laoneo merged 4 commits intoDigital-Peak:task/demo/deletefrom
richard67:5.0-dev-pr-40147-mod-1

Conversation

@richard67
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

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

@richard67
Copy link
Copy Markdown
Author

@HLeithner Done.

@laoneo laoneo merged commit 4de2747 into Digital-Peak:task/demo/delete Jun 19, 2023
@laoneo
Copy link
Copy Markdown
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