-
Notifications
You must be signed in to change notification settings - Fork 17
feature: add activator and uninstaller #199
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
a6687ee to
7c6ae18
Compare
|
In this way, however, it would not work for multisites... Since the code for adding support is not that complex, why we don't add it directly from the beginning? What do you think @johnhooks, multisite support is not essential but certainly welcome |
|
@erikyo do you have a concept of how best to make this multisite compatible? |
|
@erikyo it looks like the real magic is Though in this instance, we should alway create a set of tables for the main site as well, correct? |
yes exactly! Anyway I don't think it's necessary but I would, because in that way we can create a network related set of notifications |
7c6ae18 to
733ce51
Compare
af653f4 to
ee5e552
Compare
johnhooks
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.
@erikyo and @Sephsekla I think this one is ready for review. We still need to figure out a testing strategy, though it may take some further research.
d529af7 to
e099c81
Compare
e099c81 to
c968389
Compare
f0d597b to
ed504a4
Compare
ed504a4 to
a9bf4ce
Compare
fix: uninstall drop table names fix: format error chore: remove logging fix: add uninstall hook fix: use of deactivate in uninstall fix: remove logging function feature: add support for multisite fix: Use Yoda Condition checks, you must fix: add/remove options in each multisite instance chore: fix comment formating fix: nullable notification message meta test: add activate and uninstall tests refactor: add type hint to db-test-case fix: package name PHPDoc comments
49f5f6c to
00d236d
Compare
|
Work on this is being continued in #259 |
What?
Adds plugin activator and uninstaller. The database SQL to create the database tables for the plugin are in the
Activator::create_tables_v1static method.Why?
Need to be able to install the plugin and have a database to contain the notification data.
TODO
multisite unit testsmultisite functionality needs more thought before writing tests