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

Add migration to handle webpush subscriptions on extension purge. #10

Merged
merged 10 commits into from
Jan 3, 2024

Conversation

rxu
Copy link
Contributor

@rxu rxu commented Jan 2, 2024

Closes #5.

@rxu
Copy link
Contributor Author

rxu commented Jan 2, 2024

TODO: add moving extension tables data over corresponding phpBB 4.0 tables etc.

@rxu
Copy link
Contributor Author

rxu commented Jan 2, 2024

This looks weird though so there should be some instruction on how to use this to avoid board mess and/or crash.
F.e. after upgrading board to phpBB 4.0 the extension should be purged 1st while the board is still disabled so that users didn't create any webpush subscriptions yet.

@iMattPro
Copy link
Contributor

iMattPro commented Jan 2, 2024 via email

@rxu rxu force-pushed the add-subscription_migrations branch from 71f4216 to 88aece3 Compare January 2, 2024 16:37
@rxu
Copy link
Contributor Author

rxu commented Jan 2, 2024

We probably need to unit-test this migration somehow, f.e. create fixtures with tables and configs including ones from 4.0 PR, run the migration and assert exported values.

@rxu rxu force-pushed the add-subscription_migrations branch from 91bd183 to f85eba5 Compare January 2, 2024 17:30
@rxu rxu force-pushed the add-subscription_migrations branch from f85eba5 to 6ae4807 Compare January 2, 2024 17:32
@rxu rxu force-pushed the add-subscription_migrations branch 13 times, most recently from d1a404f to 1463500 Compare January 3, 2024 07:28
@rxu rxu force-pushed the add-subscription_migrations branch 6 times, most recently from 7a3d011 to ffee3ad Compare January 3, 2024 10:34
@rxu rxu force-pushed the add-subscription_migrations branch from ffee3ad to bfbb949 Compare January 3, 2024 10:53
@rxu rxu marked this pull request as ready for review January 3, 2024 11:13
@rxu rxu force-pushed the add-subscription_migrations branch from aa541b2 to 5ecc737 Compare January 3, 2024 16:32
@iMattPro iMattPro merged commit 47bd87c into phpbb-extensions:main Jan 3, 2024
31 checks passed
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.

Add migration for phpBB 4.0
2 participants